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 Referencefinal

#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
 
void ForAllListeners (std::function< bool(SfxListener *)> f) 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
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

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 301 of file fmexpl.hxx.

Constructor & Destructor Documentation

◆ NavigatorTreeModel()

svxform::NavigatorTreeModel::NavigatorTreeModel ( )

Definition at line 188 of file navigatortreemodel.cxx.

References m_pPropChangeList, m_pRootList, and OFormComponentObserver.

◆ ~NavigatorTreeModel()

svxform::NavigatorTreeModel::~NavigatorTreeModel ( )
overridevirtual

Member Function Documentation

◆ BroadcastMarkedObjects()

void svxform::NavigatorTreeModel::BroadcastMarkedObjects ( const SdrMarkList mlMarked)
private

◆ Clear()

void svxform::NavigatorTreeModel::Clear ( )

◆ FillBranch()

void svxform::NavigatorTreeModel::FillBranch ( FmFormData pParentData)

Definition at line 483 of file navigatortreemodel.cxx.

References DBG_ASSERT, FillBranch(), GetFormComponents(), GetForms(), i, and Insert().

Referenced by FillBranch().

◆ FindData() [1/2]

FmEntryData * svxform::NavigatorTreeModel::FindData ( const css::uno::Reference< css::uno::XInterface > &  xElement,
FmEntryDataList pDataList,
bool  bRecurs = true 
)

◆ FindData() [2/2]

FmEntryData * svxform::NavigatorTreeModel::FindData ( const OUString &  rText,
FmFormData const *  pParentData,
bool  bRecurs 
)

◆ GetFormComponents()

Reference< XIndexContainer > svxform::NavigatorTreeModel::GetFormComponents ( FmFormData const *  pParentFormData)
static

Definition at line 862 of file navigatortreemodel.cxx.

References FmFormData::GetFormIface().

Referenced by FillBranch().

◆ GetFormPage()

FmFormPage * svxform::NavigatorTreeModel::GetFormPage ( ) const
inline

◆ GetForms()

Reference< css::form::XForms > svxform::NavigatorTreeModel::GetForms ( ) const

◆ GetFormShell()

FmFormShell * svxform::NavigatorTreeModel::GetFormShell ( ) const
inline

◆ GetRootList()

FmEntryDataList * svxform::NavigatorTreeModel::GetRootList ( ) const
inline

◆ Insert()

void svxform::NavigatorTreeModel::Insert ( FmEntryData pEntryData,
sal_uInt32  nRelPos = SAL_MAX_UINT32,
bool  bAlterModel = false 
)

◆ InsertForm()

void svxform::NavigatorTreeModel::InsertForm ( const css::uno::Reference< css::form::XForm > &  xForm,
sal_uInt32  nRelPos 
)
private

Definition at line 543 of file navigatortreemodel.cxx.

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

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

◆ InsertFormComponent() [1/2]

void svxform::NavigatorTreeModel::InsertFormComponent ( const css::uno::Reference< css::form::XFormComponent > &  xComp,
sal_uInt32  nRelPos 
)
private

◆ InsertFormComponent() [2/2]

bool svxform::NavigatorTreeModel::InsertFormComponent ( FmNavRequestSelectHint rHint,
SdrObject pObject 
)
private

◆ InsertSdrObj()

void svxform::NavigatorTreeModel::InsertSdrObj ( const SdrObject pSdrObj)
private

◆ Notify()

void svxform::NavigatorTreeModel::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

◆ Remove()

void svxform::NavigatorTreeModel::Remove ( FmEntryData pEntryData,
bool  bAlterModel = false 
)

◆ RemoveForm()

void svxform::NavigatorTreeModel::RemoveForm ( FmFormData const *  pFormData)
private

◆ RemoveFormComponent()

void svxform::NavigatorTreeModel::RemoveFormComponent ( FmControlData const *  pControlData)
private

Definition at line 468 of file navigatortreemodel.cxx.

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

Referenced by Remove(), and RemoveForm().

◆ RemoveSdrObj()

void svxform::NavigatorTreeModel::RemoveSdrObj ( const SdrObject pSdrObj)
private

◆ Rename()

bool svxform::NavigatorTreeModel::Rename ( FmEntryData pEntryData,
const OUString &  rNewText 
)
static

Definition at line 873 of file navigatortreemodel.cxx.

References Any, FM_PROP_NAME, and FmEntryData::SetText().

Referenced by svxform::IMPL_LINK().

◆ ReplaceFormComponent()

void svxform::NavigatorTreeModel::ReplaceFormComponent ( const css::uno::Reference< css::form::XFormComponent > &  xOld,
const css::uno::Reference< css::form::XFormComponent > &  xNew 
)
private

◆ SetModified()

void svxform::NavigatorTreeModel::SetModified ( )

◆ UpdateContent() [1/2]

void svxform::NavigatorTreeModel::UpdateContent ( const css::uno::Reference< css::form::XForms > &  xForms)
private

◆ UpdateContent() [2/2]

void svxform::NavigatorTreeModel::UpdateContent ( FmFormShell pNewShell)

Friends And Related Function Documentation

◆ NavigatorTree

friend class NavigatorTree
friend

Definition at line 304 of file fmexpl.hxx.

◆ OFormComponentObserver

friend class OFormComponentObserver
friend

Definition at line 305 of file fmexpl.hxx.

Referenced by NavigatorTreeModel().

Member Data Documentation

◆ m_pFormModel

FmFormModel* svxform::NavigatorTreeModel::m_pFormModel
private

Definition at line 311 of file fmexpl.hxx.

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

◆ m_pFormPage

FmFormPage* svxform::NavigatorTreeModel::m_pFormPage
private

Definition at line 310 of file fmexpl.hxx.

Referenced by GetFormPage(), and UpdateContent().

◆ m_pFormShell

FmFormShell* svxform::NavigatorTreeModel::m_pFormShell
private

◆ m_pPropChangeList

rtl::Reference<OFormComponentObserver> svxform::NavigatorTreeModel::m_pPropChangeList
private

◆ m_pRootList

std::unique_ptr<FmEntryDataList> svxform::NavigatorTreeModel::m_pRootList
private

Definition at line 308 of file fmexpl.hxx.

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


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