LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
svxform::NavigatorTreeModel Class Reference

#include <fmexpl.hxx>

Inheritance diagram for svxform::NavigatorTreeModel:
[legend]
Collaboration diagram for svxform::NavigatorTreeModel:
[legend]

Public Member Functions

 NavigatorTreeModel ()
 
virtual ~NavigatorTreeModel () override
 
void FillBranch (FmFormData *pParentData)
 
void UpdateContent (FmFormShell *pNewShell)
 
void Insert (FmEntryData *pEntryData, sal_uInt32 nRelPos=SAL_MAX_UINT32, bool bAlterModel=false)
 
void Remove (FmEntryData *pEntryData, bool bAlterModel=false)
 
void Clear ()
 
void SetModified ()
 
css::uno::Reference< css::form::XForms > GetForms () const
 
FmFormShellGetFormShell () const
 
FmFormPageGetFormPage () const
 
FmEntryDataFindData (const css::uno::Reference< css::uno::XInterface > &xElement, FmEntryDataList *pDataList, bool bRecurs=true)
 
FmEntryDataFindData (const OUString &rText, FmFormData const *pParentData, bool bRecurs)
 
FmEntryDataListGetRootList () const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 
 SfxBroadcaster (const SfxBroadcaster &rBC)
 
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
 
void Broadcast (const SfxHint &rHint)
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
size_t GetSizeOfVector () const
 
SfxListenerGetListener (size_t nNo) const
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Static Public Member Functions

static bool Rename (FmEntryData *pEntryData, const OUString &rNewText)
 
static css::uno::Reference< css::container::XIndexContainer > GetFormComponents (FmFormData const *pParentFormData)
 

Private Member Functions

void UpdateContent (const css::uno::Reference< css::form::XForms > &xForms)
 
void InsertForm (const css::uno::Reference< css::form::XForm > &xForm, sal_uInt32 nRelPos)
 
void RemoveForm (FmFormData const *pFormData)
 
void InsertFormComponent (const css::uno::Reference< css::form::XFormComponent > &xComp, sal_uInt32 nRelPos)
 
void RemoveFormComponent (FmControlData const *pControlData)
 
void InsertSdrObj (const SdrObject *pSdrObj)
 
void RemoveSdrObj (const SdrObject *pSdrObj)
 
void ReplaceFormComponent (const css::uno::Reference< css::form::XFormComponent > &xOld, const css::uno::Reference< css::form::XFormComponent > &xNew)
 
void BroadcastMarkedObjects (const SdrMarkList &mlMarked)
 
bool InsertFormComponent (FmNavRequestSelectHint &rHint, SdrObject *pObject)
 

Private Attributes

std::unique_ptr< FmEntryDataListm_pRootList
 
FmFormShellm_pFormShell
 
FmFormPagem_pFormPage
 
FmFormModelm_pFormModel
 
rtl::Reference< OFormComponentObserverm_pPropChangeList
 

Friends

class NavigatorTree
 
class OFormComponentObserver
 

Additional Inherited Members

- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 

Detailed Description

Definition at line 305 of file fmexpl.hxx.

Constructor & Destructor Documentation

svxform::NavigatorTreeModel::NavigatorTreeModel ( )

Definition at line 189 of file navigatortreemodel.cxx.

References m_pPropChangeList, m_pRootList, and OFormComponentObserver.

svxform::NavigatorTreeModel::~NavigatorTreeModel ( )
overridevirtual

Member Function Documentation

void svxform::NavigatorTreeModel::BroadcastMarkedObjects ( const SdrMarkList mlMarked)
private
void svxform::NavigatorTreeModel::Clear ( )
void svxform::NavigatorTreeModel::FillBranch ( FmFormData pParentData)
FmEntryData* svxform::NavigatorTreeModel::FindData ( const css::uno::Reference< css::uno::XInterface > &  xElement,
FmEntryDataList pDataList,
bool  bRecurs = true 
)
FmEntryData * svxform::NavigatorTreeModel::FindData ( const OUString &  rText,
FmFormData const *  pParentData,
bool  bRecurs 
)
Reference< XIndexContainer > svxform::NavigatorTreeModel::GetFormComponents ( FmFormData const *  pParentFormData)
static

Definition at line 862 of file navigatortreemodel.cxx.

References FmFormData::GetFormIface().

Referenced by FillBranch().

FmFormPage* svxform::NavigatorTreeModel::GetFormPage ( ) const
inline
Reference< css::form::XForms > svxform::NavigatorTreeModel::GetForms ( ) const
FmFormShell* svxform::NavigatorTreeModel::GetFormShell ( ) const
inline
FmEntryDataList* svxform::NavigatorTreeModel::GetRootList ( ) const
inline
void svxform::NavigatorTreeModel::Insert ( FmEntryData pEntryData,
sal_uInt32  nRelPos = SAL_MAX_UINT32,
bool  bAlterModel = false 
)
void svxform::NavigatorTreeModel::InsertForm ( const css::uno::Reference< css::form::XForm > &  xForm,
sal_uInt32  nRelPos 
)
private

Definition at line 544 of file navigatortreemodel.cxx.

References FindData(), GetRootList(), and Insert().

Referenced by svxform::OFormComponentObserver::Insert().

void svxform::NavigatorTreeModel::InsertFormComponent ( const css::uno::Reference< css::form::XFormComponent > &  xComp,
sal_uInt32  nRelPos 
)
private
bool svxform::NavigatorTreeModel::InsertFormComponent ( FmNavRequestSelectHint rHint,
SdrObject pObject 
)
private
void svxform::NavigatorTreeModel::InsertSdrObj ( const SdrObject pSdrObj)
private
void svxform::NavigatorTreeModel::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual
void svxform::NavigatorTreeModel::Remove ( FmEntryData pEntryData,
bool  bAlterModel = false 
)
void svxform::NavigatorTreeModel::RemoveForm ( FmFormData const *  pFormData)
private
void svxform::NavigatorTreeModel::RemoveFormComponent ( FmControlData const *  pControlData)
private

Definition at line 469 of file navigatortreemodel.cxx.

References FM_PROP_NAME, FmEntryData::GetPropertySet(), and m_pPropChangeList.

Referenced by Remove(), and RemoveForm().

void svxform::NavigatorTreeModel::RemoveSdrObj ( const SdrObject pSdrObj)
private
bool svxform::NavigatorTreeModel::Rename ( FmEntryData pEntryData,
const OUString &  rNewText 
)
static
void svxform::NavigatorTreeModel::ReplaceFormComponent ( const css::uno::Reference< css::form::XFormComponent > &  xOld,
const css::uno::Reference< css::form::XFormComponent > &  xNew 
)
private
void svxform::NavigatorTreeModel::SetModified ( )
void svxform::NavigatorTreeModel::UpdateContent ( const css::uno::Reference< css::form::XForms > &  xForms)
private
void svxform::NavigatorTreeModel::UpdateContent ( FmFormShell pNewShell)

Friends And Related Function Documentation

friend class NavigatorTree
friend

Definition at line 308 of file fmexpl.hxx.

friend class OFormComponentObserver
friend

Definition at line 309 of file fmexpl.hxx.

Referenced by NavigatorTreeModel().

Member Data Documentation

FmFormModel* svxform::NavigatorTreeModel::m_pFormModel
private

Definition at line 315 of file fmexpl.hxx.

Referenced by Insert(), Remove(), RemoveForm(), and UpdateContent().

FmFormPage* svxform::NavigatorTreeModel::m_pFormPage
private

Definition at line 314 of file fmexpl.hxx.

Referenced by GetFormPage(), and UpdateContent().

FmFormShell* svxform::NavigatorTreeModel::m_pFormShell
private
rtl::Reference<OFormComponentObserver> svxform::NavigatorTreeModel::m_pPropChangeList
private
std::unique_ptr<FmEntryDataList> svxform::NavigatorTreeModel::m_pRootList
private

Definition at line 312 of file fmexpl.hxx.

Referenced by GetRootList(), NavigatorTreeModel(), and ~NavigatorTreeModel().


The documentation for this class was generated from the following files: