19#ifndef INCLUDED_SVX_SOURCE_INC_FMEXPL_HXX
20#define INCLUDED_SVX_SOURCE_INC_FMEXPL_HXX
22#include <config_options.h>
32#include <com/sun/star/form/XForm.hpp>
33#include <com/sun/star/form/XFormComponent.hpp>
34#include <com/sun/star/beans/PropertyChangeEvent.hpp>
35#include <com/sun/star/container/XContainerListener.hpp>
36#include <com/sun/star/beans/XPropertyChangeListener.hpp>
37#include <com/sun/star/container/XIndexContainer.hpp>
131 css::uno::Reference< css::container::XChild >
m_xChild;
137 std::unique_ptr<FmEntryDataList>
142 void newObject(
const css::uno::Reference< css::uno::XInterface >& _rxIFace );
160 virtual std::unique_ptr<FmEntryData>
Clone() = 0;
164 const css::uno::Reference< css::uno::XInterface >&
GetElement()
const
195 void insert( std::unique_ptr<FmEntryData> pItem,
size_t Index );
224 css::uno::Reference< css::form::XForm >
m_xForm;
234 virtual std::unique_ptr<FmEntryData>
Clone()
override;
247 const css::uno::Reference< css::form::XFormComponent >& _rxComponent,
255 virtual std::unique_ptr<FmEntryData>
Clone()
override;
257 void ModelReplaced(
const css::uno::Reference< css::form::XFormComponent >& _rxNew);
265 class NavigatorTreeModel;
268 :
public ::cppu::WeakImplHelper < css::beans::XPropertyChangeListener
269 , css::container::XContainerListener
280 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source)
override;
283 virtual void SAL_CALL
propertyChange(
const css::beans::PropertyChangeEvent& evt)
override;
287 virtual void SAL_CALL
elementInserted(
const css::container::ContainerEvent& rEvent)
override;
288 virtual void SAL_CALL
elementReplaced(
const css::container::ContainerEvent& rEvent)
override;
289 virtual void SAL_CALL
elementRemoved(
const css::container::ContainerEvent& rEvent)
override;
297 void Insert(
const css::uno::Reference< css::uno::XInterface >& xIface, sal_Int32 nIndex);
298 void Remove(
const css::uno::Reference< css::uno::XInterface >& _rxElement );
307 std::unique_ptr<FmEntryDataList>
314 void UpdateContent(
const css::uno::Reference< css::form::XForms >& xForms );
316 void InsertForm(
const css::uno::Reference< css::form::XForm >& xForm, sal_uInt32 nRelPos);
319 void InsertFormComponent(
const css::uno::Reference< css::form::XFormComponent >& xComp, sal_uInt32 nRelPos);
324 void ReplaceFormComponent(
const css::uno::Reference< css::form::XFormComponent >& xOld,
const css::uno::Reference< css::form::XFormComponent >& xNew);
340 bool bAlterModel =
false);
348 css::uno::Reference< css::form::XForms >
GetForms()
const;
412 std::unique_ptr<weld::TreeIter>
Insert(
const FmEntryData* pEntryData,
int nRelPos);
439 void CollectObjects(
FmFormData const * pFormData,
bool bDeep, ::std::set< css::uno::Reference< css::form::XFormComponent > >& _rObjects);
455 typedef std::pair<const weld::TreeIter&, OUString>
IterString;
522 virtual bool Close()
override;
533 virtual void dispose()
override;
540 class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) NavigatorFrameManager final :
public SfxChildWindow
#define SFX_DECL_CHILDWINDOW(Class)
const css::uno::Reference< css::form::XFormComponent > & GetFormComponent() const
virtual ~FmControlData() override
css::uno::Reference< css::form::XFormComponent > m_xFormComponent
OUString GetImage() const
FmControlData(const css::uno::Reference< css::form::XFormComponent > &_rxComponent, FmFormData *_pParent)
void ModelReplaced(const css::uno::Reference< css::form::XFormComponent > &_rxNew)
virtual std::unique_ptr< FmEntryData > Clone() override
virtual bool IsEqualWithoutChildren(FmEntryData *pEntryData) override
void removeNoDelete(FmEntryData *pItem)
FmEntryData * at(size_t Index)
std::vector< std::unique_ptr< FmEntryData > > maEntryDataList
void insert(std::unique_ptr< FmEntryData > pItem, size_t Index)
const css::uno::Reference< css::container::XChild > & GetChildIFace() const
const OUString & GetText() const
const css::uno::Reference< css::uno::XInterface > & GetElement() const
const css::uno::Reference< css::beans::XPropertySet > & GetPropertySet() const
virtual bool IsEqualWithoutChildren(FmEntryData *pEntryData)
FmEntryData(FmEntryData *pParentData, const css::uno::Reference< css::uno::XInterface > &_rIFace)
FmEntryDataList * GetChildList() const
std::unique_ptr< FmEntryDataList > pChildList
void newObject(const css::uno::Reference< css::uno::XInterface > &_rxIFace)
FmEntryData * GetParent() const
const OUString & GetNormalImage() const
css::uno::Reference< css::beans::XPropertySet > m_xProperties
void SetText(const OUString &rText)
css::uno::Reference< css::container::XChild > m_xChild
void SetParent(FmEntryData *pParentData)
css::uno::Reference< css::uno::XInterface > m_xNormalizedIFace
virtual std::unique_ptr< FmEntryData > Clone()=0
virtual ~FmNavClearedHint() override
FmNavInsertedHint(FmEntryData *pInsertedEntryData, sal_uInt32 nRelPos)
sal_uInt32 GetRelPos() const
FmEntryData * GetEntryData() const
virtual ~FmNavInsertedHint() override
virtual ~FmNavModelReplacedHint() override
FmEntryData * GetEntryData() const
FmNavModelReplacedHint(FmEntryData *pAffectedEntryData)
const OUString & GetNewName() const
FmEntryData * GetEntryData() const
FmNavNameChangedHint(FmEntryData *pData, OUString aNewName)
virtual ~FmNavNameChangedHint() override
virtual ~FmNavRemovedHint() override
FmEntryData * GetEntryData() const
FmNavRemovedHint(FmEntryData *pInsertedEntryData)
FmEntryDataArray m_arredToSelect
void SetMixedSelection(bool bMixedSelection)
FmEntryDataArray & GetItems()
void AddItem(FmEntryData *pEntry)
bool IsMixedSelection() const
FmNavViewMarksChanged(FmFormView *pWhichView)
const FmFormView * GetAffectedView() const
virtual void StateChanged(StateChangedType nStateChange) override
::std::vector< DataFlavorEx > DataFlavorExVector
std::set< FmEntryData * > FmEntryDataArray