Kaydet (Commit) 870349ea authored tarafından Herbert Dürr's avatar Herbert Dürr

make some important single-parameter constructors explicit

for symmetry also the other constructors in the same class
and mark their destructors as virtual if they are anyway
üst a636947f
...@@ -66,12 +66,12 @@ public: ...@@ -66,12 +66,12 @@ public:
SAL_DLLPRIVATE void ImplSetSymbolRect(const Rectangle&); SAL_DLLPRIVATE void ImplSetSymbolRect(const Rectangle&);
protected: protected:
Button( WindowType nType ); explicit Button( WindowType nType );
public: public:
Button( Window* pParent, WinBits nStyle = 0 ); explicit Button( Window* pParent, WinBits nStyle = 0 );
Button( Window* pParent, const ResId& rResId ); explicit Button( Window* pParent, const ResId& );
~Button(); virtual ~Button();
virtual void Click(); virtual void Click();
...@@ -149,7 +149,7 @@ public: ...@@ -149,7 +149,7 @@ public:
SAL_DLLPRIVATE sal_Bool ImplIsDefButton() const; SAL_DLLPRIVATE sal_Bool ImplIsDefButton() const;
protected: protected:
PushButton( WindowType nType ); explicit PushButton( WindowType nType );
virtual void FillLayoutData() const; virtual void FillLayoutData() const;
virtual const Font& virtual const Font&
...@@ -157,9 +157,9 @@ protected: ...@@ -157,9 +157,9 @@ protected:
virtual const Color& virtual const Color&
GetCanonicalTextColor( const StyleSettings& _rStyle ) const; GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
public: public:
PushButton( Window* pParent, WinBits nStyle = 0 ); explicit PushButton( Window* pParent, WinBits nStyle = 0 );
PushButton( Window* pParent, const ResId& rResId ); explicit PushButton( Window* pParent, const ResId& );
~PushButton(); virtual ~PushButton();
virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void Tracking( const TrackingEvent& rTEvt ); virtual void Tracking( const TrackingEvent& rTEvt );
...@@ -232,8 +232,8 @@ private: ...@@ -232,8 +232,8 @@ private:
SAL_DLLPRIVATE OKButton & operator= (const OKButton &); SAL_DLLPRIVATE OKButton & operator= (const OKButton &);
public: public:
OKButton( Window* pParent, WinBits nStyle = WB_DEFBUTTON ); explicit OKButton( Window* pParent, WinBits nStyle = WB_DEFBUTTON );
OKButton( Window* pParent, const ResId& rResId ); explicit OKButton( Window* pParent, const ResId& );
virtual void Click(); virtual void Click();
}; };
...@@ -254,8 +254,8 @@ private: ...@@ -254,8 +254,8 @@ private:
SAL_DLLPRIVATE CancelButton & operator= (const CancelButton &); SAL_DLLPRIVATE CancelButton & operator= (const CancelButton &);
public: public:
CancelButton( Window* pParent, WinBits nStyle = 0 ); explicit CancelButton( Window* pParent, WinBits nStyle = 0 );
CancelButton( Window* pParent, const ResId& rResId ); explicit CancelButton( Window* pParent, const ResId& );
virtual void Click(); virtual void Click();
}; };
...@@ -276,8 +276,8 @@ private: ...@@ -276,8 +276,8 @@ private:
SAL_DLLPRIVATE HelpButton & operator= ( const HelpButton & ); SAL_DLLPRIVATE HelpButton & operator= ( const HelpButton & );
public: public:
HelpButton( Window* pParent, WinBits nStyle = 0 ); explicit HelpButton( Window* pParent, WinBits nStyle = 0 );
HelpButton( Window* pParent, const ResId& rResId ); explicit HelpButton( Window* pParent, const ResId& );
virtual void Click(); virtual void Click();
}; };
...@@ -344,9 +344,9 @@ protected: ...@@ -344,9 +344,9 @@ protected:
void DrawRadioButtonState( ); void DrawRadioButtonState( );
public: public:
RadioButton( Window* pParent, WinBits nWinStyle = 0 ); explicit RadioButton( Window* pParent, WinBits nWinStyle = 0 );
RadioButton( Window* pParent, const ResId& rResId ); explicit RadioButton( Window* pParent, const ResId& );
~RadioButton(); virtual ~RadioButton();
virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void Tracking( const TrackingEvent& rTEvt ); virtual void Tracking( const TrackingEvent& rTEvt );
...@@ -450,8 +450,8 @@ public: ...@@ -450,8 +450,8 @@ public:
SAL_DLLPRIVATE void ImplCheck(); SAL_DLLPRIVATE void ImplCheck();
SAL_DLLPRIVATE void ImplSetMinimumNWFSize(); SAL_DLLPRIVATE void ImplSetMinimumNWFSize();
public: public:
CheckBox( Window* pParent, WinBits nStyle = 0 ); explicit CheckBox( Window* pParent, WinBits nStyle = 0 );
CheckBox( Window* pParent, const ResId& rResId ); explicit CheckBox( Window* pParent, const ResId& );
virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void Tracking( const TrackingEvent& rTEvt ); virtual void Tracking( const TrackingEvent& rTEvt );
...@@ -515,12 +515,12 @@ private: ...@@ -515,12 +515,12 @@ private:
SAL_DLLPRIVATE ImageButton & operator= ( const ImageButton & ); SAL_DLLPRIVATE ImageButton & operator= ( const ImageButton & );
protected: protected:
ImageButton( WindowType nType ); explicit ImageButton( WindowType nType );
public: public:
ImageButton( Window* pParent, WinBits nStyle = 0 ); explicit ImageButton( Window* pParent, WinBits nStyle = 0 );
ImageButton( Window* pParent, const ResId& rResId ); explicit ImageButton( Window* pParent, const ResId& );
~ImageButton(); virtual ~ImageButton();
}; };
class VCL_DLLPUBLIC ImageRadioButton : public RadioButton class VCL_DLLPUBLIC ImageRadioButton : public RadioButton
...@@ -530,9 +530,9 @@ class VCL_DLLPUBLIC ImageRadioButton : public RadioButton ...@@ -530,9 +530,9 @@ class VCL_DLLPUBLIC ImageRadioButton : public RadioButton
SAL_DLLPRIVATE ImageRadioButton & operator= ( const ImageRadioButton & ); SAL_DLLPRIVATE ImageRadioButton & operator= ( const ImageRadioButton & );
public: public:
ImageRadioButton( Window* pParent, WinBits nStyle = 0 ); explicit ImageRadioButton( Window* pParent, WinBits nStyle = 0 );
ImageRadioButton( Window* pParent, const ResId& rResId ); explicit ImageRadioButton( Window* pParent, const ResId& );
~ImageRadioButton(); virtual ~ImageRadioButton();
}; };
class VCL_DLLPUBLIC TriStateBox : public CheckBox class VCL_DLLPUBLIC TriStateBox : public CheckBox
...@@ -542,9 +542,9 @@ class VCL_DLLPUBLIC TriStateBox : public CheckBox ...@@ -542,9 +542,9 @@ class VCL_DLLPUBLIC TriStateBox : public CheckBox
SAL_DLLPRIVATE TriStateBox & operator= ( const TriStateBox & ); SAL_DLLPRIVATE TriStateBox & operator= ( const TriStateBox & );
public: public:
TriStateBox( Window* pParent, WinBits nStyle = 0 ); explicit TriStateBox( Window* pParent, WinBits nStyle = 0 );
TriStateBox( Window* pParent, const ResId& rResId ); explicit TriStateBox( Window* pParent, const ResId& );
~TriStateBox(); virtual ~TriStateBox();
}; };
class VCL_DLLPUBLIC DisclosureButton : public CheckBox class VCL_DLLPUBLIC DisclosureButton : public CheckBox
...@@ -552,10 +552,11 @@ class VCL_DLLPUBLIC DisclosureButton : public CheckBox ...@@ -552,10 +552,11 @@ class VCL_DLLPUBLIC DisclosureButton : public CheckBox
protected: protected:
SAL_DLLPRIVATE virtual void ImplDrawCheckBoxState(); SAL_DLLPRIVATE virtual void ImplDrawCheckBoxState();
public: public:
DisclosureButton( Window* pParent, WinBits nStyle = 0 ); explicit DisclosureButton( Window* pParent, WinBits nStyle = 0 );
DisclosureButton( Window* pParent, const ResId& rResId ); explicit DisclosureButton( Window* pParent, const ResId& );
virtual void KeyInput( const KeyEvent& rKEvt ); virtual void KeyInput( const KeyEvent& rKEvt );
}; };
#endif // _SV_BUTTON_HXX #endif // _SV_BUTTON_HXX
...@@ -77,14 +77,14 @@ protected: ...@@ -77,14 +77,14 @@ protected:
//#endif //#endif
protected: protected:
ComboBox( WindowType nType ); explicit ComboBox( WindowType nType );
sal_Bool IsDropDownBox() const { return mpFloatWin ? sal_True : sal_False; } sal_Bool IsDropDownBox() const { return mpFloatWin ? sal_True : sal_False; }
virtual void FillLayoutData() const; virtual void FillLayoutData() const;
public: public:
ComboBox( Window* pParent, WinBits nStyle = 0 ); explicit ComboBox( Window* pParent, WinBits nStyle = 0 );
ComboBox( Window* pParent, const ResId& rResId ); explicit ComboBox( Window* pParent, const ResId& );
~ComboBox(); virtual ~ComboBox();
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
virtual void Resize(); virtual void Resize();
...@@ -224,3 +224,4 @@ public: ...@@ -224,3 +224,4 @@ public:
}; };
#endif // _COMBOBOX_HXX #endif // _COMBOBOX_HXX
...@@ -130,9 +130,9 @@ public: ...@@ -130,9 +130,9 @@ public:
//#endif //#endif
public: public:
Control( Window* pParent, WinBits nWinStyle = 0 ); explicit Control( Window* pParent, WinBits nWinStyle = 0 );
Control( Window* pParent, const ResId& rResId ); explicit Control( Window* pParent, const ResId& );
~Control(); virtual ~Control();
virtual void GetFocus(); virtual void GetFocus();
virtual void LoseFocus(); virtual void LoseFocus();
......
...@@ -74,8 +74,8 @@ protected: ...@@ -74,8 +74,8 @@ protected:
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
public: public:
Dialog( Window* pParent, WinBits nStyle = WB_STDDIALOG ); explicit Dialog( Window* pParent, WinBits nStyle = WB_STDDIALOG );
Dialog( Window* pParent, const ResId& rResId ); explicit Dialog( Window* pParent, const ResId& );
virtual ~Dialog(); virtual ~Dialog();
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -128,8 +128,8 @@ class VCL_DLLPUBLIC ModelessDialog : public Dialog ...@@ -128,8 +128,8 @@ class VCL_DLLPUBLIC ModelessDialog : public Dialog
//#endif //#endif
public: public:
ModelessDialog( Window* pParent, WinBits nStyle = WB_STDMODELESS ); explicit ModelessDialog( Window* pParent, WinBits nStyle = WB_STDMODELESS );
ModelessDialog( Window* pParent, const ResId& rResId ); explicit ModelessDialog( Window* pParent, const ResId& );
}; };
// --------------- // ---------------
...@@ -139,8 +139,8 @@ public: ...@@ -139,8 +139,8 @@ public:
class VCL_DLLPUBLIC ModalDialog : public Dialog class VCL_DLLPUBLIC ModalDialog : public Dialog
{ {
public: public:
ModalDialog( Window* pParent, WinBits nStyle = WB_STDMODAL ); explicit ModalDialog( Window* pParent, WinBits nStyle = WB_STDMODAL );
ModalDialog( Window* pParent, const ResId& rResId ); explicit ModalDialog( Window* pParent, const ResId& );
private: private:
using Window::Show; using Window::Show;
...@@ -156,3 +156,4 @@ private: ...@@ -156,3 +156,4 @@ private:
}; };
#endif // _SV_DIALOG_HXX #endif // _SV_DIALOG_HXX
...@@ -44,8 +44,8 @@ private: ...@@ -44,8 +44,8 @@ private:
SAL_DLLPRIVATE DockingAreaWindow & operator= (const DockingAreaWindow &); SAL_DLLPRIVATE DockingAreaWindow & operator= (const DockingAreaWindow &);
public: public:
DockingAreaWindow( Window *pParent ); explicit DockingAreaWindow( Window* pParent );
~DockingAreaWindow(); virtual ~DockingAreaWindow();
void SetAlign( WindowAlign eNewAlign ); void SetAlign( WindowAlign eNewAlign );
WindowAlign GetAlign() const; WindowAlign GetAlign() const;
......
...@@ -128,8 +128,8 @@ private: ...@@ -128,8 +128,8 @@ private:
sal_uInt16 mnCode; sal_uInt16 mnCode;
public: public:
MouseEvent(); explicit MouseEvent();
MouseEvent( const Point& rPos, sal_uInt16 nClicks = 1, explicit MouseEvent( const Point& rPos, sal_uInt16 nClicks = 1,
sal_uInt16 nMode = 0, sal_uInt16 nButtons = 0, sal_uInt16 nMode = 0, sal_uInt16 nButtons = 0,
sal_uInt16 nModifier = 0 ); sal_uInt16 nModifier = 0 );
...@@ -207,9 +207,9 @@ private: ...@@ -207,9 +207,9 @@ private:
sal_Bool mbKeyboardActivated; sal_Bool mbKeyboardActivated;
public: public:
HelpEvent(); explicit HelpEvent();
HelpEvent( sal_uInt16 nHelpMode ); explicit HelpEvent( sal_uInt16 nHelpMode );
HelpEvent( const Point& rMousePos, sal_uInt16 nHelpMode ); explicit HelpEvent( const Point& rMousePos, sal_uInt16 nHelpMode );
const Point& GetMousePosPixel() const; const Point& GetMousePosPixel() const;
sal_uInt16 GetMode() const { return mnMode; } sal_uInt16 GetMode() const { return mnMode; }
...@@ -300,8 +300,8 @@ private: ...@@ -300,8 +300,8 @@ private:
sal_uInt16 mnFlags; sal_uInt16 mnFlags;
public: public:
TrackingEvent(); explicit TrackingEvent();
TrackingEvent( const MouseEvent& rMEvt, explicit TrackingEvent( const MouseEvent&,
sal_uInt16 nTrackFlags = 0 ); sal_uInt16 nTrackFlags = 0 );
const MouseEvent& GetMouseEvent() const { return maMEvt; } const MouseEvent& GetMouseEvent() const { return maMEvt; }
...@@ -435,8 +435,8 @@ private: ...@@ -435,8 +435,8 @@ private:
sal_uInt16 mnType; sal_uInt16 mnType;
public: public:
DataChangedEvent(); explicit DataChangedEvent();
DataChangedEvent( sal_uInt16 nType, explicit DataChangedEvent( sal_uInt16 nType,
const void* pData = NULL, const void* pData = NULL,
sal_uLong nFlags = 0 ); sal_uLong nFlags = 0 );
......
...@@ -64,7 +64,7 @@ protected: ...@@ -64,7 +64,7 @@ protected:
sal_Bool IsDefaultLocale() const { return mbDefaultLocale; } sal_Bool IsDefaultLocale() const { return mbDefaultLocale; }
public: public:
FormatterBase( Edit* pField = NULL ); explicit FormatterBase( Edit* pField = NULL );
virtual ~FormatterBase(); virtual ~FormatterBase();
const LocaleDataWrapper& GetLocaleDataWrapper() const; const LocaleDataWrapper& GetLocaleDataWrapper() const;
...@@ -502,9 +502,9 @@ public: ...@@ -502,9 +502,9 @@ public:
class VCL_DLLPUBLIC PatternField : public SpinField, public PatternFormatter class VCL_DLLPUBLIC PatternField : public SpinField, public PatternFormatter
{ {
public: public:
PatternField( Window* pParent, WinBits nWinStyle ); explicit PatternField( Window* pParent, WinBits nWinStyle );
PatternField( Window* pParent, const ResId& rResId ); explicit PatternField( Window* pParent, const ResId& );
~PatternField(); virtual ~PatternField();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -522,9 +522,9 @@ protected: ...@@ -522,9 +522,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
NumericField( Window* pParent, WinBits nWinStyle ); explicit NumericField( Window* pParent, WinBits nWinStyle );
NumericField( Window* pParent, const ResId& rResId ); explicit NumericField( Window* pParent, const ResId& );
~NumericField(); virtual ~NumericField();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -549,9 +549,9 @@ protected: ...@@ -549,9 +549,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
MetricField( Window* pParent, WinBits nWinStyle ); explicit MetricField( Window* pParent, WinBits nWinStyle );
MetricField( Window* pParent, const ResId& rResId ); explicit MetricField( Window* pParent, const ResId& );
~MetricField(); virtual ~MetricField();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -616,9 +616,9 @@ protected: ...@@ -616,9 +616,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
CurrencyField( Window* pParent, WinBits nWinStyle ); explicit CurrencyField( Window* pParent, WinBits nWinStyle );
CurrencyField( Window* pParent, const ResId& rResId ); explicit CurrencyField( Window* pParent, const ResId& );
~CurrencyField(); virtual ~CurrencyField();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -648,9 +648,9 @@ protected: ...@@ -648,9 +648,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
DateField( Window* pParent, WinBits nWinStyle ); explicit DateField( Window* pParent, WinBits nWinStyle );
DateField( Window* pParent, const ResId& rResId ); explicit DateField( Window* pParent, const ResId& );
~DateField(); virtual ~DateField();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -684,9 +684,9 @@ protected: ...@@ -684,9 +684,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
TimeField( Window* pParent, WinBits nWinStyle ); explicit TimeField( Window* pParent, WinBits nWinStyle );
TimeField( Window* pParent, const ResId& rResId ); explicit TimeField( Window* pParent, const ResId& );
~TimeField(); virtual ~TimeField();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -715,9 +715,9 @@ public: ...@@ -715,9 +715,9 @@ public:
class VCL_DLLPUBLIC PatternBox : public ComboBox, public PatternFormatter class VCL_DLLPUBLIC PatternBox : public ComboBox, public PatternFormatter
{ {
public: public:
PatternBox( Window* pParent, WinBits nWinStyle ); explicit PatternBox( Window* pParent, WinBits nWinStyle );
PatternBox( Window* pParent, const ResId& rResId ); explicit PatternBox( Window* pParent, const ResId& );
~PatternBox(); virtual ~PatternBox();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -742,9 +742,9 @@ public: ...@@ -742,9 +742,9 @@ public:
class VCL_DLLPUBLIC NumericBox : public ComboBox, public NumericFormatter class VCL_DLLPUBLIC NumericBox : public ComboBox, public NumericFormatter
{ {
public: public:
NumericBox( Window* pParent, WinBits nWinStyle ); explicit NumericBox( Window* pParent, WinBits nWinStyle );
NumericBox( Window* pParent, const ResId& rResId ); explicit NumericBox( Window* pParent, const ResId& );
~NumericBox(); virtual ~NumericBox();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -769,9 +769,9 @@ public: ...@@ -769,9 +769,9 @@ public:
class VCL_DLLPUBLIC MetricBox : public ComboBox, public MetricFormatter class VCL_DLLPUBLIC MetricBox : public ComboBox, public MetricFormatter
{ {
public: public:
MetricBox( Window* pParent, WinBits nWinStyle ); explicit MetricBox( Window* pParent, WinBits nWinStyle );
MetricBox( Window* pParent, const ResId& rResId ); explicit MetricBox( Window* pParent, const ResId& );
~MetricBox(); virtual ~MetricBox();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -802,9 +802,9 @@ public: ...@@ -802,9 +802,9 @@ public:
class VCL_DLLPUBLIC CurrencyBox : public ComboBox, public CurrencyFormatter class VCL_DLLPUBLIC CurrencyBox : public ComboBox, public CurrencyFormatter
{ {
public: public:
CurrencyBox( Window* pParent, WinBits nWinStyle ); explicit CurrencyBox( Window* pParent, WinBits nWinStyle );
CurrencyBox( Window* pParent, const ResId& rResId ); explicit CurrencyBox( Window* pParent, const ResId& );
~CurrencyBox(); virtual ~CurrencyBox();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -831,9 +831,9 @@ public: ...@@ -831,9 +831,9 @@ public:
class VCL_DLLPUBLIC DateBox : public ComboBox, public DateFormatter class VCL_DLLPUBLIC DateBox : public ComboBox, public DateFormatter
{ {
public: public:
DateBox( Window* pParent, WinBits nWinStyle ); explicit DateBox( Window* pParent, WinBits nWinStyle );
DateBox( Window* pParent, const ResId& rResId ); explicit DateBox( Window* pParent, const ResId& );
~DateBox(); virtual ~DateBox();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
...@@ -858,9 +858,9 @@ public: ...@@ -858,9 +858,9 @@ public:
class VCL_DLLPUBLIC TimeBox : public ComboBox, public TimeFormatter class VCL_DLLPUBLIC TimeBox : public ComboBox, public TimeFormatter
{ {
public: public:
TimeBox( Window* pParent, WinBits nWinStyle ); explicit TimeBox( Window* pParent, WinBits nWinStyle );
TimeBox( Window* pParent, const ResId& rResId ); explicit TimeBox( Window* pParent, const ResId& );
~TimeBox(); virtual ~TimeBox();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
......
...@@ -58,9 +58,9 @@ protected: ...@@ -58,9 +58,9 @@ protected:
GetCanonicalTextColor( const StyleSettings& _rStyle ) const; GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
public: public:
FixedText( Window* pParent, WinBits nStyle = 0 ); explicit FixedText( Window* pParent, WinBits nStyle = 0 );
FixedText( Window* pParent, const ResId& rResId ); explicit FixedText( Window* pParent, const ResId& );
FixedText( Window* pParent, const ResId& rResId, bool bDisableAccessibleLabelForRelation ); explicit FixedText( Window* pParent, const ResId&, bool bDisableAccessibleLabelForRelation );
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
...@@ -95,8 +95,8 @@ protected: ...@@ -95,8 +95,8 @@ protected:
GetCanonicalTextColor( const StyleSettings& _rStyle ) const; GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
public: public:
FixedLine( Window* pParent, WinBits nStyle = WB_HORZ ); explicit FixedLine( Window* pParent, WinBits nStyle = WB_HORZ );
FixedLine( Window* pParent, const ResId& rResId ); explicit FixedLine( Window* pParent, const ResId& );
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
...@@ -129,9 +129,9 @@ protected: ...@@ -129,9 +129,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
FixedBitmap( Window* pParent, WinBits nStyle = 0 ); explicit FixedBitmap( Window* pParent, WinBits nStyle = 0 );
FixedBitmap( Window* pParent, const ResId& rResId ); explicit FixedBitmap( Window* pParent, const ResId& );
~FixedBitmap(); virtual ~FixedBitmap();
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
...@@ -170,9 +170,9 @@ protected: ...@@ -170,9 +170,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
FixedImage( Window* pParent, WinBits nStyle = 0 ); explicit FixedImage( Window* pParent, WinBits nStyle = 0 );
FixedImage( Window* pParent, const ResId& rResId ); explicit FixedImage( Window* pParent, const ResId& );
~FixedImage(); virtual ~FixedImage();
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
...@@ -193,3 +193,4 @@ public: ...@@ -193,3 +193,4 @@ public:
}; };
#endif // _SV_FIXED_HXX #endif // _SV_FIXED_HXX
...@@ -121,9 +121,9 @@ public: ...@@ -121,9 +121,9 @@ public:
//#endif //#endif
public: public:
FloatingWindow( Window* pParent, WinBits nStyle = WB_STDFLOATWIN ); explicit FloatingWindow( Window* pParent, WinBits nStyle = WB_STDFLOATWIN );
FloatingWindow( Window* pParent, const ResId& rResId ); explicit FloatingWindow( Window* pParent, const ResId& );
~FloatingWindow(); virtual ~FloatingWindow();
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
virtual void StateChanged( StateChangedType nType ); virtual void StateChanged( StateChangedType nType );
......
...@@ -290,7 +290,7 @@ class VCL_PLUGIN_PUBLIC PrintFontManager ...@@ -290,7 +290,7 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
std::map< sal_Unicode, sal_Int32 > m_aEncodingVector; std::map< sal_Unicode, sal_Int32 > m_aEncodingVector;
std::map< sal_Unicode, rtl::OString > m_aNonEncoded; std::map< sal_Unicode, rtl::OString > m_aNonEncoded;
PrintFont( fonttype::type eType ); explicit PrintFont( fonttype::type eType );
virtual ~PrintFont(); virtual ~PrintFont();
virtual bool queryMetricPage( int nPage, utl::MultiAtomProvider* pProvider ) = 0; virtual bool queryMetricPage( int nPage, utl::MultiAtomProvider* pProvider ) = 0;
......
...@@ -50,8 +50,8 @@ private: ...@@ -50,8 +50,8 @@ private:
GetCanonicalTextColor( const StyleSettings& _rStyle ) const; GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
public: public:
GroupBox( Window* pParent, WinBits nStyle = 0 ); explicit GroupBox( Window* pParent, WinBits nStyle = 0 );
GroupBox( Window* pParent, const ResId& rResId ); explicit GroupBox( Window* pParent, const ResId& );
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
...@@ -61,3 +61,4 @@ public: ...@@ -61,3 +61,4 @@ public:
}; };
#endif // _SV_GROUP_HXX #endif // _SV_GROUP_HXX
...@@ -79,9 +79,9 @@ protected: ...@@ -79,9 +79,9 @@ protected:
virtual void FillLayoutData() const; virtual void FillLayoutData() const;
public: public:
ListBox( Window* pParent, WinBits nStyle = WB_BORDER ); explicit ListBox( Window* pParent, WinBits nStyle = WB_BORDER );
ListBox( Window* pParent, const ResId& rResId ); explicit ListBox( Window* pParent, const ResId& );
~ListBox(); virtual ~ListBox();
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
virtual void Resize(); virtual void Resize();
...@@ -255,8 +255,9 @@ private: ...@@ -255,8 +255,9 @@ private:
sal_uInt16 GetSavedValue(); sal_uInt16 GetSavedValue();
public: public:
MultiListBox( Window* pParent, WinBits nStyle = 0 ); explicit MultiListBox( Window* pParent, WinBits nStyle = 0 );
MultiListBox( Window* pParent, const ResId& rResId ); explicit MultiListBox( Window* pParent, const ResId& );
}; };
#endif // _SV_LSTBOX_HXX #endif // _SV_LSTBOX_HXX
...@@ -104,7 +104,7 @@ struct ImplMenuDelData ...@@ -104,7 +104,7 @@ struct ImplMenuDelData
ImplMenuDelData* mpNext; ImplMenuDelData* mpNext;
const Menu* mpMenu; const Menu* mpMenu;
ImplMenuDelData( const Menu* pMenu ); explicit ImplMenuDelData( const Menu* );
~ImplMenuDelData(); ~ImplMenuDelData();
bool isDeleted() const { return mpMenu == 0; } bool isDeleted() const { return mpMenu == 0; }
...@@ -201,7 +201,7 @@ public: ...@@ -201,7 +201,7 @@ public:
SAL_DLLPRIVATE Menu* ImplGetStartedFrom() const; SAL_DLLPRIVATE Menu* ImplGetStartedFrom() const;
Menu(); Menu();
Menu( sal_Bool bMenuBar ); explicit Menu( sal_Bool bMenuBar );
SAL_DLLPRIVATE Window* ImplGetWindow() const { return pWindow; } SAL_DLLPRIVATE Window* ImplGetWindow() const { return pWindow; }
...@@ -410,9 +410,9 @@ class VCL_DLLPUBLIC MenuBar : public Menu ...@@ -410,9 +410,9 @@ class VCL_DLLPUBLIC MenuBar : public Menu
public: public:
MenuBar(); MenuBar();
MenuBar( const ResId& rResId ); explicit MenuBar( const ResId& );
MenuBar( const MenuBar& rMenu ); MenuBar( const MenuBar& rMenu );
~MenuBar(); virtual ~MenuBar();
MenuBar& operator =( const MenuBar& rMenu ); MenuBar& operator =( const MenuBar& rMenu );
...@@ -500,8 +500,8 @@ protected: ...@@ -500,8 +500,8 @@ protected:
public: public:
PopupMenu(); PopupMenu();
PopupMenu( const PopupMenu& rMenu ); PopupMenu( const PopupMenu& rMenu );
PopupMenu( const ResId& rResId ); explicit PopupMenu( const ResId& );
~PopupMenu(); virtual ~PopupMenu();
void SetText( const XubString& rTitle ) { aTitleText = rTitle; } void SetText( const XubString& rTitle ) { aTitleText = rTitle; }
const XubString& GetText() const { return aTitleText; } const XubString& GetText() const { return aTitleText; }
......
...@@ -67,9 +67,9 @@ protected: ...@@ -67,9 +67,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
MenuButton( Window* pParent, WinBits nStyle = 0 ); explicit MenuButton( Window* pParent, WinBits nStyle = 0 );
MenuButton( Window* pParent, const ResId& rResId ); explicit MenuButton( Window* pParent, const ResId& );
~MenuButton(); virtual ~MenuButton();
virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void KeyInput( const KeyEvent& rKEvt ); virtual void KeyInput( const KeyEvent& rKEvt );
...@@ -92,3 +92,4 @@ public: ...@@ -92,3 +92,4 @@ public:
}; };
#endif // _SV_MENUBTN_HXX #endif // _SV_MENUBTN_HXX
...@@ -159,7 +159,7 @@ protected: ...@@ -159,7 +159,7 @@ protected:
public: public:
MetaAction(); MetaAction();
MetaAction( sal_uInt16 nType ); explicit MetaAction( sal_uInt16 nType );
virtual void Execute( OutputDevice* pOut ); virtual void Execute( OutputDevice* pOut );
...@@ -221,7 +221,7 @@ private: ...@@ -221,7 +221,7 @@ private:
public: public:
DECL_META_ACTION( Point, META_POINT_ACTION ) DECL_META_ACTION( Point, META_POINT_ACTION )
MetaPointAction( const Point& rPt ); explicit MetaPointAction( const Point& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -272,7 +272,7 @@ private: ...@@ -272,7 +272,7 @@ private:
public: public:
DECL_META_ACTION( Rect, META_RECT_ACTION ) DECL_META_ACTION( Rect, META_RECT_ACTION )
MetaRectAction( const Rectangle& rRect ); explicit MetaRectAction( const Rectangle& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -323,7 +323,7 @@ private: ...@@ -323,7 +323,7 @@ private:
public: public:
DECL_META_ACTION( Ellipse, META_ELLIPSE_ACTION ) DECL_META_ACTION( Ellipse, META_ELLIPSE_ACTION )
MetaEllipseAction( const Rectangle& rRect ); explicit MetaEllipseAction( const Rectangle& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -431,8 +431,8 @@ private: ...@@ -431,8 +431,8 @@ private:
public: public:
DECL_META_ACTION( PolyLine, META_POLYLINE_ACTION ) DECL_META_ACTION( PolyLine, META_POLYLINE_ACTION )
MetaPolyLineAction( const Polygon& rPoly ); explicit MetaPolyLineAction( const Polygon& );
MetaPolyLineAction( const Polygon& rPoly, const LineInfo& rLineInfo ); explicit MetaPolyLineAction( const Polygon&, const LineInfo& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -456,7 +456,7 @@ private: ...@@ -456,7 +456,7 @@ private:
public: public:
DECL_META_ACTION( Polygon, META_POLYGON_ACTION ) DECL_META_ACTION( Polygon, META_POLYGON_ACTION )
MetaPolygonAction( const Polygon& rPoly ); explicit MetaPolygonAction( const Polygon& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -479,7 +479,7 @@ private: ...@@ -479,7 +479,7 @@ private:
public: public:
DECL_META_ACTION( PolyPolygon, META_POLYPOLYGON_ACTION ) DECL_META_ACTION( PolyPolygon, META_POLYPOLYGON_ACTION )
MetaPolyPolygonAction( const PolyPolygon& rPolyPoly ); explicit MetaPolyPolygonAction( const PolyPolygon& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -1065,7 +1065,7 @@ private: ...@@ -1065,7 +1065,7 @@ private:
public: public:
DECL_META_ACTION( ISectRectClipRegion, META_ISECTRECTCLIPREGION_ACTION ) DECL_META_ACTION( ISectRectClipRegion, META_ISECTRECTCLIPREGION_ACTION )
MetaISectRectClipRegionAction( const Rectangle& rRect ); explicit MetaISectRectClipRegionAction( const Rectangle& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -1088,7 +1088,7 @@ private: ...@@ -1088,7 +1088,7 @@ private:
public: public:
DECL_META_ACTION( ISectRegionClipRegion, META_ISECTREGIONCLIPREGION_ACTION ) DECL_META_ACTION( ISectRegionClipRegion, META_ISECTREGIONCLIPREGION_ACTION )
MetaISectRegionClipRegionAction( const Region& rRegion ); explicit MetaISectRegionClipRegionAction( const Region& );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -1179,7 +1179,7 @@ private: ...@@ -1179,7 +1179,7 @@ private:
public: public:
DECL_META_ACTION( TextColor, META_TEXTCOLOR_ACTION ) DECL_META_ACTION( TextColor, META_TEXTCOLOR_ACTION )
MetaTextColorAction( const Color& rColor ); explicit MetaTextColorAction( const Color& );
const Color& GetColor() const { return maColor; } const Color& GetColor() const { return maColor; }
}; };
...@@ -1265,7 +1265,7 @@ private: ...@@ -1265,7 +1265,7 @@ private:
public: public:
DECL_META_ACTION( TextAlign, META_TEXTALIGN_ACTION ) DECL_META_ACTION( TextAlign, META_TEXTALIGN_ACTION )
MetaTextAlignAction( TextAlign aAlign ); explicit MetaTextAlignAction( TextAlign eAlign );
TextAlign GetTextAlign() const { return maAlign; } TextAlign GetTextAlign() const { return maAlign; }
}; };
...@@ -1285,7 +1285,7 @@ private: ...@@ -1285,7 +1285,7 @@ private:
public: public:
DECL_META_ACTION( MapMode, META_MAPMODE_ACTION ) DECL_META_ACTION( MapMode, META_MAPMODE_ACTION )
MetaMapModeAction( const MapMode& rMapMode ); explicit MetaMapModeAction( const MapMode& );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -1307,7 +1307,7 @@ private: ...@@ -1307,7 +1307,7 @@ private:
public: public:
DECL_META_ACTION( Font, META_FONT_ACTION ) DECL_META_ACTION( Font, META_FONT_ACTION )
MetaFontAction( const Font& rFont ); explicit MetaFontAction( const Font& );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -1329,7 +1329,7 @@ private: ...@@ -1329,7 +1329,7 @@ private:
public: public:
DECL_META_ACTION( Push, META_PUSH_ACTION ) DECL_META_ACTION( Push, META_PUSH_ACTION )
MetaPushAction( sal_uInt16 nFlags ); explicit MetaPushAction( sal_uInt16 nFlags );
sal_uInt16 GetFlags() const { return mnFlags; } sal_uInt16 GetFlags() const { return mnFlags; }
}; };
...@@ -1360,7 +1360,7 @@ private: ...@@ -1360,7 +1360,7 @@ private:
public: public:
DECL_META_ACTION( RasterOp, META_RASTEROP_ACTION ) DECL_META_ACTION( RasterOp, META_RASTEROP_ACTION )
MetaRasterOpAction( RasterOp eRasterOp ); explicit MetaRasterOpAction( RasterOp eRasterOp );
RasterOp GetRasterOp() const { return meRasterOp; } RasterOp GetRasterOp() const { return meRasterOp; }
}; };
...@@ -1489,13 +1489,13 @@ private: ...@@ -1489,13 +1489,13 @@ private:
virtual sal_Bool Compare( const MetaAction& ) const; virtual sal_Bool Compare( const MetaAction& ) const;
protected: protected:
~MetaCommentAction(); virtual ~MetaCommentAction();
public: public:
MetaCommentAction( sal_Int32 nValue = 0L ); explicit MetaCommentAction( sal_Int32 nValue = 0L );
MetaCommentAction( const MetaCommentAction& rAct ); explicit MetaCommentAction( const MetaCommentAction& );
MetaCommentAction( const ByteString& rComment, sal_Int32 nValue = 0L, const sal_uInt8* pData = NULL, sal_uInt32 nDataSize = 0UL ); explicit MetaCommentAction( const ByteString& rComment, sal_Int32 nValue = 0L, const sal_uInt8* pData = NULL, sal_uInt32 nDataSize = 0UL );
MetaCommentAction( const sal_uInt8* pData, sal_uInt32 nDataSize ); explicit MetaCommentAction( const sal_uInt8* pData, sal_uInt32 nDataSize );
virtual void Move( long nHorzMove, long nVertMove ); virtual void Move( long nHorzMove, long nVertMove );
virtual void Scale( double fScaleX, double fScaleY ); virtual void Scale( double fScaleX, double fScaleY );
...@@ -1525,7 +1525,7 @@ private: ...@@ -1525,7 +1525,7 @@ private:
public: public:
DECL_META_ACTION( LayoutMode, META_LAYOUTMODE_ACTION ) DECL_META_ACTION( LayoutMode, META_LAYOUTMODE_ACTION )
MetaLayoutModeAction( sal_uInt32 nLayoutMode ); explicit MetaLayoutModeAction( sal_uInt32 nLayoutMode );
sal_uInt32 GetLayoutMode() const { return mnLayoutMode; } sal_uInt32 GetLayoutMode() const { return mnLayoutMode; }
}; };
...@@ -1544,9 +1544,10 @@ private: ...@@ -1544,9 +1544,10 @@ private:
public: public:
DECL_META_ACTION( TextLanguage, META_TEXTLANGUAGE_ACTION ) DECL_META_ACTION( TextLanguage, META_TEXTLANGUAGE_ACTION )
MetaTextLanguageAction( LanguageType ); explicit MetaTextLanguageAction( LanguageType );
LanguageType GetTextLanguage() const { return meTextLanguage; } LanguageType GetTextLanguage() const { return meTextLanguage; }
}; };
#endif // _SV_METAACT_HXX #endif // _SV_METAACT_HXX
...@@ -54,9 +54,9 @@ protected: ...@@ -54,9 +54,9 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public: public:
MoreButton( Window* pParent, WinBits nStyle = 0 ); explicit MoreButton( Window* pParent, WinBits nStyle = 0 );
MoreButton( Window* pParent, const ResId& rResId ); explicit MoreButton( Window* pParent, const ResId& );
~MoreButton(); virtual ~MoreButton();
void Click(); void Click();
...@@ -89,3 +89,4 @@ inline void MoreButton::SetState( sal_Bool bNewState ) ...@@ -89,3 +89,4 @@ inline void MoreButton::SetState( sal_Bool bNewState )
} }
#endif // _SV_MOREBTN_HXX #endif // _SV_MOREBTN_HXX
...@@ -44,7 +44,7 @@ namespace vcl ...@@ -44,7 +44,7 @@ namespace vcl
/* the PNG chunks are read within the c'tor, so the stream will /* the PNG chunks are read within the c'tor, so the stream will
be positioned at the end of the PNG */ be positioned at the end of the PNG */
PNGReader( SvStream& rStm ); explicit PNGReader( SvStream& rStm );
~PNGReader(); ~PNGReader();
/* an empty preview size hint (=default) will read the whole image /* an empty preview size hint (=default) will read the whole image
......
...@@ -93,9 +93,9 @@ private: ...@@ -93,9 +93,9 @@ private:
DECL_DLLPRIVATE_LINK( ImplAutoTimerHdl, AutoTimer* ); DECL_DLLPRIVATE_LINK( ImplAutoTimerHdl, AutoTimer* );
public: public:
ScrollBar( Window* pParent, WinBits nStyle = WB_VERT ); explicit ScrollBar( Window* pParent, WinBits nStyle = WB_VERT );
ScrollBar( Window* pParent, const ResId& rResId ); explicit ScrollBar( Window* pParent, const ResId& );
~ScrollBar(); virtual ~ScrollBar();
virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void Tracking( const TrackingEvent& rTEvt ); virtual void Tracking( const TrackingEvent& rTEvt );
...@@ -156,11 +156,12 @@ private: ...@@ -156,11 +156,12 @@ private:
SAL_DLLPRIVATE void ImplInitSettings(); SAL_DLLPRIVATE void ImplInitSettings();
public: public:
ScrollBarBox( Window* pParent, WinBits nStyle = 0 ); explicit ScrollBarBox( Window* pParent, WinBits nStyle = 0 );
ScrollBarBox( Window* pParent, const ResId& rResId ); explicit ScrollBarBox( Window* pParent, const ResId& );
virtual void StateChanged( StateChangedType nType ); virtual void StateChanged( StateChangedType nType );
virtual void DataChanged( const DataChangedEvent& rDCEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt );
}; };
#endif // _SV_SCRBAR_HXX #endif // _SV_SCRBAR_HXX
...@@ -60,9 +60,9 @@ private: ...@@ -60,9 +60,9 @@ private:
DECL_DLLPRIVATE_LINK( ImplTimeout, Timer* ); DECL_DLLPRIVATE_LINK( ImplTimeout, Timer* );
public: public:
SpinButton( Window* pParent, WinBits nStyle = 0 ); explicit SpinButton( Window* pParent, WinBits nStyle = 0 );
SpinButton( Window* pParent, const ResId& rResId ); explicit SpinButton( Window* pParent, const ResId& );
~SpinButton(); virtual ~SpinButton();
virtual void Up(); virtual void Up();
virtual void Down(); virtual void Down();
...@@ -111,3 +111,4 @@ private: ...@@ -111,3 +111,4 @@ private:
}; };
#endif // _SV_SPIN_HXX #endif // _SV_SPIN_HXX
...@@ -63,7 +63,7 @@ private: ...@@ -63,7 +63,7 @@ private:
SAL_DLLPRIVATE void ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rectangle& rDDArea, Rectangle& rSpinUpArea, Rectangle& rSpinDownArea ); SAL_DLLPRIVATE void ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rectangle& rDDArea, Rectangle& rSpinUpArea, Rectangle& rSpinDownArea );
protected: protected:
SpinField( WindowType nTyp ); explicit SpinField( WindowType nTyp );
virtual long Notify( NotifyEvent& rNEvt ); virtual long Notify( NotifyEvent& rNEvt );
virtual void Command( const CommandEvent& rCEvt ); virtual void Command( const CommandEvent& rCEvt );
...@@ -73,9 +73,9 @@ protected: ...@@ -73,9 +73,9 @@ protected:
virtual void FillLayoutData() const; virtual void FillLayoutData() const;
Rectangle * ImplFindPartRect( const Point& rPt ); Rectangle * ImplFindPartRect( const Point& rPt );
public: public:
SpinField( Window* pParent, WinBits nWinStyle = 0 ); explicit SpinField( Window* pParent, WinBits nWinStyle = 0 );
SpinField( Window* pParent, const ResId& rResId ); explicit SpinField( Window* pParent, const ResId& );
~SpinField(); virtual ~SpinField();
virtual sal_Bool ShowDropDown( sal_Bool bShow ); virtual sal_Bool ShowDropDown( sal_Bool bShow );
...@@ -109,3 +109,4 @@ public: ...@@ -109,3 +109,4 @@ public:
}; };
#endif // _SV_SPINFLD_HXX #endif // _SV_SPINFLD_HXX
...@@ -70,9 +70,9 @@ protected: ...@@ -70,9 +70,9 @@ protected:
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nWinStyle ); SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nWinStyle );
public: public:
Splitter( Window* pParent, WinBits nStyle = WB_VSCROLL ); explicit Splitter( Window* pParent, WinBits nStyle = WB_VSCROLL );
Splitter( Window* pParent, const ResId& rResId ); explicit Splitter( Window* pParent, const ResId& );
~Splitter(); virtual ~Splitter();
virtual void StartSplit(); virtual void StartSplit();
virtual void EndSplit(); virtual void EndSplit();
...@@ -120,3 +120,4 @@ public: ...@@ -120,3 +120,4 @@ public:
}; };
#endif // _SV_SPLIT_HXX #endif // _SV_SPLIT_HXX
...@@ -47,11 +47,11 @@ private: ...@@ -47,11 +47,11 @@ private:
SAL_DLLPRIVATE SystemChildWindow & operator= (const SystemChildWindow &); SAL_DLLPRIVATE SystemChildWindow & operator= (const SystemChildWindow &);
public: public:
SystemChildWindow( Window* pParent, WinBits nStyle = 0 ); explicit SystemChildWindow( Window* pParent, WinBits nStyle = 0 );
// create a SystemChildWindow using the given SystemWindowData // create a SystemChildWindow using the given SystemWindowData
SystemChildWindow( Window* pParent, WinBits nStyle, SystemWindowData *pData, sal_Bool bShow = sal_True ); explicit SystemChildWindow( Window* pParent, WinBits nStyle, SystemWindowData* pData, sal_Bool bShow = sal_True );
SystemChildWindow( Window* pParent, const ResId& rResId ); explicit SystemChildWindow( Window* pParent, const ResId& );
~SystemChildWindow(); virtual ~SystemChildWindow();
const SystemEnvData* GetSystemData() const; const SystemEnvData* GetSystemData() const;
......
...@@ -40,8 +40,8 @@ private: ...@@ -40,8 +40,8 @@ private:
SAL_DLLPRIVATE void ImplInitSettings(); SAL_DLLPRIVATE void ImplInitSettings();
public: public:
TabPage( Window* pParent, WinBits nStyle = 0 ); explicit TabPage( Window* pParent, WinBits nStyle = 0 );
TabPage( Window* pParent, const ResId& rResId ); explicit TabPage( Window* pParent, const ResId& );
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
...@@ -56,3 +56,4 @@ public: ...@@ -56,3 +56,4 @@ public:
}; };
#endif // _SV_TABPAGE_HXX #endif // _SV_TABPAGE_HXX
...@@ -68,8 +68,8 @@ private: ...@@ -68,8 +68,8 @@ private:
SAL_DLLPRIVATE bool ForceZeroExtleadBug() const SAL_DLLPRIVATE bool ForceZeroExtleadBug() const
{ return ((meRefDevMode & REFDEV_FORCE_ZERO_EXTLEAD) != 0); } { return ((meRefDevMode & REFDEV_FORCE_ZERO_EXTLEAD) != 0); }
public: public:
VirtualDevice( sal_uInt16 nBitCount = 0 ); explicit VirtualDevice( sal_uInt16 nBitCount = 0 );
VirtualDevice( const OutputDevice& rCompDev, explicit VirtualDevice( const OutputDevice& rCompDev,
sal_uInt16 nBitCount = 0 ); sal_uInt16 nBitCount = 0 );
/** Create a virtual device with alpha channel /** Create a virtual device with alpha channel
...@@ -94,7 +94,7 @@ public: ...@@ -94,7 +94,7 @@ public:
Any rendering will happen directly on the context and not on any intermediate bitmap. Any rendering will happen directly on the context and not on any intermediate bitmap.
Note: This might not be suported on all platforms ! Note: This might not be suported on all platforms !
*/ */
VirtualDevice( const SystemGraphicsData *pData, sal_uInt16 nBitCount ); explicit VirtualDevice( const SystemGraphicsData *pData, sal_uInt16 nBitCount );
virtual ~VirtualDevice(); virtual ~VirtualDevice();
...@@ -123,3 +123,4 @@ private: ...@@ -123,3 +123,4 @@ private:
}; };
#endif // _SV_VIRDEV_HXX #endif // _SV_VIRDEV_HXX
...@@ -67,11 +67,11 @@ protected: ...@@ -67,11 +67,11 @@ protected:
SAL_DLLPRIVATE void ImplSetFrameState( sal_uLong aFrameState ); SAL_DLLPRIVATE void ImplSetFrameState( sal_uLong aFrameState );
public: public:
WorkWindow( Window* pParent, const ResId& rResId ); explicit WorkWindow( Window* pParent, const ResId& );
WorkWindow( Window* pParent, WinBits nStyle = WB_STDWORK ); explicit WorkWindow( Window* pParent, WinBits nStyle = WB_STDWORK );
WorkWindow( Window* pParent, const ::com::sun::star::uno::Any& aSystemWorkWindowToken, WinBits nStyle = WB_STDWORK ); explicit WorkWindow( Window* pParent, const ::com::sun::star::uno::Any& aSystemWorkWindowToken, WinBits nStyle = WB_STDWORK );
WorkWindow( SystemParentData* pParent ); // Not in the REMOTE-Version explicit WorkWindow( SystemParentData* pParent ); // Not in the REMOTE-Version
~WorkWindow(); virtual ~WorkWindow();
virtual sal_Bool Close(); virtual sal_Bool Close();
...@@ -102,3 +102,4 @@ public: ...@@ -102,3 +102,4 @@ public:
}; };
#endif // _SV_WRKWIN_HXX #endif // _SV_WRKWIN_HXX
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment