LibreOffice Module svx (master) 1
|
#include <filtnav.hxx>
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) |
FmFormItem * | GetCurrentForm () const |
FmFilterItems * | GetCurrentItems () 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 |
FmParentData * | GetParent () 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) |
FmFormItem * | Find (const ::std::vector< std::unique_ptr< FmFilterData > > &rItems, const css::uno::Reference< css::form::runtime::XFormController > &xController) const |
FmFormItem * | Find (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< FmFilterAdapter > | m_pAdapter |
FmFilterItems * | m_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 |
Definition at line 137 of file filtnav.hxx.
svxform::FmFilterModel::FmFilterModel | ( | ) |
Definition at line 451 of file filtnav.cxx.
References getProcessComponentContext().
|
overridevirtual |
Definition at line 459 of file filtnav.cxx.
References Clear().
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().
|
static |
Definition at line 648 of file filtnav.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, svxform::FmParentData::GetChildren(), and svxform::FmFormItem::GetFilterController().
Referenced by EnsureEmptyFilterRows().
void svxform::FmFilterModel::Clear | ( | ) |
Definition at line 465 of file filtnav.cxx.
References SfxBroadcaster::Broadcast(), svxform::FmParentData::m_aChildren, m_pAdapter, m_pCurrentItems, m_xController, and m_xControllers.
Referenced by ~FmFilterModel().
void svxform::FmFilterModel::EnsureEmptyFilterRows | ( | FmParentData & | _rItem | ) |
Definition at line 886 of file filtnav.cxx.
References AppendFilterItems(), EnsureEmptyFilterRows(), and svxform::FmParentData::GetChildren().
Referenced by svxform::FmFilterAdapter::disjunctiveTermRemoved(), EnsureEmptyFilterRows(), and svxform::FmFilterAdapter::predicateExpressionChanged().
|
private |
|
private |
|
inline |
Definition at line 162 of file filtnav.hxx.
References m_xController.
|
inline |
Definition at line 158 of file filtnav.hxx.
References svxform::FmFilterData::GetParent(), and m_pCurrentItems.
|
inline |
Definition at line 159 of file filtnav.hxx.
References m_pCurrentItems.
|
private |
Definition at line 668 of file filtnav.cxx.
References SfxBroadcaster::Broadcast(), nPos, and pData.
Referenced by Append(), svxform::FmFilterAdapter::disjunctiveTermAdded(), and svxform::FmFilterAdapter::predicateExpressionChanged().
|
private |
Definition at line 756 of file filtnav.cxx.
References SfxBroadcaster::Broadcast(), and pData.
void svxform::FmFilterModel::Remove | ( | FmFilterData * | pFilterItem | ) |
Definition at line 689 of file filtnav.cxx.
References DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, svxform::FmParentData::GetChildren(), svxform::FmFormItem::GetFilterController(), svxform::FmFilterData::GetParent(), i, nPos, p, pData, Remove(), and svxform::FmFilterAdapter::setText().
Referenced by svxform::FmFilterAdapter::disjunctiveTermRemoved(), svxform::FmFilterAdapter::predicateExpressionChanged(), Remove(), and SetTextForItem().
void svxform::FmFilterModel::SetCurrentController | ( | const css::uno::Reference< css::form::runtime::XFormController > & | xController | ) |
Definition at line 622 of file filtnav.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, Find(), svxform::FmParentData::GetChildren(), svxform::FmParentData::m_aChildren, m_xController, o3tl::make_unsigned(), and SetCurrentItems().
Referenced by SetCurrentItems().
void svxform::FmFilterModel::SetCurrentItems | ( | FmFilterItems * | pCurrent | ) |
Definition at line 840 of file filtnav.cxx.
References SfxBroadcaster::Broadcast(), DBG_UNHANDLED_EXCEPTION, Exception, svxform::FmParentData::GetChildren(), svxform::FmFormItem::GetController(), svxform::FmFormItem::GetFilterController(), svxform::FmFilterData::GetParent(), i, m_pCurrentItems, m_xController, nPos, p, and SetCurrentController().
Referenced by SetCurrentController().
void svxform::FmFilterModel::SetTextForItem | ( | FmFilterItem * | pItem, |
const OUString & | rText | ||
) |
Definition at line 819 of file filtnav.cxx.
References SfxBroadcaster::Broadcast(), svxform::FmParentData::GetChildren(), svxform::FmFilterData::GetParent(), i, p, Remove(), svxform::FmFilterData::SetText(), and svxform::FmFilterAdapter::setText().
void svxform::FmFilterModel::Update | ( | const css::uno::Reference< css::container::XIndexAccess > & | xControllers, |
const css::uno::Reference< css::form::runtime::XFormController > & | xCurrent | ||
) |
|
private |
bool svxform::FmFilterModel::ValidateText | ( | FmFilterItem const * | pItem, |
OUString & | rText, | ||
OUString & | rErrorMsg | ||
) | const |
Definition at line 768 of file filtnav.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, svxform::FmFilterItem::GetComponentIndex(), getConnection(), svxform::FmFormItem::GetController(), LanguageTag::getLocale(), getNumberFormats(), svxform::FmFilterData::GetParent(), comphelper::getProcessComponentContext(), Application::GetSettings(), AllSettings::GetUILanguageTag(), and Locale.
|
friend |
Definition at line 141 of file filtnav.hxx.
|
private |
Definition at line 145 of file filtnav.hxx.
Referenced by Clear().
|
private |
Definition at line 146 of file filtnav.hxx.
Referenced by Clear(), GetCurrentForm(), GetCurrentItems(), and SetCurrentItems().
|
private |
Definition at line 144 of file filtnav.hxx.
Referenced by Clear(), GetCurrentController(), SetCurrentController(), and SetCurrentItems().
|
private |
Definition at line 143 of file filtnav.hxx.
Referenced by Clear().