diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-07 11:13:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-07 12:27:32 +0000 |
commit | 994a737a317165db736f2a2f6a25b3439207da5d (patch) | |
tree | dbeb5441482ec0a093682583ae0ef19b28154c05 /svx | |
parent | c9e9b3a36ffd2d2b37fbe7267b4707174e8c6312 (diff) |
callcatcher: update list
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmshimp.cxx | 65 | ||||
-rw-r--r-- | svx/source/inc/fmshimp.hxx | 1 |
2 files changed, 0 insertions, 66 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index 972efd6fc3ef..71faf9e85669 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -3199,71 +3199,6 @@ void FmXFormShell::stopFiltering(sal_Bool bSave) } //------------------------------------------------------------------------------ -void clearFilter(const Reference< runtime::XFormController >& _rxController) -{ - Reference< XPropertySet> xControllerAsSet(_rxController, UNO_QUERY); - Reference< XIndexAccess> xControllerAsIndex(_rxController, UNO_QUERY); - - // call the subcontroller - Reference< runtime::XFormController > xController; - for (sal_Int32 i = 0, nCount = xControllerAsIndex->getCount(); - i < nCount; i++) - { - xControllerAsIndex->getByIndex(i) >>= xController; - clearFilter(xController); - } - - // clear the filter - Reference< XIndexContainer> xContainer; - xControllerAsSet->getPropertyValue(FM_PROP_FILTERSUPPLIER) >>= xContainer; - if (xContainer.is()) - { - // clear the current filter - Sequence< PropertyValue> aCondition; - - // as there is always an empty row, if we have a filter: - if (xContainer->getCount()) - { - xControllerAsSet->setPropertyValue(FM_PROP_CURRENTFILTER, makeAny(sal_Int32(xContainer->getCount() - 1))); - while (xContainer->getCount() > 1) - xContainer->removeByIndex(0); - } - } -} - -//------------------------------------------------------------------------------ -void FmXFormShell::clearFilter() -{ - if ( impl_checkDisposed() ) - return; - - FmXFormView* pXView = m_pShell->GetFormView()->GetImpl(); - - // if the active controller is our external one we have to use the trigger controller - Reference< XControlContainer> xContainer; - if (getActiveController() == m_xExternalViewController) - { - DBG_ASSERT(m_xExtViewTriggerController.is(), "FmXFormShell::clearFilter : inconsistent : active external controller, but noone triggered this !"); - xContainer = m_xExtViewTriggerController->getContainer(); - } - else - xContainer = getActiveController()->getContainer(); - - PFormViewPageWindowAdapter pAdapter = pXView->findWindow(xContainer); - if ( pAdapter.is() ) - { - const ::std::vector< Reference< runtime::XFormController > > & rControllerList = pAdapter->GetList(); - for ( ::std::vector< Reference< runtime::XFormController > > ::const_iterator j = rControllerList.begin(); - j != rControllerList.end(); - ++j - ) - { - ::clearFilter(*j); - } - } -} - -//------------------------------------------------------------------------------ void FmXFormShell::CreateExternalView() { if ( impl_checkDisposed() ) diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx index 7e1b75c0d183..b9f42caea07e 100644 --- a/svx/source/inc/fmshimp.hxx +++ b/svx/source/inc/fmshimp.hxx @@ -437,7 +437,6 @@ public: sal_Bool isInFilterMode() const {return m_bFilterMode;} void startFiltering(); void stopFiltering(sal_Bool bSave); - void clearFilter(); static PopupMenu* GetConversionMenu(); // ein Menue, das alle ControlConversion-Eintraege enthaelt |