diff options
Diffstat (limited to 'svx/source/form/fmshimp.cxx')
-rw-r--r-- | svx/source/form/fmshimp.cxx | 65 |
1 files changed, 0 insertions, 65 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() ) |