summaryrefslogtreecommitdiff
path: root/svx/inc/orienthelper.hxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-11-26 15:19:48 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-11-26 15:19:48 +0000
commit8ae52b16cae27319de1bef545600cb62edfe7c80 (patch)
tree48d65926d6dd8ac02d9458f4574dde9f04818169 /svx/inc/orienthelper.hxx
parentbe1bef29987f4aeb6f07f8212a02108f5dc4b2b7 (diff)
CWS-TOOLING: integrate CWS rtlchart01
Diffstat (limited to 'svx/inc/orienthelper.hxx')
-rw-r--r--svx/inc/orienthelper.hxx19
1 files changed, 12 insertions, 7 deletions
diff --git a/svx/inc/orienthelper.hxx b/svx/inc/orienthelper.hxx
index 1deaa906837d..3bbbaac77e9a 100644
--- a/svx/inc/orienthelper.hxx
+++ b/svx/inc/orienthelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: orienthelper.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.274.1 $
*
* This file is part of OpenOffice.org.
*
@@ -63,26 +63,21 @@ struct OrientationHelper_Impl;
direct modifications of the "Stacked text" check box. Otherwise the update
mechanism of registered controls will not work.
*/
-class SVX_DLLPUBLIC OrientationHelper : public Window
+class SVX_DLLPUBLIC OrientationHelper
{
public:
explicit OrientationHelper(
- Window* pParent,
DialControl& rCtrlDial,
CheckBox& rCbStacked );
/** @param rNfRotation A numeric field that will be connected to the DialControl. */
explicit OrientationHelper(
- Window* pParent,
DialControl& rCtrlDial,
NumericField& rNfRotation,
CheckBox& rCbStacked );
virtual ~OrientationHelper();
- /** Handles Enable/Show events for all registered windows. */
- virtual void StateChanged( StateChangedType nStateChange );
-
/** Registers the passed window to be enabled/disabled on call of Enable().
@param eDisableIfStacked
STATE_CHECK: Window always disabled, if stacked text is turned on.
@@ -90,6 +85,16 @@ public:
STATE_DONTKNOW: Window will be enabled/disabled independent from stacked text. */
void AddDependentWindow( Window& rWindow, TriState eDisableIfStacked = STATE_DONTKNOW );
+ /** Enables or disables the dial control and all dependent windows. */
+ void Enable( bool bEnable = true );
+ /** Disables the dial control and all dependent windows. */
+ inline void Disable() { Enable( false ); }
+
+ /** Shows or hides the dial control and all dependent windows. */
+ void Show( bool bShow = true );
+ /** Hides the dial control and all dependent windows. */
+ inline void Hide() { Show( false ); }
+
/** Sets the "stacked" check box to the passed state and updates dependent controls. */
void SetStackedState( TriState eState );
/** Returns the state of the "stacked" check box. */