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

Represents the current state of the controller (needed for issue 63017). More...

Public Member Functions

 ControllerState ()
 
void update (const Reference< frame::XController > &xController, const rtl::Reference<::chart::ChartModel > &xModel)
 

Public Attributes

bool bHasSelectedObject
 
bool bIsPositionableObject
 
bool bIsTextObject
 
bool bIsDeleteableObjectSelected
 
bool bIsFormateableObjectSelected
 
bool bMayMoveSeriesForward
 
bool bMayMoveSeriesBackward
 
bool bMayAddMenuTrendline
 
bool bMayAddTrendline
 
bool bMayAddTrendlineEquation
 
bool bMayAddR2Value
 
bool bMayAddMeanValue
 
bool bMayAddXErrorBars
 
bool bMayAddYErrorBars
 
bool bMayDeleteTrendline
 
bool bMayDeleteTrendlineEquation
 
bool bMayDeleteR2Value
 
bool bMayDeleteMeanValue
 
bool bMayDeleteXErrorBars
 
bool bMayDeleteYErrorBars
 
bool bMayFormatTrendline
 
bool bMayFormatTrendlineEquation
 
bool bMayFormatMeanValue
 
bool bMayFormatXErrorBars
 
bool bMayFormatYErrorBars
 

Detailed Description

Represents the current state of the controller (needed for issue 63017).

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 (e.g. format>arrangement). 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 104 of file ControllerCommandDispatch.cxx.

Constructor & Destructor Documentation

◆ ControllerState()

chart::impl::ControllerState::ControllerState ( )

Definition at line 146 of file ControllerCommandDispatch.cxx.

Member Function Documentation

◆ update()

void chart::impl::ControllerState::update ( const Reference< frame::XController > &  xController,
const rtl::Reference<::chart::ChartModel > &  xModel 
)

Definition at line 174 of file ControllerCommandDispatch.cxx.

References bHasSelectedObject, bIsDeleteableObjectSelected, bIsFormateableObjectSelected, bIsPositionableObject, bIsTextObject, bMayAddMeanValue, bMayAddMenuTrendline, bMayAddR2Value, bMayAddTrendline, bMayAddTrendlineEquation, bMayAddXErrorBars, bMayAddYErrorBars, bMayDeleteMeanValue, bMayDeleteR2Value, bMayDeleteTrendline, bMayDeleteTrendlineEquation, bMayDeleteXErrorBars, bMayDeleteYErrorBars, bMayFormatMeanValue, bMayFormatTrendline, bMayFormatTrendlineEquation, bMayFormatXErrorBars, bMayFormatYErrorBars, bMayMoveSeriesBackward, bMayMoveSeriesForward, chart::DataSeriesHelper::getChartTypeOfSeries(), chart::ObjectIdentifier::getDataSeriesForCID(), chart::ObjectIdentifier::getObjectCID(), chart::ObjectIdentifier::getObjectPropertySet(), chart::ObjectIdentifier::getObjectType(), chart::RegressionCurveHelper::hasEquation(), chart::StatisticsHelper::hasErrorBars(), chart::RegressionCurveHelper::hasMeanValueLine(), chart::ObjectIdentifier::isAutoGeneratedObject(), chart::ObjectIdentifier::isDragableObject(), chart::ChartController::isObjectDeleteable(), chart::ChartTypeHelper::isSupportingRegressionProperties(), chart::ChartTypeHelper::isSupportingStatisticProperties(), chart::ObjectIdentifier::isValid(), chart::RegressionCurveHelper::MayHaveCorrelationCoefficient(), chart::OBJECTTYPE_DATA_AVERAGE_LINE, chart::OBJECTTYPE_DATA_CURVE, chart::OBJECTTYPE_DATA_CURVE_EQUATION, chart::OBJECTTYPE_DATA_ERRORS_X, chart::OBJECTTYPE_DATA_ERRORS_Y, chart::OBJECTTYPE_DATA_POINT, chart::OBJECTTYPE_DATA_SERIES, chart::OBJECTTYPE_DIAGRAM, chart::OBJECTTYPE_DIAGRAM_FLOOR, chart::OBJECTTYPE_DIAGRAM_WALL, chart::OBJECTTYPE_TITLE, TOOLS_WARN_EXCEPTION, xController, and xModel.

Member Data Documentation

◆ bHasSelectedObject

bool chart::impl::ControllerState::bHasSelectedObject

Definition at line 112 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bIsDeleteableObjectSelected

bool chart::impl::ControllerState::bIsDeleteableObjectSelected

Definition at line 115 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bIsFormateableObjectSelected

bool chart::impl::ControllerState::bIsFormateableObjectSelected

Definition at line 116 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bIsPositionableObject

bool chart::impl::ControllerState::bIsPositionableObject

Definition at line 113 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bIsTextObject

bool chart::impl::ControllerState::bIsTextObject

Definition at line 114 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayAddMeanValue

bool chart::impl::ControllerState::bMayAddMeanValue

Definition at line 128 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayAddMenuTrendline

bool chart::impl::ControllerState::bMayAddMenuTrendline

Definition at line 124 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayAddR2Value

bool chart::impl::ControllerState::bMayAddR2Value

Definition at line 127 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayAddTrendline

bool chart::impl::ControllerState::bMayAddTrendline

Definition at line 125 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayAddTrendlineEquation

bool chart::impl::ControllerState::bMayAddTrendlineEquation

Definition at line 126 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayAddXErrorBars

bool chart::impl::ControllerState::bMayAddXErrorBars

Definition at line 129 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayAddYErrorBars

bool chart::impl::ControllerState::bMayAddYErrorBars

Definition at line 130 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayDeleteMeanValue

bool chart::impl::ControllerState::bMayDeleteMeanValue

Definition at line 135 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayDeleteR2Value

bool chart::impl::ControllerState::bMayDeleteR2Value

Definition at line 134 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayDeleteTrendline

bool chart::impl::ControllerState::bMayDeleteTrendline

Definition at line 132 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayDeleteTrendlineEquation

bool chart::impl::ControllerState::bMayDeleteTrendlineEquation

Definition at line 133 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayDeleteXErrorBars

bool chart::impl::ControllerState::bMayDeleteXErrorBars

Definition at line 136 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayDeleteYErrorBars

bool chart::impl::ControllerState::bMayDeleteYErrorBars

Definition at line 137 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayFormatMeanValue

bool chart::impl::ControllerState::bMayFormatMeanValue

Definition at line 141 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayFormatTrendline

bool chart::impl::ControllerState::bMayFormatTrendline

Definition at line 139 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayFormatTrendlineEquation

bool chart::impl::ControllerState::bMayFormatTrendlineEquation

Definition at line 140 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayFormatXErrorBars

bool chart::impl::ControllerState::bMayFormatXErrorBars

Definition at line 142 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayFormatYErrorBars

bool chart::impl::ControllerState::bMayFormatYErrorBars

Definition at line 143 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayMoveSeriesBackward

bool chart::impl::ControllerState::bMayMoveSeriesBackward

Definition at line 121 of file ControllerCommandDispatch.cxx.

Referenced by update().

◆ bMayMoveSeriesForward

bool chart::impl::ControllerState::bMayMoveSeriesForward

Definition at line 120 of file ControllerCommandDispatch.cxx.

Referenced by update().


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