diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-07 14:31:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-07 16:17:52 +0000 |
commit | 6b3686e54520b5cf02d6ce03aa421c755a33b140 (patch) | |
tree | 3710b998585ea32da78693408ebadcb22e48374f /sfx2/inc/sfx2/tabdlg.hxx | |
parent | 0cdf12e0ee217916e25593184d38306a05388fbb (diff) |
allow associating tab page names and tab page creation ids
so we can refer to the .ui name of the tab dialog and pass
in the page creation id to associate with that
Change-Id: If3df6d3de9dc7da482a45d7d91b610b81981d5ed
Diffstat (limited to 'sfx2/inc/sfx2/tabdlg.hxx')
-rw-r--r-- | sfx2/inc/sfx2/tabdlg.hxx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/sfx2/inc/sfx2/tabdlg.hxx b/sfx2/inc/sfx2/tabdlg.hxx index a7068d85b306..69c7d892c722 100644 --- a/sfx2/inc/sfx2/tabdlg.hxx +++ b/sfx2/inc/sfx2/tabdlg.hxx @@ -130,22 +130,30 @@ protected: void SavePosAndId(); public: + SfxTabDialog( Window* pParent, + const OString& rID, const OUString& rUIXMLDescription, + const SfxItemSet * = 0, sal_Bool bEditFmt = sal_False ); + SfxTabDialog( SfxViewFrame *pViewFrame, Window* pParent, + const OString& rID, const OUString& rUIXMLDescription, + const SfxItemSet * = 0, sal_Bool bEditFmt = sal_False ); + + SfxTabDialog( Window* pParent, const ResId &rResId, const SfxItemSet * = 0, sal_Bool bEditFmt = sal_False, const String *pUserButtonText = 0 ); SfxTabDialog( SfxViewFrame *pViewFrame, Window* pParent, const ResId &rResId, const SfxItemSet * = 0, sal_Bool bEditFmt = sal_False, const String *pUserButtonText = 0 ); - SfxTabDialog( SfxViewFrame *pViewFrame, Window* pParent, - const rtl::OString& rID, const rtl::OUString& rUIXMLDescription, - const SfxItemSet * = 0, sal_Bool bEditFmt = sal_False, - const String *pUserButtonText = 0 ); ~SfxTabDialog(); - void AddTabPage( sal_uInt16 nId, + sal_uInt16 AddTabPage( const OString& rName, // Name of the label for the page in the notebook .ui CreateTabPage pCreateFunc, // != 0 GetTabPageRanges pRangesFunc, // can be 0 sal_Bool bItemsOnDemand = sal_False); - sal_uInt16 AddTabPage( const OString& rName, + + sal_uInt16 AddTabPage ( const OString &rName, // Name of the label for the page in the notebook .ui + sal_uInt16 nPageCreateId ); // Identifier of the Factory Method to create the page + + void AddTabPage( sal_uInt16 nId, CreateTabPage pCreateFunc, // != 0 GetTabPageRanges pRangesFunc, // can be 0 sal_Bool bItemsOnDemand = sal_False); |