LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Public Attributes | List of all members
oox::xls::SheetViewModel Struct Reference

Contains all view settings for a single sheet. More...

#include <viewsettings.hxx>

Collaboration diagram for oox::xls::SheetViewModel:
[legend]

Public Types

typedef RefMap< sal_Int32, PaneSelectionModelPaneSelectionModelMap
 

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 PaneSelectionModelgetActiveSelection () const
 Returns the selection data of the active pane. More...
 
PaneSelectionModelcreatePaneSelection (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...
 

Detailed Description

Contains all view settings for a single sheet.

Definition at line 40 of file viewsettings.hxx.

Member Typedef Documentation

◆ PaneSelectionModelMap

Definition at line 42 of file viewsettings.hxx.

Constructor & Destructor Documentation

◆ SheetViewModel()

oox::xls::SheetViewModel::SheetViewModel ( )
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().

Member Function Documentation

◆ createPaneSelection()

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.

◆ getActiveSelection()

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.

◆ getGridColor()

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.

◆ getNormalZoom()

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.

◆ getPageBreakZoom()

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.

◆ isPageBreakPreview()

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().

Member Data Documentation

◆ maFirstPos

ScAddress oox::xls::SheetViewModel::maFirstPos

Grid color.

Definition at line 46 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importSheetView().

◆ maGridColor

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().

◆ maPaneSelMap

PaneSelectionModelMap oox::xls::SheetViewModel::maPaneSelMap

Definition at line 44 of file viewsettings.hxx.

Referenced by createPaneSelection(), and getActiveSelection().

◆ maSecondPos

ScAddress oox::xls::SheetViewModel::maSecondPos

First visible cell.

Definition at line 47 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importPane().

◆ mbDefGridColor

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().

◆ mbRightToLeft

bool oox::xls::SheetViewModel::mbRightToLeft

True = sheet is selected.

Definition at line 59 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importSheetView().

◆ mbSelected

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().

◆ mbShowFormulas

bool oox::xls::SheetViewModel::mbShowFormulas

True = default grid color.

Definition at line 61 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importSheetView().

◆ mbShowGrid

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().

◆ mbShowHeadings

bool oox::xls::SheetViewModel::mbShowHeadings

True = show cell grid.

Definition at line 63 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importSheetView().

◆ mbShowOutline

bool oox::xls::SheetViewModel::mbShowOutline

True = show zero value zells.

Definition at line 65 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importSheetView().

◆ mbShowZeros

bool oox::xls::SheetViewModel::mbShowZeros

True = show column/row headings.

Definition at line 64 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importSheetView().

◆ mbZoomToFit

bool oox::xls::SheetViewModel::mbZoomToFit

True = show outlines.

Definition at line 66 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importChartSheetView().

◆ mfSplitX

double oox::xls::SheetViewModel::mfSplitX

Pane state (frozen, split).

Definition at line 52 of file viewsettings.hxx.

Referenced by oox::xls::SheetViewSettings::importPane().

◆ mfSplitY

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().

◆ mnActivePaneId

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().

◆ mnCurrentZoom

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().

◆ mnNormalZoom

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().

◆ mnPageLayoutZoom

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().

◆ mnPaneState

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().

◆ mnSheetLayoutZoom

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().

◆ mnViewType

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().

◆ mnWorkbookViewId

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().


The documentation for this struct was generated from the following files: