/// enables dynamic border color for the controls void enableDynamicBorderColor( ); /// disables dynamic border color for the controls void disableDynamicBorderColor( );
/** sets a color to be used for a given status @param_nStatus thestatuswhichthecolorshouldbeappliedfor.MustnotbeControlStatus::NONE @param_nColor thecolortoapplyforthegivenstatus
*/ void setStatusColor( ControlStatus _nStatus, Color _nColor );
/** restores all colors of all controls where we possibly changed them
*/ void restoreAll();
private: /** called when a control got one of the two possible statuses (focused, and hovered with the mouse) @param_rxControl thecontrolwhichgainedthestatus @param_rControlData thecontrol'sstatusdata,asareferencetoourrespectivemember
*/ void controlStatusGained( const css::uno::Reference< css::uno::XInterface >& _rxControl,
ControlData& _rControlData
);
/** called when a control lost one of the two possible statuses (focused, and hovered with the mouse) @param_rxControl thecontrolwhichlostthestatus @param_rControlData thecontrol'sstatusdata,asareferencetoourrespectivemember
*/ void controlStatusLost( const css::uno::Reference< css::uno::XInterface >& _rxControl, ControlData& _rControlData );
/** determines whether the border of a given peer can be colored @param_rxPeer thepeertoexamine.Mustnotbe<NULL/>
*/ bool canColorBorder( const css::uno::Reference< css::awt::XVclWindowPeer >& _rxPeer );
/** determines the status of the given control
*/
ControlStatus getControlStatus( const css::uno::Reference< css::awt::XControl >& _rxControl );
/** retrieves the color associated with a given ControlStatus @param_eStatus thestatusofthecontrol.Mustnotbe<member>ControlStatus::none</member>
*/
Color getControlColorByStatus( ControlStatus _eStatus ) const;
/** sets the border color for a given control, depending on its status @param_rxControl thecontroltosetthebordercolorfor.Mustnotbe<NULL/> @param_rxPeer thepeerofthecontrol,tobepassedhereinforoptimizationthecallerusuallyneedsit,anyway). Mustnotbe<NULL/> @param_rFallback thecolor/typetousewhenthecontrolhasthestatusControlStatus::NONE
*/ void updateBorderStyle( const css::uno::Reference< css::awt::XControl >& _rxControl, const css::uno::Reference< css::awt::XVclWindowPeer >& _rxPeer, const BorderDescriptor& _rFallback
);
/** determines the to-be-remembered original border color and type for a control
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.