wxAutoExcel
2.0.0
|
Represents Microsoft Excel Style object. More...
Public Member Functions | |
bool | Delete () |
Deletes the object. More... | |
bool | GetAddIndent () |
If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.) More... | |
void | SetAddIndent (bool addIndent) |
If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.) More... | |
wxExcelBorders | GetBorders () |
Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). More... | |
bool | GetBuiltIn () |
Returns true if the style is one of the built-in ones. More... | |
wxExcelFont | GetFont () |
Returns a Font Represents the style font. More... | |
bool | GetFormulaHidden () |
If true the formula will be hidden when the worksheet is protected. More... | |
void | SetFormulaHidden (bool formulaHidden) |
If true the formula will be hidden when the worksheet is protected. More... | |
XlHAlign | GetHorizontalAlignment () |
Returns a XlHAlign value that represents the horizontal alignment. More... | |
void | SetHorizontalAlignment (XlHAlign horizontalAlignment) |
Sets a XlHAlign value that represents the horizontal alignment. More... | |
bool | GetIncludeAlignment () |
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties. More... | |
void | SetIncludeAlignment (bool includeAlignment) |
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties. More... | |
bool | GetIncludeBorder () |
True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties. More... | |
void | SetIncludeBorder (bool includeBorder) |
True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties. More... | |
bool | GetIncludeFont () |
True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties. More... | |
void | SetIncludeFont (bool includeFont) |
True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties. More... | |
bool | GetIncludeNumber () |
True if the style includes the NumberFormat property. More... | |
void | SetIncludeNumber (bool includeNumber) |
True if the style includes the NumberFormat property. More... | |
bool | GetIncludePatterns () |
True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties. More... | |
void | SetIncludePatterns (bool includePatterns) |
True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties. More... | |
bool | GetIncludeProtection () |
True if the style includes the FormulaHidden and Locked protection properties. More... | |
void | SetIncludeProtection (bool includeProtection) |
True if the style includes the FormulaHidden and Locked protection properties. More... | |
long | GetIndentLevel () |
Returns a the indent level for the style. More... | |
void | SetIndentLevel (long indentLevel) |
Sets the indent level for the style. More... | |
wxExcelInterior | GetInterior () |
Returns an Interior Represents the style interior. More... | |
bool | GetLocked () |
True if the style is locked. More... | |
void | SetLocked (bool locked) |
True if the style is locked. More... | |
bool | GetMergeCells () |
True if the style contains merged cells. More... | |
wxString | GetName () |
Returns the name of the object. More... | |
wxString | GetNameLocal () |
Returns the name of the object, in the language of the user. More... | |
wxString | GetNumberFormat () |
Returns a value that represents the format code for the object. More... | |
void | SetNumberFormat (const wxString &numberFormat) |
Sets a value that represents the format code for the object. More... | |
wxString | GetNumberFormatLocal () |
Returns a value that represents the format code for the object as a string in the language of the user. More... | |
void | SetNumberFormatLocal (const wxString &numberFormatLocal) |
Sets a value that represents the format code for the object as a string in the language of the user. More... | |
XlOrientation | GetOrientation () |
Returns the text orientation. More... | |
void | SetOrientation (XlOrientation orientation) |
Sets athe text orientation. More... | |
long | GetReadingOrder () |
Returns the style reading order. More... | |
void | SetReadingOrder (long readingOrder) |
Sets the style reading order. More... | |
bool | GetShrinkToFit () |
True if text automatically shrinks to fit in the available column width. More... | |
void | SetShrinkToFit (bool shrinkToFit) |
True if text automatically shrinks to fit in the available column width. More... | |
XlVAlign | GetVerticalAlignment () |
Returns the style vertical alignment. More... | |
void | SetVerticalAlignment (XlVAlign verticalAlignment) |
Sets the style vertical alignment. More... | |
bool | GetWrapText () |
True if Microsoft Excel wraps the text. More... | |
void | SetWrapText (bool wrapText) |
True if Microsoft Excel wraps the text. More... | |
virtual wxString | GetAutoExcelObjectName_ () const |
Returns "Style". More... | |
Public Member Functions inherited from wxAutoExcel::wxExcelObject | |
bool | IsOk_ () const |
Returns true if the object has a valid dispatch. More... | |
wxString | GetAutomationObjectName_ (bool stripUnderscores=false) const |
Returns object name as provided by IDispatch->GetTypeInfo()->GetDocumentation(MEMBERID_NIL, &name, NULL, NULL, NULL). More... | |
wxSharedPtr< wxAutomationObject > | GetAutomationObject_ () |
Returns the underlying wxAutomationObject. More... | |
operator bool () const | |
Returns true if the object has a valid dispatch and its last automation call (if any), i.e. More... | |
WXLCID | GetAutomationLCID_ () const |
Returns the locale identifier used in automation calls. More... | |
bool | SetAutomationLCID_ (WXLCID lcid) |
Sets the locale identifier to be used in automation calls. More... | |
bool | GetPropertyAndMethodNames_ (wxArrayString &propertyNames, wxArrayString &methodNames, bool includeHidden=false) |
Returns lists of property and method names the automation interface exposes. More... | |
bool | GetUnimplementedObject_ (const wxString &name, wxAutomationObject &object) |
Helper function for receiving an automation object not implemented in wxAutoExcel, see FAQ on how to use. More... | |
Additional Inherited Members | |
Public Types inherited from wxAutoExcel::wxExcelObject | |
enum | ErrorFlags { Err_DoNothing = 0 , Err_LogOnInvalidDispatch = 1 , Err_AssertOnInvalidDispatch = 1 << 1 , Err_ThrowOnInvalidDispatch = 1 << 2 , Err_LogOnInvalidArgument = 1 << 3 , Err_AssertOnInvalidArgument = 1 << 4 , Err_ThrowOnInvalidArgument = 1 << 5 , Err_LogOnFailedInvoke = 1 << 6 , Err_AssertOnFailedInvoke = 1 << 7 , Err_ThrowOnFailedInvoke = 1 << 8 , Err_LogOnInvalidReturnType = 1 << 9 , Err_AssertOnInvalidReturnType = 1 << 10 , Err_ThrowOnInvalidReturnType = 1 << 11 , Err_LogOnOtherError = 1 << 12 , Err_AssertOnOtherError = 1 << 13 , Err_ThrowOnOtherError = 1 << 14 } |
Flags affecting the behaviour of wxExcelObject and its descendants when an error occurs during accessing an Excel object property or calling its method. More... | |
Static Public Member Functions inherited from wxAutoExcel::wxExcelObject | |
static unsigned | GetErrorMode_ () |
Sets the error mode to the combination of wxExcelObject::ErrorFlags. More... | |
static void | SetErrorMode_ (unsigned mode) |
Sets the error mode as the combination of wxExcelObject::ErrorFlags. More... | |
static bool | GetUnimplementedCollectionItem_ (wxAutomationObject &collection, const long index, wxAutomationObject &item, bool asProperty) |
Helper function for obtaining an item from MS Excel collection not implemented in wxAutoExcel, see FAQ on how to use. More... | |
Represents Microsoft Excel Style object.
bool wxAutoExcel::wxExcelStyle::Delete | ( | ) |
Deletes the object.
bool wxAutoExcel::wxExcelStyle::GetAddIndent | ( | ) |
If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.)
[MSDN documentation for Style.AddIndent]().
void wxAutoExcel::wxExcelStyle::SetAddIndent | ( | bool | addIndent | ) |
If true then text is automatically indented when the text alignment in a cell is set to equal distribution (either horizontally or vertically.)
[MSDN documentation for Style.AddIndent]().
wxExcelBorders wxAutoExcel::wxExcelStyle::GetBorders | ( | ) |
Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format).
bool wxAutoExcel::wxExcelStyle::GetBuiltIn | ( | ) |
Returns true if the style is one of the built-in ones.
wxExcelFont wxAutoExcel::wxExcelStyle::GetFont | ( | ) |
Returns a Font Represents the style font.
bool wxAutoExcel::wxExcelStyle::GetFormulaHidden | ( | ) |
If true the formula will be hidden when the worksheet is protected.
void wxAutoExcel::wxExcelStyle::SetFormulaHidden | ( | bool | formulaHidden | ) |
If true the formula will be hidden when the worksheet is protected.
XlHAlign wxAutoExcel::wxExcelStyle::GetHorizontalAlignment | ( | ) |
Returns a XlHAlign value that represents the horizontal alignment.
void wxAutoExcel::wxExcelStyle::SetHorizontalAlignment | ( | XlHAlign | horizontalAlignment | ) |
Sets a XlHAlign value that represents the horizontal alignment.
bool wxAutoExcel::wxExcelStyle::GetIncludeAlignment | ( | ) |
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties.
void wxAutoExcel::wxExcelStyle::SetIncludeAlignment | ( | bool | includeAlignment | ) |
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, IndentLevel, and Orientation properties.
bool wxAutoExcel::wxExcelStyle::GetIncludeBorder | ( | ) |
True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties.
void wxAutoExcel::wxExcelStyle::SetIncludeBorder | ( | bool | includeBorder | ) |
True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties.
bool wxAutoExcel::wxExcelStyle::GetIncludeFont | ( | ) |
True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties.
void wxAutoExcel::wxExcelStyle::SetIncludeFont | ( | bool | includeFont | ) |
True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, Size, Strikethrough, Subscript, Superscript, and Underline font properties.
bool wxAutoExcel::wxExcelStyle::GetIncludeNumber | ( | ) |
True if the style includes the NumberFormat property.
void wxAutoExcel::wxExcelStyle::SetIncludeNumber | ( | bool | includeNumber | ) |
True if the style includes the NumberFormat property.
Read/write Boolean
bool wxAutoExcel::wxExcelStyle::GetIncludePatterns | ( | ) |
True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties.
void wxAutoExcel::wxExcelStyle::SetIncludePatterns | ( | bool | includePatterns | ) |
True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties.
bool wxAutoExcel::wxExcelStyle::GetIncludeProtection | ( | ) |
True if the style includes the FormulaHidden and Locked protection properties.
void wxAutoExcel::wxExcelStyle::SetIncludeProtection | ( | bool | includeProtection | ) |
True if the style includes the FormulaHidden and Locked protection properties.
long wxAutoExcel::wxExcelStyle::GetIndentLevel | ( | ) |
Returns a the indent level for the style.
void wxAutoExcel::wxExcelStyle::SetIndentLevel | ( | long | indentLevel | ) |
Sets the indent level for the style.
wxExcelInterior wxAutoExcel::wxExcelStyle::GetInterior | ( | ) |
Returns an Interior Represents the style interior.
bool wxAutoExcel::wxExcelStyle::GetLocked | ( | ) |
True if the style is locked.
void wxAutoExcel::wxExcelStyle::SetLocked | ( | bool | locked | ) |
True if the style is locked.
bool wxAutoExcel::wxExcelStyle::GetMergeCells | ( | ) |
True if the style contains merged cells.
wxString wxAutoExcel::wxExcelStyle::GetName | ( | ) |
Returns the name of the object.
wxString wxAutoExcel::wxExcelStyle::GetNameLocal | ( | ) |
Returns the name of the object, in the language of the user.
wxString wxAutoExcel::wxExcelStyle::GetNumberFormat | ( | ) |
Returns a value that represents the format code for the object.
void wxAutoExcel::wxExcelStyle::SetNumberFormat | ( | const wxString & | numberFormat | ) |
Sets a value that represents the format code for the object.
wxString wxAutoExcel::wxExcelStyle::GetNumberFormatLocal | ( | ) |
Returns a value that represents the format code for the object as a string in the language of the user.
void wxAutoExcel::wxExcelStyle::SetNumberFormatLocal | ( | const wxString & | numberFormatLocal | ) |
Sets a value that represents the format code for the object as a string in the language of the user.
XlOrientation wxAutoExcel::wxExcelStyle::GetOrientation | ( | ) |
Returns the text orientation.
void wxAutoExcel::wxExcelStyle::SetOrientation | ( | XlOrientation | orientation | ) |
Sets athe text orientation.
long wxAutoExcel::wxExcelStyle::GetReadingOrder | ( | ) |
Returns the style reading order.
Can be one of the following constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext.
void wxAutoExcel::wxExcelStyle::SetReadingOrder | ( | long | readingOrder | ) |
Sets the style reading order.
Can be one of the following constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext.
bool wxAutoExcel::wxExcelStyle::GetShrinkToFit | ( | ) |
True if text automatically shrinks to fit in the available column width.
void wxAutoExcel::wxExcelStyle::SetShrinkToFit | ( | bool | shrinkToFit | ) |
True if text automatically shrinks to fit in the available column width.
XlVAlign wxAutoExcel::wxExcelStyle::GetVerticalAlignment | ( | ) |
Returns the style vertical alignment.
void wxAutoExcel::wxExcelStyle::SetVerticalAlignment | ( | XlVAlign | verticalAlignment | ) |
Sets the style vertical alignment.
bool wxAutoExcel::wxExcelStyle::GetWrapText | ( | ) |
True if Microsoft Excel wraps the text.
void wxAutoExcel::wxExcelStyle::SetWrapText | ( | bool | wrapText | ) |
True if Microsoft Excel wraps the text.
|
inlinevirtual |
Returns "Style".
Reimplemented from wxAutoExcel::wxExcelObject.