diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-05-08 05:48:40 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-05-08 05:48:40 +0000 |
commit | ad7b7796eac59bef972cbea815692e009f83de0b (patch) | |
tree | 4c4c59793921349cbb18cf55dec6f60484ae3721 /svx/source | |
parent | 269ff0f2b2a8fbec7bb0cb653a1ed26a42375b19 (diff) |
#98725# no shell, no page anymore, instead the root of the form component tree
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/form/fmexch.cxx | 8 | ||||
-rw-r--r-- | svx/source/inc/fmexch.hxx | 22 |
2 files changed, 17 insertions, 13 deletions
diff --git a/svx/source/form/fmexch.cxx b/svx/source/form/fmexch.cxx index 00fde7154c92..f0eef4b6e9d7 100644 --- a/svx/source/form/fmexch.cxx +++ b/svx/source/form/fmexch.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fmexch.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: hr $ $Date: 2001-08-14 15:02:22 $ + * last change: $Author: fs $ $Date: 2002-05-08 06:48:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -140,16 +140,12 @@ namespace svxform //-------------------------------------------------------------------- OControlExchange::OControlExchange( ) :m_pFocusEntry(NULL) - ,m_pShell(NULL) - ,m_pPage(NULL) { } //-------------------------------------------------------------------- OControlExchange::OControlExchange( SvLBoxEntry* _pFocusEntry ) :m_pFocusEntry(_pFocusEntry) - ,m_pShell(NULL) - ,m_pPage(NULL) { } diff --git a/svx/source/inc/fmexch.hxx b/svx/source/inc/fmexch.hxx index 3607319f1a1b..ba873e3e75b8 100644 --- a/svx/source/inc/fmexch.hxx +++ b/svx/source/inc/fmexch.hxx @@ -2,9 +2,9 @@ * * $RCSfile: fmexch.hxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2001-08-09 15:05:25 $ + * last change: $Author: fs $ $Date: 2002-05-08 06:48:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -72,6 +72,9 @@ #ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_ #include <com/sun/star/uno/Sequence.hxx> #endif +#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_ +#include <com/sun/star/container/XNameContainer.hpp> +#endif class FmFormShell; class FmFormPage; @@ -167,9 +170,12 @@ namespace svxform FmControlPaths m_aControlPaths; ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > m_aHiddenControlModels; + + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > + m_xFormsRoot; // the root of the forms collection where the entries we represent reside + // this uniquely identifies the page and the document + SvLBoxEntry* m_pFocusEntry; - FmFormShell* m_pShell; - FmFormPage* m_pPage; public: OControlExchange( ); @@ -178,7 +184,9 @@ namespace svxform void addSelectedEntry( SvLBoxEntry* _pEntry ); void setFocusEntry( SvLBoxEntry* _pFocusEntry ); - void setShellAndPage( FmFormShell* _pShell, FmFormPage* _pPage ) { m_pShell = _pShell; m_pPage = _pPage; } + void setFormsRoot( + const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& _rxFormsRoot + ) { m_xFormsRoot = _rxFormsRoot; } void buildPathFormat(SvTreeListBox* pTreeBox, SvLBoxEntry* pRoot); // baut aus m_aSelectedEntries m_aControlPaths auf @@ -206,8 +214,8 @@ namespace svxform ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > hiddenControls() const { return m_aHiddenControlModels; } - FmFormShell* getShell() const { return m_pShell; } - FmFormPage* getPage() const { return m_pPage; } + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > + getFormsRoot() const { return m_xFormsRoot; } protected: virtual void AddSupportedFormats(); |