LibreOffice Module svx (master) 1
|
#include <fmexpl.hxx>
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 |
FmFormShell * | GetFormShell () const |
FmFormPage * | GetFormPage () const |
FmEntryData * | FindData (const css::uno::Reference< css::uno::XInterface > &xElement, FmEntryDataList *pDataList, bool bRecurs=true) |
FmEntryData * | FindData (const OUString &rText, FmFormData const *pParentData, bool bRecurs) |
FmEntryDataList * | GetRootList () 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 |
SfxBroadcaster * | GetBroadcasterJOE (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< FmEntryDataList > | m_pRootList |
FmFormShell * | m_pFormShell |
FmFormPage * | m_pFormPage |
FmFormModel * | m_pFormModel |
rtl::Reference< OFormComponentObserver > | m_pPropChangeList |
Friends | |
class | NavigatorTree |
class | OFormComponentObserver |
Additional Inherited Members | |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Definition at line 301 of file fmexpl.hxx.
svxform::NavigatorTreeModel::NavigatorTreeModel | ( | ) |
Definition at line 188 of file navigatortreemodel.cxx.
References m_pPropChangeList, m_pRootList, and OFormComponentObserver.
|
overridevirtual |
Definition at line 197 of file navigatortreemodel.cxx.
References Clear(), SfxListener::EndListening(), FmFormShell::GetFormModel(), SfxListener::IsListening(), m_pFormShell, m_pPropChangeList, and m_pRootList.
|
private |
Definition at line 777 of file navigatortreemodel.cxx.
References SfxBroadcaster::Broadcast(), FmNavRequestSelectHint::ClearItems(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMark::GetMarkedSdrObj(), i, InsertFormComponent(), and FmNavRequestSelectHint::SetMixedSelection().
Referenced by Notify().
void svxform::NavigatorTreeModel::Clear | ( | ) |
Definition at line 226 of file navigatortreemodel.cxx.
References SfxBroadcaster::Broadcast(), FmEntryDataList::clear(), GetForms(), GetRootList(), and m_pPropChangeList.
Referenced by UpdateContent(), and ~NavigatorTreeModel().
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().
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 | ||
) |
Definition at line 627 of file navigatortreemodel.cxx.
References FmEntryDataList::at(), FindData(), FmEntryData::GetChildList(), GetRootList(), FmEntryData::GetText(), i, and FmEntryDataList::size().
|
static |
Definition at line 862 of file navigatortreemodel.cxx.
References FmFormData::GetFormIface().
Referenced by FillBranch().
|
inline |
Definition at line 350 of file fmexpl.hxx.
References m_pFormPage.
Referenced by svxform::NavigatorTree::implAcceptDataTransfer(), svxform::NavigatorTree::implExecuteDataTransfer(), and svxform::NavigatorTree::UpdateContent().
Reference< css::form::XForms > svxform::NavigatorTreeModel::GetForms | ( | ) | const |
Definition at line 243 of file navigatortreemodel.cxx.
References FmFormShell::GetCurPage(), FmFormPage::GetForms(), and m_pFormShell.
Referenced by Clear(), FillBranch(), svxform::NavigatorTree::implExecuteDataTransfer(), and Insert().
|
inline |
Definition at line 349 of file fmexpl.hxx.
References m_pFormShell.
Referenced by svxform::NavigatorTree::DeleteSelection(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTree::NewForm(), svxform::NavigatorTree::ShowSelectionProperties(), and svxform::NavigatorTree::UpdateContent().
|
inline |
Definition at line 353 of file fmexpl.hxx.
References m_pRootList.
Referenced by Clear(), svxform::OFormComponentObserver::elementReplaced(), FindData(), svxform::NavigatorTree::implExecuteDataTransfer(), Insert(), InsertForm(), InsertFormComponent(), svxform::OFormComponentObserver::propertyChange(), svxform::OFormComponentObserver::Remove(), Remove(), RemoveSdrObj(), and ReplaceFormComponent().
void svxform::NavigatorTreeModel::Insert | ( | FmEntryData * | pEntryData, |
sal_uInt32 | nRelPos = SAL_MAX_UINT32 , |
||
bool | bAlterModel = false |
||
) |
Definition at line 252 of file navigatortreemodel.cxx.
References SdrModel::AddUndo(), Any, aStr, SdrModel::BegUndo(), SfxBroadcaster::Broadcast(), SfxListener::EndListening(), SdrModel::EndUndo(), FM_PROP_NAME, cppu::UnoType< typename T >::get(), FmEntryData::GetChildIFace(), FmEntryData::GetChildList(), FmFormData::GetFormIface(), GetForms(), FmEntryData::GetParent(), GetRootList(), FmEntryDataList::insert(), FmUndoContainerAction::Inserted, SfxListener::IsListening(), SdrModel::IsUndoEnabled(), m_pFormModel, m_pPropChangeList, o3tl::make_unsigned(), SfxListener::StartListening(), and SvxResId().
Referenced by FillBranch(), InsertForm(), svxform::NavigatorTree::NewControl(), and svxform::NavigatorTree::NewForm().
|
private |
Definition at line 543 of file navigatortreemodel.cxx.
References FindData(), GetRootList(), and Insert().
Referenced by svxform::OFormComponentObserver::Insert().
|
private |
Referenced by BroadcastMarkedObjects(), svxform::OFormComponentObserver::Insert(), InsertFormComponent(), and InsertSdrObj().
|
private |
Definition at line 739 of file navigatortreemodel.cxx.
References FmNavRequestSelectHint::AddItem(), DBG_UNHANDLED_EXCEPTION, Exception, FindData(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), GetRootList(), i, InsertFormComponent(), and pObject.
|
private |
Definition at line 687 of file navigatortreemodel.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getElementPos(), SdrObject::GetSubList(), InsertFormComponent(), InsertSdrObj(), SdrObject::IsGroupObject(), SdrObjListIter::IsMore(), SdrObjListIter::Next(), and nPos.
Referenced by InsertSdrObj(), and Notify().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 658 of file navigatortreemodel.cxx.
References BroadcastMarkedObjects(), SfxHint::GetId(), SdrHint::GetKind(), SdrHint::GetObject(), InsertSdrObj(), ObjectInserted, ObjectRemoved, RemoveSdrObj(), and UpdateContent().
void svxform::NavigatorTreeModel::Remove | ( | FmEntryData * | pEntryData, |
bool | bAlterModel = false |
||
) |
Definition at line 350 of file navigatortreemodel.cxx.
References SdrModel::AddUndo(), aStr, SdrModel::BegUndo(), SfxBroadcaster::Broadcast(), FmUndoContainerAction::DisposeElement(), SfxListener::EndListening(), SdrModel::EndUndo(), FmEntryData::GetChildIFace(), FmEntryData::GetChildList(), getElementPos(), FmFormShell::GetImpl(), FmEntryData::GetParent(), GetRootList(), SfxListener::IsListening(), SdrModel::IsUndoEnabled(), m_pFormModel, m_pFormShell, m_pPropChangeList, FmUndoContainerAction::Removed, RemoveForm(), RemoveFormComponent(), FmEntryDataList::removeNoDelete(), size, SfxListener::StartListening(), and SvxResId().
Referenced by svxform::NavigatorTree::DeleteSelection(), svxform::OFormComponentObserver::Remove(), and RemoveSdrObj().
|
private |
Definition at line 440 of file navigatortreemodel.cxx.
References FmEntryDataList::at(), FM_PROP_NAME, FmEntryData::GetChildList(), FmEntryData::GetPropertySet(), i, m_pFormModel, m_pPropChangeList, RemoveForm(), RemoveFormComponent(), and FmEntryDataList::size().
Referenced by Remove(), and RemoveForm().
|
private |
Definition at line 468 of file navigatortreemodel.cxx.
References FM_PROP_NAME, FmEntryData::GetPropertySet(), and m_pPropChangeList.
Referenced by Remove(), and RemoveForm().
|
private |
Definition at line 714 of file navigatortreemodel.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, FindData(), GetRootList(), SdrObject::GetSubList(), SdrObject::IsGroupObject(), SdrObjListIter::IsMore(), SdrObjListIter::Next(), Remove(), and RemoveSdrObj().
Referenced by Notify(), and RemoveSdrObj().
|
static |
Definition at line 873 of file navigatortreemodel.cxx.
References Any, FM_PROP_NAME, and FmEntryData::SetText().
Referenced by svxform::IMPL_LINK().
|
private |
Definition at line 590 of file navigatortreemodel.cxx.
References SfxBroadcaster::Broadcast(), FindData(), GetRootList(), FmControlData::ModelReplaced(), and pData.
Referenced by svxform::OFormComponentObserver::elementReplaced().
void svxform::NavigatorTreeModel::SetModified | ( | ) |
Definition at line 217 of file navigatortreemodel.cxx.
References FmFormShell::GetFormModel(), FmFormModel::GetObjectShell(), m_pFormShell, and SfxObjectShell::SetModified().
Referenced by svxform::NavigatorTree::NewControl(), and svxform::NavigatorTree::NewForm().
|
private |
Referenced by Notify(), svxform::NavigatorTree::UpdateContent(), and UpdateContent().
void svxform::NavigatorTreeModel::UpdateContent | ( | FmFormShell * | pNewShell | ) |
Definition at line 821 of file navigatortreemodel.cxx.
References Clear(), SfxListener::EndListening(), FmFormShell::GetCurPage(), FmFormShell::GetFormModel(), FmFormPage::GetForms(), m_pFormModel, m_pFormPage, m_pFormShell, SfxListener::StartListening(), and UpdateContent().
|
friend |
Definition at line 304 of file fmexpl.hxx.
|
friend |
Definition at line 305 of file fmexpl.hxx.
Referenced by NavigatorTreeModel().
|
private |
Definition at line 311 of file fmexpl.hxx.
Referenced by Insert(), Remove(), RemoveForm(), and UpdateContent().
|
private |
Definition at line 310 of file fmexpl.hxx.
Referenced by GetFormPage(), and UpdateContent().
|
private |
Definition at line 309 of file fmexpl.hxx.
Referenced by GetForms(), GetFormShell(), Remove(), SetModified(), UpdateContent(), and ~NavigatorTreeModel().
|
private |
Definition at line 312 of file fmexpl.hxx.
Referenced by Clear(), svxform::NavigatorTree::implExecuteDataTransfer(), Insert(), NavigatorTreeModel(), Remove(), RemoveForm(), RemoveFormComponent(), and ~NavigatorTreeModel().
|
private |
Definition at line 308 of file fmexpl.hxx.
Referenced by GetRootList(), NavigatorTreeModel(), and ~NavigatorTreeModel().