diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-16 09:12:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-16 12:45:56 +0100 |
commit | 52bce8fadde39e32c0008babadc2c22cc501f753 (patch) | |
tree | c238b858401b18edaa27d62cd909a276ee76db73 /sfx2/source/inc | |
parent | 84e5cdce3ed58c663109bb557b75cd6e45bb2dbc (diff) |
convert versions of dialog to .ui
Change-Id: I1be2211b5c936e6e00f2fe81883b8fb1e67ef550
Diffstat (limited to 'sfx2/source/inc')
-rw-r--r-- | sfx2/source/inc/versdlg.hxx | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/sfx2/source/inc/versdlg.hxx b/sfx2/source/inc/versdlg.hxx index 1853a3d864ed..bdb30c2c0170 100644 --- a/sfx2/source/inc/versdlg.hxx +++ b/sfx2/source/inc/versdlg.hxx @@ -20,56 +20,52 @@ #ifndef _VERSDLG_HXX #define _VERSDLG_HXX +#include <sfx2/basedlgs.hxx> +#include <svtools/simptabl.hxx> +#include <svtools/svmedit.hxx> +#include <svtools/svtabbx.hxx> #include <vcl/button.hxx> #include <vcl/fixed.hxx> -#include <svtools/svtabbx.hxx> -#include <svtools/svmedit.hxx> -#include <sfx2/basedlgs.hxx> class SfxViewFrame; struct SfxVersionInfo; -class SfxVersionsTabListBox_Impl : public SvTabListBox +class SfxVersionsTabListBox_Impl : public SvSimpleTable { - virtual void KeyInput( const KeyEvent& rKeyEvent ); - public: - SfxVersionsTabListBox_Impl( - Window* pParent, const ResId& ); + SfxVersionsTabListBox_Impl(SvSimpleTableContainer& rParent, WinBits nBits) + : SvSimpleTable(rParent, nBits) + { + } + void setColSizes(); + virtual void Resize(); + virtual void KeyInput(const KeyEvent& rKeyEvent); }; class SfxVersionTableDtor; class SfxVersionDialog : public SfxModalDialog { - FixedLine aNewGroup; - PushButton aSaveButton; - CheckBox aSaveCheckBox; - FixedLine aExistingGroup; - FixedText aDateTimeText; - FixedText aSavedByText; - FixedText aCommentText; - SfxVersionsTabListBox_Impl aVersionBox; - CancelButton aCloseButton; - PushButton aOpenButton; - PushButton aViewButton; - PushButton aDeleteButton; - PushButton aCompareButton; - HelpButton aHelpButton; + PushButton* m_pSaveButton; + CheckBox* m_pSaveCheckBox; + SfxVersionsTabListBox_Impl* m_pVersionBox; + PushButton* m_pOpenButton; + PushButton* m_pViewButton; + PushButton* m_pDeleteButton; + PushButton* m_pCompareButton; SfxViewFrame* pViewFrame; - SfxVersionTableDtor* mpTable; - sal_Bool mbIsSaveVersionOnClose; + SfxVersionTableDtor* m_pTable; + bool m_bIsSaveVersionOnClose; DECL_LINK(DClickHdl_Impl, void *); DECL_LINK(SelectHdl_Impl, void *); DECL_LINK( ButtonHdl_Impl, Button* ); void Init_Impl(); void Open_Impl(); - void RecalcDateColumn(); public: SfxVersionDialog ( SfxViewFrame* pFrame, sal_Bool ); virtual ~SfxVersionDialog (); - sal_Bool IsSaveVersionOnClose() const { return mbIsSaveVersionOnClose; } + bool IsSaveVersionOnClose() const { return m_bIsSaveVersionOnClose; } }; class SfxViewVersionDialog_Impl : public SfxModalDialog |