|
LibreOffice Module sc (master) 1
|
Contains all view settings for a single sheet. More...
#include <viewsettings.hxx>
Public Types | |
| typedef RefMap< sal_Int32, PaneSelectionModel > | PaneSelectionModelMap |
Public Member Functions | |
| SheetViewModel () | |
| True = zoom chart sheet to fit window. More... | |
| bool | isPageBreakPreview () const |
| Returns true, if page break preview is active. More... | |
| sal_Int32 | getNormalZoom () const |
| Returns the zoom in normal view (returns default, if current value is 0). More... | |
| sal_Int32 | getPageBreakZoom () const |
| Returns the zoom in pagebreak preview (returns default, if current value is 0). More... | |
| ::Color | getGridColor (const ::oox::core::FilterBase &rFilter) const |
| Returns the grid color as RGB value. More... | |
| const PaneSelectionModel * | getActiveSelection () const |
| Returns the selection data of the active pane. More... | |
| PaneSelectionModel & | createPaneSelection (sal_Int32 nPaneId) |
| Returns read/write access to the selection data of the specified pane. More... | |
Public Attributes | |
| PaneSelectionModelMap | maPaneSelMap |
| Color | maGridColor |
| Selections of all panes. More... | |
| ScAddress | maFirstPos |
| Grid color. More... | |
| ScAddress | maSecondPos |
| First visible cell. More... | |
| sal_Int32 | mnWorkbookViewId |
| First visible cell in additional panes. More... | |
| sal_Int32 | mnViewType |
| Index into list of workbookView elements. More... | |
| sal_Int32 | mnActivePaneId |
| View type (normal, page break, layout). More... | |
| sal_Int32 | mnPaneState |
| Active pane (with cell cursor). More... | |
| double | mfSplitX |
| Pane state (frozen, split). More... | |
| double | mfSplitY |
| Split X position (twips), or number of frozen columns. More... | |
| sal_Int32 | mnCurrentZoom |
| Split Y position (twips), or number of frozen rows. More... | |
| sal_Int32 | mnNormalZoom |
| Zoom factor for current view. More... | |
| sal_Int32 | mnSheetLayoutZoom |
| Zoom factor for normal view. More... | |
| sal_Int32 | mnPageLayoutZoom |
| Zoom factor for pagebreak preview. More... | |
| bool | mbSelected |
| Zoom factor for page layout view. More... | |
| bool | mbRightToLeft |
| True = sheet is selected. More... | |
| bool | mbDefGridColor |
| True = sheet in right-to-left mode. 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... | |
| bool | mbZoomToFit |
| True = show outlines. More... | |
Contains all view settings for a single sheet.
Definition at line 40 of file viewsettings.hxx.
| typedef RefMap< sal_Int32, PaneSelectionModel > oox::xls::SheetViewModel::PaneSelectionModelMap |
Definition at line 42 of file viewsettings.hxx.
|
explicit |
True = zoom chart sheet to fit window.
Definition at line 115 of file viewsettings.cxx.
References maGridColor, oox::xls::OOX_COLOR_WINDOWTEXT, and oox::xls::Color::setIndexed().
| PaneSelectionModel & oox::xls::SheetViewModel::createPaneSelection | ( | sal_Int32 | nPaneId | ) |
Returns read/write access to the selection data of the specified pane.
Definition at line 168 of file viewsettings.cxx.
References maPaneSelMap.
| const PaneSelectionModel * oox::xls::SheetViewModel::getActiveSelection | ( | ) | const |
Returns the selection data of the active pane.
Definition at line 163 of file viewsettings.cxx.
References oox::RefMap< typename KeyType, typename ObjType, typename CompType >::get(), maPaneSelMap, and mnActivePaneId.
| Color oox::xls::SheetViewModel::getGridColor | ( | const ::oox::core::FilterBase & | rFilter | ) | const |
Returns the grid color as RGB value.
Definition at line 158 of file viewsettings.cxx.
References oox::API_RGB_TRANSPARENT, oox::drawingml::Color::getColor(), maGridColor, and mbDefGridColor.
| sal_Int32 oox::xls::SheetViewModel::getNormalZoom | ( | ) | const |
Returns the zoom in normal view (returns default, if current value is 0).
Definition at line 144 of file viewsettings.cxx.
References isPageBreakPreview(), mnCurrentZoom, and mnNormalZoom.
| sal_Int32 oox::xls::SheetViewModel::getPageBreakZoom | ( | ) | const |
Returns the zoom in pagebreak preview (returns default, if current value is 0).
Definition at line 151 of file viewsettings.cxx.
References isPageBreakPreview(), mnCurrentZoom, and mnSheetLayoutZoom.
| bool oox::xls::SheetViewModel::isPageBreakPreview | ( | ) | const |
Returns true, if page break preview is active.
Definition at line 139 of file viewsettings.cxx.
References mnViewType.
Referenced by getNormalZoom(), and getPageBreakZoom().
| ScAddress oox::xls::SheetViewModel::maFirstPos |
Grid color.
Definition at line 46 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| Color oox::xls::SheetViewModel::maGridColor |
Selections of all panes.
Definition at line 45 of file viewsettings.hxx.
Referenced by getGridColor(), oox::xls::SheetViewSettings::importSheetView(), and SheetViewModel().
| PaneSelectionModelMap oox::xls::SheetViewModel::maPaneSelMap |
Definition at line 44 of file viewsettings.hxx.
Referenced by createPaneSelection(), and getActiveSelection().
| ScAddress oox::xls::SheetViewModel::maSecondPos |
First visible cell.
Definition at line 47 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importPane().
| bool oox::xls::SheetViewModel::mbDefGridColor |
True = sheet in right-to-left mode.
Definition at line 60 of file viewsettings.hxx.
Referenced by getGridColor(), and oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbRightToLeft |
True = sheet is selected.
Definition at line 59 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbSelected |
Zoom factor for page layout view.
Definition at line 58 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importChartSheetView(), and oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbShowFormulas |
True = default grid color.
Definition at line 61 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbShowGrid |
True = show formulas instead of results.
Definition at line 62 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbShowHeadings |
True = show cell grid.
Definition at line 63 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbShowOutline |
True = show zero value zells.
Definition at line 65 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbShowZeros |
True = show column/row headings.
Definition at line 64 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| bool oox::xls::SheetViewModel::mbZoomToFit |
True = show outlines.
Definition at line 66 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importChartSheetView().
| double oox::xls::SheetViewModel::mfSplitX |
Pane state (frozen, split).
Definition at line 52 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importPane().
| double oox::xls::SheetViewModel::mfSplitY |
Split X position (twips), or number of frozen columns.
Definition at line 53 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importPane().
| sal_Int32 oox::xls::SheetViewModel::mnActivePaneId |
View type (normal, page break, layout).
Definition at line 50 of file viewsettings.hxx.
Referenced by getActiveSelection(), and oox::xls::SheetViewSettings::importPane().
| sal_Int32 oox::xls::SheetViewModel::mnCurrentZoom |
Split Y position (twips), or number of frozen rows.
Definition at line 54 of file viewsettings.hxx.
Referenced by getNormalZoom(), getPageBreakZoom(), oox::xls::SheetViewSettings::importChartSheetView(), and oox::xls::SheetViewSettings::importSheetView().
| sal_Int32 oox::xls::SheetViewModel::mnNormalZoom |
Zoom factor for current view.
Definition at line 55 of file viewsettings.hxx.
Referenced by getNormalZoom(), and oox::xls::SheetViewSettings::importSheetView().
| sal_Int32 oox::xls::SheetViewModel::mnPageLayoutZoom |
Zoom factor for pagebreak preview.
Definition at line 57 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView().
| sal_Int32 oox::xls::SheetViewModel::mnPaneState |
Active pane (with cell cursor).
Definition at line 51 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importPane().
| sal_Int32 oox::xls::SheetViewModel::mnSheetLayoutZoom |
Zoom factor for normal view.
Definition at line 56 of file viewsettings.hxx.
Referenced by getPageBreakZoom(), and oox::xls::SheetViewSettings::importSheetView().
| sal_Int32 oox::xls::SheetViewModel::mnViewType |
Index into list of workbookView elements.
Definition at line 49 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importSheetView(), and isPageBreakPreview().
| sal_Int32 oox::xls::SheetViewModel::mnWorkbookViewId |
First visible cell in additional panes.
Definition at line 48 of file viewsettings.hxx.
Referenced by oox::xls::SheetViewSettings::importChartSheetView(), and oox::xls::SheetViewSettings::importSheetView().