From 713735fc89b9e0222d8b62d051153da6932b3ebd Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 10 Jul 2014 14:10:16 +0200 Subject: RID_SVX_XFORMS_TABPAGES conversion to .ui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0f3647e95b2150eb8753aa333eeb492fee76bd2a Reviewed-on: https://gerrit.libreoffice.org/10192 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/inc/datanavi.hxx | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'svx/source/inc/datanavi.hxx') diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx index 498c6f5d2629..43788ca19d9d 100644 --- a/svx/source/inc/datanavi.hxx +++ b/svx/source/inc/datanavi.hxx @@ -117,12 +117,17 @@ namespace svxform private: XFormsPage* m_pXFormsPage; DataGroupType m_eGroup; + sal_uInt16 m_nAddId; + sal_uInt16 m_nAddElementId; + sal_uInt16 m_nAddAttributeId; + sal_uInt16 m_nEditId; + sal_uInt16 m_nRemoveId; protected: using SvTreeListBox::ExecuteDrop; public: - DataTreeListBox( XFormsPage* pPage, DataGroupType _eGroup, const ResId& rResId ); + DataTreeListBox( Window* pParent, WinBits nBits ); virtual ~DataTreeListBox(); virtual PopupMenu* CreateContextMenu( void ) SAL_OVERRIDE; @@ -131,6 +136,13 @@ namespace svxform virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) SAL_OVERRIDE; virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) SAL_OVERRIDE; + void SetGroup(DataGroupType _eGroup); + void SetXFormsPage(XFormsPage* _pPage); + void SetToolBoxItemIds(sal_uInt16 _nAddId, + sal_uInt16 _nAddElementId, + sal_uInt16 _nAddAttributeId, + sal_uInt16 _nEditId, + sal_uInt16 _nRemoveId); void DeleteAndClear(); void RemoveEntry( SvTreeListEntry* _pEntry ); }; @@ -237,8 +249,13 @@ namespace svxform MethodString m_aMethodString; ReplaceString m_aReplaceString; - ToolBox m_aToolBox; - DataTreeListBox m_aItemList; + ToolBox *m_pToolBox; + DataTreeListBox *m_pItemList; + sal_uInt16 m_nAddId; + sal_uInt16 m_nAddElementId; + sal_uInt16 m_nAddAttributeId; + sal_uInt16 m_nEditId; + sal_uInt16 m_nRemoveId; XFormsUIHelper1_ref m_xUIHelper; @@ -284,7 +301,7 @@ namespace svxform bool DoMenuAction( sal_uInt16 _nMenuID ); void EnableMenuItems( Menu* _pMenu ); - inline SvTreeListEntry* GetSelectedItem() const { return m_aItemList.FirstSelected(); } + inline SvTreeListEntry* GetSelectedItem() const { return m_pItemList->FirstSelected(); } inline const OUString& GetInstanceName() const { return m_sInstanceName; } inline const OUString& GetInstanceURL() const { return m_sInstanceURL; } inline bool GetLinkOnce() const { return m_bLinkOnce; } -- cgit