diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-22 19:58:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-23 11:16:00 +0000 |
commit | 39366b11bfed35408f16057fdb27b5b3ee6c2eaa (patch) | |
tree | f121c263852924f7b644081c6dc3316800ca76db /cui/source/inc | |
parent | 89b0017b22889af6a8afe28b94c06e7095dc8c6f (diff) |
convert macro assign page to .ui
as seen in calc->right click on tab->sheet events
Change-Id: I4df1e1c7f79f4f6431905bfc286a0f9d214ccf6c
Diffstat (limited to 'cui/source/inc')
-rw-r--r-- | cui/source/inc/headertablistbox.hxx | 4 | ||||
-rw-r--r-- | cui/source/inc/macropg.hxx | 26 |
2 files changed, 8 insertions, 22 deletions
diff --git a/cui/source/inc/headertablistbox.hxx b/cui/source/inc/headertablistbox.hxx index 0e0147507c56..fd8ff3ed68b4 100644 --- a/cui/source/inc/headertablistbox.hxx +++ b/cui/source/inc/headertablistbox.hxx @@ -34,8 +34,10 @@ protected: virtual bool Notify( NotifyEvent& rNEvt ); public: MacroEventListBox( Window* pParent, const ResId& rId ); + MacroEventListBox( Window* pParent, WinBits nStyle ); - void Resize(); + virtual void Resize(); + virtual Size GetOptimalSize() const; SvHeaderTabListBox& GetListBox() { diff --git a/cui/source/inc/macropg.hxx b/cui/source/inc/macropg.hxx index 5b11d02bf508..3f4be4dacebf 100644 --- a/cui/source/inc/macropg.hxx +++ b/cui/source/inc/macropg.hxx @@ -72,7 +72,8 @@ protected: bool bReadOnly, bDocModified, bAppEvents, bInitialized; EventDisplayNames aDisplayNames; - _SvxMacroTabPage( Window* pParent, const ResId& rId, const SfxItemSet& rItemSet ); + _SvxMacroTabPage( Window* pParent, const ResId& rId, const SfxItemSet& rItemSet ); + _SvxMacroTabPage( Window* pParent, const OString& rID, const OUString& rUIXMLDescription, const SfxItemSet& rItemSet ); void EnableButtons(); ::com::sun::star::uno::Any GetPropsByName( const OUString& eventName, EventsHash& eventsHash ); @@ -86,8 +87,7 @@ public: void InitAndSetHandler( ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > xAppEvents, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > xDocEvents, ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifiable > xModifiable ); virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - using SfxTabPage::Reset; - virtual void Reset(); + virtual void Reset( const SfxItemSet& ); void DisplayAppEvents( bool appEvents); void SetReadOnly( sal_Bool bSet ); @@ -104,33 +104,18 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > xNameReplace, sal_uInt16 nSelectedIndex ); - virtual ~SvxMacroTabPage(); }; // class SvxMacroAssignDlg -------------------------------------------------- typedef sal_uInt16* (*GetTabPageRanges)(); // gives international Which-values -class SvxMacroAssignSingleTabDialog : public SfxModalDialog +class SvxMacroAssignSingleTabDialog : public SfxSingleTabDialog { public: - SvxMacroAssignSingleTabDialog( Window* pParent, const SfxItemSet& rOptionsSet, sal_uInt16 nUniqueId ); - - virtual ~SvxMacroAssignSingleTabDialog(); - - void SetTabPage( SfxTabPage* pTabPage ); + SvxMacroAssignSingleTabDialog(Window* pParent, const SfxItemSet& rOptionsSet); private: - FixedLine* pFixedLine; - - OKButton* pOKBtn; - CancelButton* pCancelBtn; - HelpButton* pHelpBtn; - - SfxTabPage* pPage; - const SfxItemSet* pOptions; - SfxItemSet* pOutSet; - DECL_DLLPRIVATE_LINK( OKHdl_Impl, Button * ); }; @@ -145,7 +130,6 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >& xNameReplace, sal_uInt16 nSelectedIndex ); - virtual ~SvxMacroAssignDlg(); }; #endif |