diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-09-28 22:33:50 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-09-28 22:57:00 +0000 |
commit | 8730974f3da0ce385cac84b81b8ae3169001399c (patch) | |
tree | 18aa51ff350fdd28b84c024c4b13396c465236fc /include/vcl/btndlg.hxx | |
parent | 1a57c512c051cb8b1809f00e569a402ff6be5878 (diff) |
vcl: cleanup headers - remove comments, tabify
Change-Id: I718832960abe07450bc9fdda15297cb5e56f84e4
Reviewed-on: https://gerrit.libreoffice.org/11674
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'include/vcl/btndlg.hxx')
-rw-r--r-- | include/vcl/btndlg.hxx | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/include/vcl/btndlg.hxx b/include/vcl/btndlg.hxx index 958b0f394be9..81df3d1e9090 100644 --- a/include/vcl/btndlg.hxx +++ b/include/vcl/btndlg.hxx @@ -37,32 +37,9 @@ class PushButton; class VCL_DLLPUBLIC ButtonDialog : public Dialog { -private: - boost::ptr_vector<ImplBtnDlgItem> maItemList; - Size maPageSize; - Size maCtrlSize; - long mnButtonSize; - sal_uInt16 mnCurButtonId; - sal_uInt16 mnFocusButtonId; - bool mbFormat; - Link maClickHdl; - - SAL_DLLPRIVATE void ImplInitButtonDialogData(); - SAL_DLLPRIVATE PushButton* ImplCreatePushButton( sal_uInt16 nBtnFlags ); - SAL_DLLPRIVATE ImplBtnDlgItem* ImplGetItem( sal_uInt16 nId ) const; - DECL_DLLPRIVATE_LINK( ImplClickHdl, PushButton* pBtn ); - SAL_DLLPRIVATE void ImplPosControls(); - - // Copy assignment is forbidden and not implemented. - SAL_DLLPRIVATE ButtonDialog( const ButtonDialog & ); - SAL_DLLPRIVATE ButtonDialog& operator=( const ButtonDialog& ); -protected: - ButtonDialog( WindowType nType ); - SAL_DLLPRIVATE long ImplGetButtonSize(); - public: ButtonDialog( vcl::Window* pParent, WinBits nStyle = WB_STDDIALOG ); - virtual ~ButtonDialog(); + virtual ~ButtonDialog(); virtual void Resize() SAL_OVERRIDE; virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; @@ -72,11 +49,12 @@ public: void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; } const Size& GetPageSizePixel() const { return maPageSize; } - sal_uInt16 GetCurButtonId() const { return mnCurButtonId; } + sal_uInt16 GetCurButtonId() const { return mnCurButtonId; } void AddButton( const OUString& rText, sal_uInt16 nId, sal_uInt16 nBtnFlags, long nSepPixel = 0 ); void AddButton( StandardButtonType eType, sal_uInt16 nId, sal_uInt16 nBtnFlags, long nSepPixel = 0 ); void RemoveButton( sal_uInt16 nId ); + void Clear(); sal_uInt16 GetButtonId( sal_uInt16 nButton ) const; PushButton* GetPushButton( sal_uInt16 nId ) const; @@ -84,10 +62,36 @@ public: void SetButtonHelpText( sal_uInt16 nId, const OUString& rText ); void SetFocusButton( sal_uInt16 nId = BUTTONDIALOG_BUTTON_NOTFOUND ) { mnFocusButtonId = nId; } - sal_uInt16 GetFocusButton() const { return mnFocusButtonId; } + sal_uInt16 GetFocusButton() const { return mnFocusButtonId; } void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; } const Link& GetClickHdl() const { return maClickHdl; } + +protected: + ButtonDialog( WindowType nType ); + SAL_DLLPRIVATE long ImplGetButtonSize(); + +private: + // Copy assignment is forbidden and not implemented. + SAL_DLLPRIVATE ButtonDialog( const ButtonDialog & ); + SAL_DLLPRIVATE ButtonDialog& operator=( const ButtonDialog& ); + +private: + boost::ptr_vector<ImplBtnDlgItem> maItemList; + Size maPageSize; + Size maCtrlSize; + long mnButtonSize; + sal_uInt16 mnCurButtonId; + sal_uInt16 mnFocusButtonId; + bool mbFormat; + Link maClickHdl; + + SAL_DLLPRIVATE void ImplInitButtonDialogData(); + SAL_DLLPRIVATE PushButton* ImplCreatePushButton( sal_uInt16 nBtnFlags ); + SAL_DLLPRIVATE ImplBtnDlgItem* ImplGetItem( sal_uInt16 nId ) const; + DECL_DLLPRIVATE_LINK( ImplClickHdl, PushButton* pBtn ); + SAL_DLLPRIVATE void ImplPosControls(); + }; #endif // INCLUDED_VCL_BTNDLG_HXX |