LibreOffice Module chart2 (master) 1
|
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 |
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.
chart::impl::ModelState::ModelState | ( | ) |
Definition at line 370 of file ControllerCommandDispatch.cxx.
bool chart::impl::ModelState::HasAnyAxis | ( | ) | const |
bool chart::impl::ModelState::HasAnyGrid | ( | ) | const |
Definition at line 461 of file ControllerCommandDispatch.cxx.
References bHasHelpXGrid, bHasHelpYGrid, bHasHelpZGrid, bHasMainXGrid, bHasMainYGrid, and bHasMainZGrid.
bool chart::impl::ModelState::HasAnyTitle | ( | ) | const |
Definition at line 467 of file ControllerCommandDispatch.cxx.
References bHasMainTitle, bHasSecondaryXAxisTitle, bHasSecondaryYAxisTitle, bHasSubTitle, bHasXAxisTitle, bHasYAxisTitle, and bHasZAxisTitle.
void chart::impl::ModelState::update | ( | const rtl::Reference<::chart::ChartModel > & | xModel | ) |
Definition at line 401 of file ControllerCommandDispatch.cxx.
References chart::ReferenceSizeProvider::AUTO_RESIZE_YES, bDataTable, bHasAAxis, bHasAutoScaledText, bHasBAxis, bHasDataFromPivotTable, bHasFloor, bHasHelpXGrid, bHasHelpYGrid, bHasHelpZGrid, bHasLegend, bHasMainTitle, bHasMainXGrid, bHasMainYGrid, bHasMainZGrid, bHasOwnData, bHasSecondaryXAxisTitle, bHasSecondaryYAxisTitle, bHasSubTitle, bHasWall, bHasXAxis, bHasXAxisTitle, bHasYAxis, bHasYAxisTitle, bHasZAxis, bHasZAxisTitle, bIsReadOnly, bIsThreeD, bSupportsAxes, bSupportsStatistics, chart::ReferenceSizeProvider::getAutoResizeState(), chart::AxisHelper::getAxis(), chart::TitleHelper::getTitle(), chart::LegendHelper::hasLegend(), chart::AxisHelper::isGridShown(), chart::ChartTypeHelper::isSupportingMainAxis(), chart::ChartTypeHelper::isSupportingStatisticProperties(), chart::TitleHelper::MAIN_TITLE, chart::TitleHelper::SECONDARY_X_AXIS_TITLE, chart::TitleHelper::SECONDARY_Y_AXIS_TITLE, chart::TitleHelper::SUB_TITLE, chart::TitleHelper::X_AXIS_TITLE, xModel, chart::TitleHelper::Y_AXIS_TITLE, and chart::TitleHelper::Z_AXIS_TITLE.
bool chart::impl::ModelState::bDataTable = false |
Definition at line 367 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bHasAAxis |
Definition at line 349 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyAxis(), and update().
bool chart::impl::ModelState::bHasAutoScaledText |
Definition at line 359 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bHasBAxis |
Definition at line 350 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyAxis(), and update().
bool chart::impl::ModelState::bHasDataFromPivotTable |
Definition at line 336 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bHasFloor |
Definition at line 362 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bHasHelpXGrid |
Definition at line 355 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyGrid(), and update().
bool chart::impl::ModelState::bHasHelpYGrid |
Definition at line 356 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyGrid(), and update().
bool chart::impl::ModelState::bHasHelpZGrid |
Definition at line 357 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyGrid(), and update().
bool chart::impl::ModelState::bHasLegend |
Definition at line 360 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bHasMainTitle |
Definition at line 338 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyTitle(), and update().
bool chart::impl::ModelState::bHasMainXGrid |
Definition at line 352 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyGrid(), and update().
bool chart::impl::ModelState::bHasMainYGrid |
Definition at line 353 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyGrid(), and update().
bool chart::impl::ModelState::bHasMainZGrid |
Definition at line 354 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyGrid(), and update().
bool chart::impl::ModelState::bHasOwnData |
Definition at line 335 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bHasSecondaryXAxisTitle |
Definition at line 343 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyTitle(), and update().
bool chart::impl::ModelState::bHasSecondaryYAxisTitle |
Definition at line 344 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyTitle(), and update().
bool chart::impl::ModelState::bHasSubTitle |
Definition at line 339 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyTitle(), and update().
bool chart::impl::ModelState::bHasWall |
Definition at line 361 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bHasXAxis |
Definition at line 346 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyAxis(), and update().
bool chart::impl::ModelState::bHasXAxisTitle |
Definition at line 340 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyTitle(), and update().
bool chart::impl::ModelState::bHasYAxis |
Definition at line 347 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyAxis(), and update().
bool chart::impl::ModelState::bHasYAxisTitle |
Definition at line 341 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyTitle(), and update().
bool chart::impl::ModelState::bHasZAxis |
Definition at line 348 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyAxis(), and update().
bool chart::impl::ModelState::bHasZAxisTitle |
Definition at line 342 of file ControllerCommandDispatch.cxx.
Referenced by HasAnyTitle(), and update().
bool chart::impl::ModelState::bIsReadOnly |
Definition at line 333 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bIsThreeD |
Definition at line 334 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bSupportsAxes |
Definition at line 365 of file ControllerCommandDispatch.cxx.
Referenced by update().
bool chart::impl::ModelState::bSupportsStatistics |
Definition at line 364 of file ControllerCommandDispatch.cxx.
Referenced by update().