LibreOffice Module chart2 (master) 1
Public Member Functions | Public Attributes | List of all members
chart::impl::ModelState Struct Reference

Represents the current state of the model. More...

Public Member Functions

 ModelState ()
 
void update (const rtl::Reference<::chart::ChartModel > &xModel)
 
bool HasAnyAxis () const
 
bool HasAnyGrid () const
 
bool HasAnyTitle () const
 

Public Attributes

bool bIsReadOnly
 
bool bIsThreeD
 
bool bHasOwnData
 
bool bHasDataFromPivotTable
 
bool bHasMainTitle
 
bool bHasSubTitle
 
bool bHasXAxisTitle
 
bool bHasYAxisTitle
 
bool bHasZAxisTitle
 
bool bHasSecondaryXAxisTitle
 
bool bHasSecondaryYAxisTitle
 
bool bHasXAxis
 
bool bHasYAxis
 
bool bHasZAxis
 
bool bHasAAxis
 
bool bHasBAxis
 
bool bHasMainXGrid
 
bool bHasMainYGrid
 
bool bHasMainZGrid
 
bool bHasHelpXGrid
 
bool bHasHelpYGrid
 
bool bHasHelpZGrid
 
bool bHasAutoScaledText
 
bool bHasLegend
 
bool bHasWall
 
bool bHasFloor
 
bool bSupportsStatistics
 
bool bSupportsAxes
 
bool bDataTable = false
 

Detailed Description

Represents the current state of the model.

You can set the state by calling update(). After this call the state is preserved in this class until the next call to update().

This is useful, not to say necessary, for enabling and disabling of menu entries and toolbar icons. As the status requests are sent very frequently it would be impossible, from a performance point of view, to query the current status every time directly at the model. So this class serves as a cache for the state.

Definition at line 323 of file ControllerCommandDispatch.cxx.

Constructor & Destructor Documentation

◆ ModelState()

chart::impl::ModelState::ModelState ( )

Definition at line 370 of file ControllerCommandDispatch.cxx.

Member Function Documentation

◆ HasAnyAxis()

bool chart::impl::ModelState::HasAnyAxis ( ) const

Definition at line 456 of file ControllerCommandDispatch.cxx.

References bHasAAxis, bHasBAxis, bHasXAxis, bHasYAxis, and bHasZAxis.

◆ HasAnyGrid()

bool chart::impl::ModelState::HasAnyGrid ( ) const

◆ HasAnyTitle()

bool chart::impl::ModelState::HasAnyTitle ( ) const

◆ update()

void chart::impl::ModelState::update ( const rtl::Reference<::chart::ChartModel > &  xModel)

Member Data Documentation

◆ bDataTable

bool chart::impl::ModelState::bDataTable = false

Definition at line 367 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bHasAAxis

bool chart::impl::ModelState::bHasAAxis

Definition at line 349 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyAxis(), and update().

◆ bHasAutoScaledText

bool chart::impl::ModelState::bHasAutoScaledText

Definition at line 359 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bHasBAxis

bool chart::impl::ModelState::bHasBAxis

Definition at line 350 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyAxis(), and update().

◆ bHasDataFromPivotTable

bool chart::impl::ModelState::bHasDataFromPivotTable

Definition at line 336 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bHasFloor

bool chart::impl::ModelState::bHasFloor

Definition at line 362 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bHasHelpXGrid

bool chart::impl::ModelState::bHasHelpXGrid

Definition at line 355 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyGrid(), and update().

◆ bHasHelpYGrid

bool chart::impl::ModelState::bHasHelpYGrid

Definition at line 356 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyGrid(), and update().

◆ bHasHelpZGrid

bool chart::impl::ModelState::bHasHelpZGrid

Definition at line 357 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyGrid(), and update().

◆ bHasLegend

bool chart::impl::ModelState::bHasLegend

Definition at line 360 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bHasMainTitle

bool chart::impl::ModelState::bHasMainTitle

Definition at line 338 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyTitle(), and update().

◆ bHasMainXGrid

bool chart::impl::ModelState::bHasMainXGrid

Definition at line 352 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyGrid(), and update().

◆ bHasMainYGrid

bool chart::impl::ModelState::bHasMainYGrid

Definition at line 353 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyGrid(), and update().

◆ bHasMainZGrid

bool chart::impl::ModelState::bHasMainZGrid

Definition at line 354 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyGrid(), and update().

◆ bHasOwnData

bool chart::impl::ModelState::bHasOwnData

Definition at line 335 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bHasSecondaryXAxisTitle

bool chart::impl::ModelState::bHasSecondaryXAxisTitle

Definition at line 343 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyTitle(), and update().

◆ bHasSecondaryYAxisTitle

bool chart::impl::ModelState::bHasSecondaryYAxisTitle

Definition at line 344 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyTitle(), and update().

◆ bHasSubTitle

bool chart::impl::ModelState::bHasSubTitle

Definition at line 339 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyTitle(), and update().

◆ bHasWall

bool chart::impl::ModelState::bHasWall

Definition at line 361 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bHasXAxis

bool chart::impl::ModelState::bHasXAxis

Definition at line 346 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyAxis(), and update().

◆ bHasXAxisTitle

bool chart::impl::ModelState::bHasXAxisTitle

Definition at line 340 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyTitle(), and update().

◆ bHasYAxis

bool chart::impl::ModelState::bHasYAxis

Definition at line 347 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyAxis(), and update().

◆ bHasYAxisTitle

bool chart::impl::ModelState::bHasYAxisTitle

Definition at line 341 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyTitle(), and update().

◆ bHasZAxis

bool chart::impl::ModelState::bHasZAxis

Definition at line 348 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyAxis(), and update().

◆ bHasZAxisTitle

bool chart::impl::ModelState::bHasZAxisTitle

Definition at line 342 of file ControllerCommandDispatch.cxx.

Referenced by HasAnyTitle(), and update().

◆ bIsReadOnly

bool chart::impl::ModelState::bIsReadOnly

Definition at line 333 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bIsThreeD

bool chart::impl::ModelState::bIsThreeD

Definition at line 334 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bSupportsAxes

bool chart::impl::ModelState::bSupportsAxes

Definition at line 365 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bSupportsStatistics

bool chart::impl::ModelState::bSupportsStatistics

Definition at line 364 of file ControllerCommandDispatch.cxx.

Referenced by update().


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