Class FileTab2013
------------------------FILE TAB-------------------------- FileTab2013 implements File Tab as Backstage in Microsoft Word 2013
Inheritance
System.Object
FileTab2013
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Quark.XA.Core.AutomationProject.ActionsXA
Assembly: Quark.XA.Core.AutomationProject.dll
Syntax
public class FileTab2013 : IFileTabInterface
Constructors
FileTab2013(ref Application)
Declaration
public FileTab2013(ref Application application)
Parameters
| Type | Name | Description |
|---|---|---|
| Application | application |
Fields
_currentsourceFolder
Declaration
public string _currentsourceFolder
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
AccessFileTab()
Click on FileTab
Declaration
public void AccessFileTab()
CancelCloseDocument()
Declaration
public void CancelCloseDocument()
ClickOptions(String, String, String)
Open word options dialog to change settings
Declaration
public void ClickOptions(string tabName, string controlName, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tabName | Tab name to select in word options dialog |
| System.String | controlName | control name to select in dialog |
| System.String | value | value to set in control |
ClickSaveAndSend()
Declaration
public void ClickSaveAndSend()
CloseAllDocumentWithoutSave(Boolean, Boolean)
Declaration
public void CloseAllDocumentWithoutSave(bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | perf | |
| System.Boolean | log |
CloseDocument()
Declaration
public void CloseDocument()
CloseDocumentWithoutSave(Boolean, Boolean)
Declaration
public void CloseDocumentWithoutSave(bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | perf | |
| System.Boolean | log |
CreateNewQXADocument()
Click on New Business Document
Declaration
public void CreateNewQXADocument()
EditDocumentAttributes()
Declaration
public void EditDocumentAttributes()
IsMenuItemExists(String)
Declaration
public bool IsMenuItemExists(string menuItemName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | menuItemName |
Returns
| Type | Description |
|---|---|
| System.Boolean |
NewWordDocument()
Declaration
public void NewWordDocument()
NewXmlAuthorDocument()
Click on New XML Author
Declaration
public void NewXmlAuthorDocument()
OpenDocument(String)
Open already saved document
Declaration
public void OpenDocument(string fullPath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fullPath | File path |
OpenTestDocument(String, Boolean, Boolean)
Declaration
public void OpenTestDocument(string name, bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | |
| System.Boolean | perf | |
| System.Boolean | log |
OpenXmlAuthorDocument(String, String, Boolean, Boolean)
Open Xml Author Document
Declaration
public void OpenXmlAuthorDocument(string testcaseName, string fileToCopyFrom = null, bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | testcaseName | File path |
| System.String | fileToCopyFrom | source path to copy file from |
| System.Boolean | perf | |
| System.Boolean | log |
SaveAlreadySavedDocument(Boolean, Boolean)
Declaration
public void SaveAlreadySavedDocument(bool perf = false, bool log = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | perf | |
| System.Boolean | log |
SaveAndCloseDocument(String)
Declaration
public void SaveAndCloseDocument(string testCaseName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | testCaseName |
SaveAsAndCloseDocument(String, String, Int32)
Save As and close the document
Declaration
public void SaveAsAndCloseDocument(string testCaseName, string defaultPath = null, int delaytime = 5000)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | testCaseName | |
| System.String | defaultPath | specify path if other than current source folder |
| System.Int32 | delaytime |
SaveAsDocument(String, String, Boolean, Boolean, Boolean, Int32)
Save As already saved Document
Declaration
public void SaveAsDocument(string testcaseName, string defaultPath = null, bool CompareXml = true, bool perf = false, bool log = false, int delaytime = 5000)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | testcaseName | Save location and File name |
| System.String | defaultPath | specify path if other than current source folder |
| System.Boolean | CompareXml | |
| System.Boolean | perf | |
| System.Boolean | log | |
| System.Int32 | delaytime |
SaveDocument(String, Boolean, Int32)
Save the Document
Declaration
public void SaveDocument(string testcaseName, bool CompareXml = true, int delaytime = 5000)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | testcaseName | Save location and File name |
| System.Boolean | CompareXml | |
| System.Int32 | delaytime |
SaveTestDocument(String)
Save Test Document
Declaration
public void SaveTestDocument(string testDoumentName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | testDoumentName |
ScrollWordWindowUpDown(String, Int32)
Declaration
public void ScrollWordWindowUpDown(string groupName, int numberofTimes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | groupName | |
| System.Int32 | numberofTimes |
SelectComboInWordOptions(String, String, String, String, Int32)
Declaration
public void SelectComboInWordOptions(string tabName, string groupName, string controlName, string value, int scrollTimes = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tabName | |
| System.String | groupName | |
| System.String | controlName | |
| System.String | value | |
| System.Int32 | scrollTimes |
SetProtectedViewOptions(Boolean, Boolean, Boolean, out Boolean, out Boolean, out Boolean)
Declaration
public bool SetProtectedViewOptions(bool fromInternet, bool fromUnsafeLocation, bool fromOutlookAttachment, out bool fromInternetOldVal, out bool fromUnsafeLocationOldVal, out bool fromOutlookAttachmentOldVal)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | fromInternet | |
| System.Boolean | fromUnsafeLocation | |
| System.Boolean | fromOutlookAttachment | |
| System.Boolean | fromInternetOldVal | |
| System.Boolean | fromUnsafeLocationOldVal | |
| System.Boolean | fromOutlookAttachmentOldVal |
Returns
| Type | Description |
|---|---|
| System.Boolean |
VerifyAndOpenRecentDocument(String, Boolean, Boolean)
Declaration
public void VerifyAndOpenRecentDocument(string fileName = null, bool openDoc = false, bool clearRecentList = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileName | |
| System.Boolean | openDoc | |
| System.Boolean | clearRecentList |
ViewXml()
Declaration
public void ViewXml()