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

#include <filtnav.hxx>

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

Public Member Functions

 FmFilterModel ()
 
virtual ~FmFilterModel () override
 
void Update (const css::uno::Reference< css::container::XIndexAccess > &xControllers, const css::uno::Reference< css::form::runtime::XFormController > &xCurrent)
 
void Clear ()
 
bool ValidateText (FmFilterItem const *pItem, OUString &rText, OUString &rErrorMsg) const
 
void Append (FmFilterItems *pItems, std::unique_ptr< FmFilterItem > pFilterItem)
 
void SetTextForItem (FmFilterItem *pItem, const OUString &rText)
 
FmFormItemGetCurrentForm () const
 
FmFilterItemsGetCurrentItems () const
 
void SetCurrentItems (FmFilterItems *pCurrent)
 
const css::uno::Reference< css::form::runtime::XFormController > & GetCurrentController () const
 
void SetCurrentController (const css::uno::Reference< css::form::runtime::XFormController > &xController)
 
void Remove (FmFilterData *pFilterItem)
 
void EnsureEmptyFilterRows (FmParentData &_rItem)
 
- Public Member Functions inherited from svxform::FmParentData
 FmParentData (FmParentData *pParent, const OUString &rText)
 
virtual ~FmParentData () override
 
::std::vector< std::unique_ptr< FmFilterData > > & GetChildren ()
 
- Public Member Functions inherited from svxform::FmFilterData
 FmFilterData (FmParentData *pParent, OUString aText)
 
virtual ~FmFilterData ()
 
void SetText (const OUString &rText)
 
const OUString & GetText () const
 
FmParentDataGetParent () const
 
virtual OUString GetImage () const
 
- 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
 

Static Public Member Functions

static void AppendFilterItems (FmFormItem &_rItem)
 

Private Member Functions

void Insert (const ::std::vector< std::unique_ptr< FmFilterData > >::iterator &rPos, std::unique_ptr< FmFilterData > pFilterItem)
 
void Remove (const ::std::vector< std::unique_ptr< FmFilterData > >::iterator &rPos)
 
FmFormItemFind (const ::std::vector< std::unique_ptr< FmFilterData > > &rItems, const css::uno::Reference< css::form::runtime::XFormController > &xController) const
 
FmFormItemFind (const ::std::vector< std::unique_ptr< FmFilterData > > &rItems, const css::uno::Reference< css::form::XForm > &xForm) const
 
void Update (const css::uno::Reference< css::container::XIndexAccess > &xControllers, FmParentData *pParent)
 

Private Attributes

css::uno::Reference< css::container::XIndexAccess > m_xControllers
 
css::uno::Reference< css::form::runtime::XFormController > m_xController
 
rtl::Reference< FmFilterAdapterm_pAdapter
 
FmFilterItemsm_pCurrentItems
 

Friends

class FmFilterAdapter
 

Additional Inherited Members

- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 
- Protected Attributes inherited from svxform::FmParentData
::std::vector< std::unique_ptr< FmFilterData > > m_aChildren
 

Detailed Description

Definition at line 137 of file filtnav.hxx.

Constructor & Destructor Documentation

◆ FmFilterModel()

svxform::FmFilterModel::FmFilterModel ( )

Definition at line 451 of file filtnav.cxx.

References getProcessComponentContext().

◆ ~FmFilterModel()

svxform::FmFilterModel::~FmFilterModel ( )
overridevirtual

Definition at line 459 of file filtnav.cxx.

References Clear().

Member Function Documentation

◆ Append()

void svxform::FmFilterModel::Append ( FmFilterItems pItems,
std::unique_ptr< FmFilterItem pFilterItem 
)

Definition at line 813 of file filtnav.cxx.

References svxform::FmParentData::GetChildren(), and Insert().

◆ AppendFilterItems()

void svxform::FmFilterModel::AppendFilterItems ( FmFormItem _rItem)
static

◆ Clear()

void svxform::FmFilterModel::Clear ( )

◆ EnsureEmptyFilterRows()

void svxform::FmFilterModel::EnsureEmptyFilterRows ( FmParentData _rItem)

◆ Find() [1/2]

FmFormItem * svxform::FmFilterModel::Find ( const ::std::vector< std::unique_ptr< FmFilterData > > &  rItems,
const css::uno::Reference< css::form::runtime::XFormController > &  xController 
) const
private

◆ Find() [2/2]

FmFormItem * svxform::FmFilterModel::Find ( const ::std::vector< std::unique_ptr< FmFilterData > > &  rItems,
const css::uno::Reference< css::form::XForm > &  xForm 
) const
private

◆ GetCurrentController()

const css::uno::Reference< css::form::runtime::XFormController > & svxform::FmFilterModel::GetCurrentController ( ) const
inline

Definition at line 162 of file filtnav.hxx.

References m_xController.

◆ GetCurrentForm()

FmFormItem * svxform::FmFilterModel::GetCurrentForm ( ) const
inline

Definition at line 158 of file filtnav.hxx.

References svxform::FmFilterData::GetParent(), and m_pCurrentItems.

◆ GetCurrentItems()

FmFilterItems * svxform::FmFilterModel::GetCurrentItems ( ) const
inline

Definition at line 159 of file filtnav.hxx.

References m_pCurrentItems.

◆ Insert()

void svxform::FmFilterModel::Insert ( const ::std::vector< std::unique_ptr< FmFilterData > >::iterator &  rPos,
std::unique_ptr< FmFilterData pFilterItem 
)
private

◆ Remove() [1/2]

void svxform::FmFilterModel::Remove ( const ::std::vector< std::unique_ptr< FmFilterData > >::iterator &  rPos)
private

Definition at line 756 of file filtnav.cxx.

References SfxBroadcaster::Broadcast(), and pData.

◆ Remove() [2/2]

void svxform::FmFilterModel::Remove ( FmFilterData pFilterItem)

◆ SetCurrentController()

void svxform::FmFilterModel::SetCurrentController ( const css::uno::Reference< css::form::runtime::XFormController > &  xController)

◆ SetCurrentItems()

void svxform::FmFilterModel::SetCurrentItems ( FmFilterItems pCurrent)

◆ SetTextForItem()

void svxform::FmFilterModel::SetTextForItem ( FmFilterItem pItem,
const OUString &  rText 
)

◆ Update() [1/2]

void svxform::FmFilterModel::Update ( const css::uno::Reference< css::container::XIndexAccess > &  xControllers,
const css::uno::Reference< css::form::runtime::XFormController > &  xCurrent 
)

◆ Update() [2/2]

void svxform::FmFilterModel::Update ( const css::uno::Reference< css::container::XIndexAccess > &  xControllers,
FmParentData pParent 
)
private

◆ ValidateText()

bool svxform::FmFilterModel::ValidateText ( FmFilterItem const *  pItem,
OUString &  rText,
OUString &  rErrorMsg 
) const

Friends And Related Function Documentation

◆ FmFilterAdapter

friend class FmFilterAdapter
friend

Definition at line 141 of file filtnav.hxx.

Member Data Documentation

◆ m_pAdapter

rtl::Reference<FmFilterAdapter> svxform::FmFilterModel::m_pAdapter
private

Definition at line 145 of file filtnav.hxx.

Referenced by Clear().

◆ m_pCurrentItems

FmFilterItems* svxform::FmFilterModel::m_pCurrentItems
private

Definition at line 146 of file filtnav.hxx.

Referenced by Clear(), GetCurrentForm(), GetCurrentItems(), and SetCurrentItems().

◆ m_xController

css::uno::Reference< css::form::runtime::XFormController > svxform::FmFilterModel::m_xController
private

Definition at line 144 of file filtnav.hxx.

Referenced by Clear(), GetCurrentController(), SetCurrentController(), and SetCurrentItems().

◆ m_xControllers

css::uno::Reference< css::container::XIndexAccess > svxform::FmFilterModel::m_xControllers
private

Definition at line 143 of file filtnav.hxx.

Referenced by Clear().


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