LibreOffice Module sc (master) 1
|
Contains all view settings for a single sheet. More...
#include <xlview.hxx>
Public Types | |
typedef ::std::map< sal_uInt8, XclSelectionDataRef > | XclSelectionMap |
Public Member Functions | |
bool | IsDefaultTabBgColor () const |
Tab Color default = (COL_AUTO ) More... | |
XclTabViewData () | |
palette color id More... | |
~XclTabViewData () | |
void | SetDefaults () |
Sets Excel default view settings. More... | |
bool | IsSplit () const |
Returns true, if the window is split in any direction. More... | |
bool | HasPane (sal_uInt8 nPaneId) const |
Returns true, if the specified pane (EXC_PANE_*) is available. More... | |
const XclSelectionData * | GetSelectionData (sal_uInt8 nPane) const |
Returns the selection data, if available, otherwise 0. More... | |
XclSelectionData & | CreateSelectionData (sal_uInt8 nPane) |
Returns read/write access to the selection data of the specified pane. More... | |
Public Attributes | |
XclSelectionMap | maSelMap |
Color | maGridColor |
Selections of all panes. More... | |
XclAddress | maFirstXclPos |
Grid color. More... | |
XclAddress | maSecondXclPos |
First visible cell. More... | |
sal_uInt16 | mnSplitX |
First visible cell in additional panes. More... | |
sal_uInt32 | mnSplitY |
Split X position, or number of frozen columns. More... | |
sal_uInt16 | mnNormalZoom |
Split Y position, or number of frozen rows. More... | |
sal_uInt16 | mnPageZoom |
Zoom factor for normal view. More... | |
sal_uInt16 | mnCurrentZoom |
Zoom factor for pagebreak preview. More... | |
sal_uInt8 | mnActivePane |
Zoom factor for current view. More... | |
bool | mbSelected |
Active pane (with cell cursor). More... | |
bool | mbDisplayed |
true = Sheet is selected. More... | |
bool | mbMirrored |
true = Sheet is displayed (active). More... | |
bool | mbFrozenPanes |
true = Mirrored (right-to-left) sheet. More... | |
bool | mbPageMode |
true = Frozen panes; false = split window. More... | |
bool | mbDefGridColor |
true = Pagebreak preview; false = Normal view. More... | |
bool | mbShowFormulas |
true = Default grid color. More... | |
bool | mbShowGrid |
true = Show formulas instead of results. More... | |
bool | mbShowHeadings |
true = Show cell grid. More... | |
bool | mbShowZeros |
true = Show column/row headings. More... | |
bool | mbShowOutline |
true = Show zero value zells. More... | |
Color | maTabBgColor |
true = Show outlines. More... | |
sal_uInt32 | mnTabBgColorId |
Contains all view settings for a single sheet.
Definition at line 116 of file xlview.hxx.
Definition at line 118 of file xlview.hxx.
|
explicit |
XclTabViewData::~XclTabViewData | ( | ) |
Definition at line 45 of file xlview.cxx.
XclSelectionData & XclTabViewData::CreateSelectionData | ( | sal_uInt8 | nPane | ) |
Returns read/write access to the selection data of the specified pane.
Definition at line 95 of file xlview.cxx.
References maSelMap.
Referenced by XclExpTabViewSettings::CreateSelectionData(), and XclImpTabViewSettings::ReadSelection().
const XclSelectionData * XclTabViewData::GetSelectionData | ( | sal_uInt8 | nPane | ) | const |
Returns the selection data, if available, otherwise 0.
Definition at line 89 of file xlview.cxx.
References maSelMap.
Referenced by XclImpTabViewSettings::Finalize(), and XclExpSelection::XclExpSelection().
bool XclTabViewData::HasPane | ( | sal_uInt8 | nPaneId | ) | const |
Returns true, if the specified pane (EXC_PANE_*) is available.
Definition at line 76 of file xlview.cxx.
References EXC_PANE_BOTTOMLEFT, EXC_PANE_BOTTOMRIGHT, EXC_PANE_TOPLEFT, EXC_PANE_TOPRIGHT, mnSplitX, and mnSplitY.
Referenced by XclExpTabViewSettings::CreateSelectionData(), lcl_WriteSelection(), XclExpTabViewSettings::WriteSelection(), and XclExpTabViewSettings::XclExpTabViewSettings().
|
inline |
Tab Color default = (COL_AUTO )
Definition at line 142 of file xlview.hxx.
References COL_AUTO(), and maTabBgColor.
Referenced by XclImpTabViewSettings::Finalize(), XclExpTabBgColor::WriteBody(), and XclExpTabViewSettings::WriteTabBgColor().
bool XclTabViewData::IsSplit | ( | ) | const |
Returns true, if the window is split in any direction.
Definition at line 71 of file xlview.cxx.
References mnSplitX, and mnSplitY.
Referenced by XclExpTabViewSettings::SaveXml(), XclExpTabViewSettings::WritePane(), XclExpPane::XclExpPane(), and XclExpTabViewSettings::XclExpTabViewSettings().
void XclTabViewData::SetDefaults | ( | ) |
Sets Excel default view settings.
Definition at line 49 of file xlview.cxx.
References COL_AUTO(), EXC_PANE_TOPLEFT, EXC_WIN2_NORMALZOOM_DEF, EXC_WIN2_PAGEZOOM_DEF, maFirstXclPos, maGridColor, maSecondXclPos, maSelMap, maTabBgColor, mbDefGridColor, mbDisplayed, mbFrozenPanes, mbMirrored, mbPageMode, mbSelected, mbShowFormulas, mbShowGrid, mbShowHeadings, mbShowOutline, mbShowZeros, mnActivePane, mnCurrentZoom, mnNormalZoom, mnPageZoom, mnSplitX, mnSplitY, mnTabBgColorId, and XclAddress::Set().
Referenced by XclImpTabViewSettings::Initialize(), and XclTabViewData().
XclAddress XclTabViewData::maFirstXclPos |
Grid color.
Definition at line 122 of file xlview.hxx.
Referenced by XclExpTabViewSettings::CreateSelectionData(), XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
Color XclTabViewData::maGridColor |
Selections of all panes.
Definition at line 121 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
XclAddress XclTabViewData::maSecondXclPos |
First visible cell.
Definition at line 123 of file xlview.hxx.
Referenced by XclExpTabViewSettings::CreateSelectionData(), XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadPane(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
XclSelectionMap XclTabViewData::maSelMap |
Definition at line 120 of file xlview.hxx.
Referenced by CreateSelectionData(), GetSelectionData(), and SetDefaults().
Color XclTabViewData::maTabBgColor |
true = Show outlines.
Definition at line 141 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), IsDefaultTabBgColor(), XclImpTabViewSettings::ReadTabBgColor(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
bool XclTabViewData::mbDefGridColor |
true = Pagebreak preview; false = Normal view.
Definition at line 135 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbDisplayed |
true = Sheet is selected.
Definition at line 131 of file xlview.hxx.
Referenced by XclImpTabViewSettings::ReadWindow2(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbFrozenPanes |
true = Mirrored (right-to-left) sheet.
Definition at line 133 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbMirrored |
true = Sheet is displayed (active).
Definition at line 132 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbPageMode |
true = Frozen panes; false = split window.
Definition at line 134 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbSelected |
Active pane (with cell cursor).
Definition at line 130 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbShowFormulas |
true = Default grid color.
Definition at line 136 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbShowGrid |
true = Show formulas instead of results.
Definition at line 137 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbShowHeadings |
true = Show cell grid.
Definition at line 138 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbShowOutline |
true = Show zero value zells.
Definition at line 140 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
bool XclTabViewData::mbShowZeros |
true = Show column/row headings.
Definition at line 139 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow2::XclExpWindow2().
sal_uInt8 XclTabViewData::mnActivePane |
Zoom factor for current view.
Definition at line 129 of file xlview.hxx.
Referenced by XclExpTabViewSettings::CreateSelectionData(), XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadPane(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
sal_uInt16 XclTabViewData::mnCurrentZoom |
Zoom factor for pagebreak preview.
Definition at line 128 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadScl(), XclExpTabViewSettings::SaveXml(), SetDefaults(), XclExpTabViewSettings::WriteScl(), and XclExpTabViewSettings::XclExpTabViewSettings().
sal_uInt16 XclTabViewData::mnNormalZoom |
Split Y position, or number of frozen rows.
Definition at line 126 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
sal_uInt16 XclTabViewData::mnPageZoom |
Zoom factor for normal view.
Definition at line 127 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), XclImpTabViewSettings::ReadWindow2(), XclExpTabViewSettings::SaveXml(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
sal_uInt16 XclTabViewData::mnSplitX |
First visible cell in additional panes.
Definition at line 124 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), HasPane(), IsSplit(), XclImpTabViewSettings::ReadPane(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
sal_uInt32 XclTabViewData::mnSplitY |
Split X position, or number of frozen columns.
Definition at line 125 of file xlview.hxx.
Referenced by XclImpTabViewSettings::Finalize(), HasPane(), IsSplit(), XclImpTabViewSettings::ReadPane(), SetDefaults(), and XclExpTabViewSettings::XclExpTabViewSettings().
sal_uInt32 XclTabViewData::mnTabBgColorId |
Definition at line 143 of file xlview.hxx.
Referenced by SetDefaults(), XclExpTabBgColor::WriteBody(), and XclExpTabViewSettings::XclExpTabViewSettings().