summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-15 15:54:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-18 15:30:08 +0200
commitd1379416c6915dd48fa5e350460215aa3d3e6ce8 (patch)
treed295892a6d048901d1b83edb3b7b6573738669dd /svx/source/form
parent142997f2e91b4e9e994babcf3221ef07105e2cc6 (diff)
Avoid reserved identifiers
Change-Id: Ie20bd7a9b3824ce2208d23ded2eae4959dff7bc4
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/filtnav.cxx42
-rw-r--r--svx/source/form/fmtools.cxx4
-rw-r--r--svx/source/form/fmvwimp.cxx4
-rw-r--r--svx/source/form/formcontroller.cxx64
-rw-r--r--svx/source/form/formcontrolling.cxx16
5 files changed, 65 insertions, 65 deletions
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 97cde24dd42e..29d62bc89d33 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -261,9 +261,9 @@ public:
virtual void SAL_CALL disposing(const EventObject& Source) throw( RuntimeException, std::exception ) override;
// XFilterControllerListener
- virtual void SAL_CALL predicateExpressionChanged( const FilterEvent& _Event ) throw (RuntimeException, std::exception) override;
- virtual void SAL_CALL disjunctiveTermRemoved( const FilterEvent& _Event ) throw (RuntimeException, std::exception) override;
- virtual void SAL_CALL disjunctiveTermAdded( const FilterEvent& _Event ) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL predicateExpressionChanged( const FilterEvent& Event ) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL disjunctiveTermRemoved( const FilterEvent& Event ) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL disjunctiveTermAdded( const FilterEvent& Event ) throw (RuntimeException, std::exception) override;
// helpers
void dispose() throw( RuntimeException );
@@ -373,7 +373,7 @@ namespace
// XFilterControllerListener
-void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) throw( RuntimeException, std::exception )
+void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& Event ) throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
@@ -381,8 +381,8 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th
return;
// the controller which sent the event
- Reference< XFormController > xController( _Event.Source, UNO_QUERY_THROW );
- Reference< XFilterController > xFilterController( _Event.Source, UNO_QUERY_THROW );
+ Reference< XFormController > xController( Event.Source, UNO_QUERY_THROW );
+ Reference< XFilterController > xFilterController( Event.Source, UNO_QUERY_THROW );
Reference< XForm > xForm( xController->getModel(), UNO_QUERY_THROW );
FmFormItem* pFormItem = m_pModel->Find( m_pModel->m_aChildren, xForm );
@@ -394,12 +394,12 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th
FmFilterData* pData = pFormItem->GetChildren()[nActiveTerm];
FmFilterItems& rFilter = dynamic_cast<FmFilterItems&>(*pData);
- FmFilterItem* pFilterItem = rFilter.Find( _Event.FilterComponent );
+ FmFilterItem* pFilterItem = rFilter.Find( Event.FilterComponent );
if ( pFilterItem )
{
- if ( !_Event.PredicateExpression.isEmpty())
+ if ( !Event.PredicateExpression.isEmpty())
{
- pFilterItem->SetText( _Event.PredicateExpression );
+ pFilterItem->SetText( Event.PredicateExpression );
// UI benachrichtigen
FmFilterTextChangedHint aChangeHint(pFilterItem);
m_pModel->Broadcast( aChangeHint );
@@ -413,9 +413,9 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th
else
{
// searching the component by field name
- OUString aFieldName( lcl_getLabelName_nothrow( xFilterController->getFilterComponent( _Event.FilterComponent ) ) );
+ OUString aFieldName( lcl_getLabelName_nothrow( xFilterController->getFilterComponent( Event.FilterComponent ) ) );
- pFilterItem = new FmFilterItem(&rFilter, aFieldName, _Event.PredicateExpression, _Event.FilterComponent);
+ pFilterItem = new FmFilterItem(&rFilter, aFieldName, Event.PredicateExpression, Event.FilterComponent);
m_pModel->Insert(rFilter.GetChildren().end(), pFilterItem);
}
@@ -424,12 +424,12 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th
}
-void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& _Event ) throw (RuntimeException, std::exception)
+void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& Event ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
- Reference< XFormController > xController( _Event.Source, UNO_QUERY_THROW );
- Reference< XFilterController > xFilterController( _Event.Source, UNO_QUERY_THROW );
+ Reference< XFormController > xController( Event.Source, UNO_QUERY_THROW );
+ Reference< XFilterController > xFilterController( Event.Source, UNO_QUERY_THROW );
Reference< XForm > xForm( xController->getModel(), UNO_QUERY_THROW );
FmFormItem* pFormItem = m_pModel->Find( m_pModel->m_aChildren, xForm );
@@ -438,13 +438,13 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& _Event
return;
::std::vector< FmFilterData* >& rTermItems = pFormItem->GetChildren();
- const bool bValidIndex = ( _Event.DisjunctiveTerm >= 0 ) && ( (size_t)_Event.DisjunctiveTerm < rTermItems.size() );
+ const bool bValidIndex = ( Event.DisjunctiveTerm >= 0 ) && ( (size_t)Event.DisjunctiveTerm < rTermItems.size() );
OSL_ENSURE( bValidIndex, "FmFilterAdapter::disjunctiveTermRemoved: invalid term index!" );
if ( !bValidIndex )
return;
// if the first term was removed, then the to-be first term needs its text updated
- if ( _Event.DisjunctiveTerm == 0 )
+ if ( Event.DisjunctiveTerm == 0 )
{
rTermItems[1]->SetText( SVX_RESSTR(RID_STR_FILTER_FILTER_FOR));
FmFilterTextChangedHint aChangeHint( rTermItems[1] );
@@ -452,19 +452,19 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& _Event
}
// finally remove the entry from the model
- m_pModel->Remove( rTermItems.begin() + _Event.DisjunctiveTerm );
+ m_pModel->Remove( rTermItems.begin() + Event.DisjunctiveTerm );
// ensure there's one empty term in the filter, just in case the currently removed one was the last empty one
m_pModel->EnsureEmptyFilterRows( *pFormItem );
}
-void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& _Event ) throw (RuntimeException, std::exception)
+void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& Event ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
- Reference< XFormController > xController( _Event.Source, UNO_QUERY_THROW );
- Reference< XFilterController > xFilterController( _Event.Source, UNO_QUERY_THROW );
+ Reference< XFormController > xController( Event.Source, UNO_QUERY_THROW );
+ Reference< XFilterController > xFilterController( Event.Source, UNO_QUERY_THROW );
Reference< XForm > xForm( xController->getModel(), UNO_QUERY_THROW );
FmFormItem* pFormItem = m_pModel->Find( m_pModel->m_aChildren, xForm );
@@ -472,7 +472,7 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& _Event )
if ( !pFormItem )
return;
- const sal_Int32 nInsertPos = _Event.DisjunctiveTerm;
+ const sal_Int32 nInsertPos = Event.DisjunctiveTerm;
bool bValidIndex = ( nInsertPos >= 0 ) && ( (size_t)nInsertPos <= pFormItem->GetChildren().size() );
if ( !bValidIndex )
{
diff --git a/svx/source/form/fmtools.cxx b/svx/source/form/fmtools.cxx
index 897b3c7ecb0b..daa77a360844 100644
--- a/svx/source/form/fmtools.cxx
+++ b/svx/source/form/fmtools.cxx
@@ -317,13 +317,13 @@ FmXDisposeMultiplexer::~FmXDisposeMultiplexer()
// css::lang::XEventListener
-void FmXDisposeMultiplexer::disposing(const css::lang::EventObject& _Source) throw( RuntimeException, std::exception )
+void FmXDisposeMultiplexer::disposing(const css::lang::EventObject& Source) throw( RuntimeException, std::exception )
{
Reference< css::lang::XEventListener> xPreventDelete(this);
if (m_pListener)
{
- m_pListener->disposing(_Source, m_nId);
+ m_pListener->disposing(Source, m_nId);
m_pListener->setAdapter(nullptr);
m_pListener = nullptr;
}
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index a20630e4f710..a2e1e1c6e9fb 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -246,11 +246,11 @@ Any SAL_CALL FormViewPageWindowAdapter::getByIndex(sal_Int32 nIndex) throw( Inde
return aElement;
}
-void SAL_CALL FormViewPageWindowAdapter::makeVisible( const Reference< XControl >& _Control ) throw (RuntimeException, std::exception)
+void SAL_CALL FormViewPageWindowAdapter::makeVisible( const Reference< XControl >& Control ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aSolarGuard;
- Reference< XWindow > xWindow( _Control, UNO_QUERY );
+ Reference< XWindow > xWindow( Control, UNO_QUERY );
if ( xWindow.is() && m_pViewImpl->getView() && m_pWindow )
{
awt::Rectangle aRect = xWindow->getPosSize();
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 8b09b05952ba..4629ac9fdf22 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -888,15 +888,15 @@ void FormController::fillProperties(
// XFilterController
-void SAL_CALL FormController::addFilterControllerListener( const Reference< XFilterControllerListener >& _Listener ) throw( RuntimeException, std::exception )
+void SAL_CALL FormController::addFilterControllerListener( const Reference< XFilterControllerListener >& Listener ) throw( RuntimeException, std::exception )
{
- m_aFilterListeners.addInterface( _Listener );
+ m_aFilterListeners.addInterface( Listener );
}
-void SAL_CALL FormController::removeFilterControllerListener( const Reference< XFilterControllerListener >& _Listener ) throw( RuntimeException, std::exception )
+void SAL_CALL FormController::removeFilterControllerListener( const Reference< XFilterControllerListener >& Listener ) throw( RuntimeException, std::exception )
{
- m_aFilterListeners.removeInterface( _Listener );
+ m_aFilterListeners.removeInterface( Listener );
}
@@ -918,34 +918,34 @@ void SAL_CALL FormController::removeFilterControllerListener( const Reference< X
}
-void SAL_CALL FormController::setPredicateExpression( ::sal_Int32 _Component, ::sal_Int32 _Term, const OUString& _PredicateExpression ) throw( RuntimeException, IndexOutOfBoundsException, std::exception )
+void SAL_CALL FormController::setPredicateExpression( ::sal_Int32 Component, ::sal_Int32 Term, const OUString& PredicateExpression ) throw( RuntimeException, IndexOutOfBoundsException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
impl_checkDisposed_throw();
- if ( ( _Component < 0 ) || ( _Component >= getFilterComponents() ) || ( _Term < 0 ) || ( _Term >= getDisjunctiveTerms() ) )
+ if ( ( Component < 0 ) || ( Component >= getFilterComponents() ) || ( Term < 0 ) || ( Term >= getDisjunctiveTerms() ) )
throw IndexOutOfBoundsException( OUString(), *this );
- Reference< XTextComponent > xText( m_aFilterComponents[ _Component ] );
- xText->setText( _PredicateExpression );
+ Reference< XTextComponent > xText( m_aFilterComponents[ Component ] );
+ xText->setText( PredicateExpression );
- FmFilterRow& rFilterRow = m_aFilterRows[ _Term ];
- if ( !_PredicateExpression.isEmpty() )
- rFilterRow[ xText ] = _PredicateExpression;
+ FmFilterRow& rFilterRow = m_aFilterRows[ Term ];
+ if ( !PredicateExpression.isEmpty() )
+ rFilterRow[ xText ] = PredicateExpression;
else
rFilterRow.erase( xText );
}
-Reference< XControl > FormController::getFilterComponent( ::sal_Int32 _Component ) throw( RuntimeException, IndexOutOfBoundsException, std::exception )
+Reference< XControl > FormController::getFilterComponent( ::sal_Int32 Component ) throw( RuntimeException, IndexOutOfBoundsException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
impl_checkDisposed_throw();
- if ( ( _Component < 0 ) || ( _Component >= getFilterComponents() ) )
+ if ( ( Component < 0 ) || ( Component >= getFilterComponents() ) )
throw IndexOutOfBoundsException( OUString(), *this );
- return Reference< XControl >( m_aFilterComponents[ _Component ], UNO_QUERY );
+ return Reference< XControl >( m_aFilterComponents[ Component ], UNO_QUERY );
}
@@ -982,17 +982,17 @@ Sequence< Sequence< OUString > > FormController::getPredicateExpressions() throw
}
-void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 _Term ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
+void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 Term ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
{
// SYNCHRONIZED -->
::osl::ClearableMutexGuard aGuard( m_aMutex );
impl_checkDisposed_throw();
- if ( ( _Term < 0 ) || ( _Term >= getDisjunctiveTerms() ) )
+ if ( ( Term < 0 ) || ( Term >= getDisjunctiveTerms() ) )
throw IndexOutOfBoundsException( OUString(), *this );
// if the to-be-deleted row is our current row, we need to shift
- if ( _Term == m_nCurrentFilterPosition )
+ if ( Term == m_nCurrentFilterPosition )
{
if ( m_nCurrentFilterPosition < sal_Int32( m_aFilterRows.size() - 1 ) )
++m_nCurrentFilterPosition;
@@ -1000,11 +1000,11 @@ void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 _Term ) throw (
--m_nCurrentFilterPosition;
}
- FmFilterRows::iterator pos = m_aFilterRows.begin() + _Term;
+ FmFilterRows::iterator pos = m_aFilterRows.begin() + Term;
m_aFilterRows.erase( pos );
// adjust m_nCurrentFilterPosition if the removed row preceded it
- if ( _Term < m_nCurrentFilterPosition )
+ if ( Term < m_nCurrentFilterPosition )
--m_nCurrentFilterPosition;
SAL_WARN_IF( !( ( m_nCurrentFilterPosition < 0 ) != ( m_aFilterRows.empty() ) ),
@@ -1015,7 +1015,7 @@ void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 _Term ) throw (
FilterEvent aEvent;
aEvent.Source = *this;
- aEvent.DisjunctiveTerm = _Term;
+ aEvent.DisjunctiveTerm = Term;
aGuard.clear();
// <-- SYNCHRONIZED
@@ -1043,18 +1043,18 @@ void SAL_CALL FormController::appendEmptyDisjunctiveTerm() throw (RuntimeExcepti
}
-void SAL_CALL FormController::setActiveTerm( ::sal_Int32 _ActiveTerm ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
+void SAL_CALL FormController::setActiveTerm( ::sal_Int32 ActiveTerm ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
impl_checkDisposed_throw();
- if ( ( _ActiveTerm < 0 ) || ( _ActiveTerm >= getDisjunctiveTerms() ) )
+ if ( ( ActiveTerm < 0 ) || ( ActiveTerm >= getDisjunctiveTerms() ) )
throw IndexOutOfBoundsException( OUString(), *this );
- if ( _ActiveTerm == getActiveTerm() )
+ if ( ActiveTerm == getActiveTerm() )
return;
- m_nCurrentFilterPosition = _ActiveTerm;
+ m_nCurrentFilterPosition = ActiveTerm;
impl_setTextOnAllFilter_throw();
}
@@ -2965,17 +2965,17 @@ void SAL_CALL FormController::removeActivateListener(const Reference< XFormContr
}
-void SAL_CALL FormController::addChildController( const Reference< XFormController >& _ChildController ) throw( RuntimeException, IllegalArgumentException, std::exception )
+void SAL_CALL FormController::addChildController( const Reference< XFormController >& ChildController ) throw( RuntimeException, IllegalArgumentException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
impl_checkDisposed_throw();
- if ( !_ChildController.is() )
+ if ( !ChildController.is() )
throw IllegalArgumentException( OUString(), *this, 1 );
// TODO: (localized) error message
// the parent of our (to-be-)child must be our own model
- Reference< XFormComponent > xFormOfChild( _ChildController->getModel(), UNO_QUERY );
+ Reference< XFormComponent > xFormOfChild( ChildController->getModel(), UNO_QUERY );
if ( !xFormOfChild.is() )
throw IllegalArgumentException( OUString(), *this, 1 );
// TODO: (localized) error message
@@ -2984,8 +2984,8 @@ void SAL_CALL FormController::addChildController( const Reference< XFormControll
throw IllegalArgumentException( OUString(), *this, 1 );
// TODO: (localized) error message
- m_aChildren.push_back( _ChildController );
- _ChildController->setParent( *this );
+ m_aChildren.push_back( ChildController );
+ ChildController->setParent( *this );
// search the position of the model within the form
sal_uInt32 nPos = m_xModelAsIndex->getCount();
@@ -2995,7 +2995,7 @@ void SAL_CALL FormController::addChildController( const Reference< XFormControll
m_xModelAsIndex->getByIndex(--nPos) >>= xTemp;
if ( xFormOfChild == xTemp )
{
- m_xModelAsManager->attach( nPos, Reference<XInterface>( _ChildController, UNO_QUERY ), makeAny( _ChildController) );
+ m_xModelAsManager->attach( nPos, Reference<XInterface>( ChildController, UNO_QUERY ), makeAny( ChildController) );
break;
}
}
@@ -4027,11 +4027,11 @@ sal_Bool SAL_CALL FormController::confirmDelete(const RowChangeEvent& aEvent) th
}
-void SAL_CALL FormController::invalidateFeatures( const Sequence< ::sal_Int16 >& _Features ) throw (RuntimeException, std::exception)
+void SAL_CALL FormController::invalidateFeatures( const Sequence< ::sal_Int16 >& Features ) throw (RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
// for now, just copy the ids of the features, because ....
- ::std::copy( _Features.begin(), _Features.end(),
+ ::std::copy( Features.begin(), Features.end(),
::std::insert_iterator< ::std::set< sal_Int16 > >( m_aInvalidFeatures, m_aInvalidFeatures.begin() )
);
diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx
index da0d42ddae28..2d93b6357256 100644
--- a/svx/source/form/formcontrolling.cxx
+++ b/svx/source/form/formcontrolling.cxx
@@ -155,9 +155,9 @@ namespace svx
struct FormFeatureToSlotId : public ::std::unary_function< sal_Int16, sal_Int32 >
{
- sal_Int32 operator()( sal_Int16 _FormFeature )
+ sal_Int32 operator()( sal_Int16 FormFeature )
{
- return FeatureSlotTranslation::getSlotIdForFormFeature( _FormFeature );
+ return FeatureSlotTranslation::getSlotIdForFormFeature( FormFeature );
}
};
}
@@ -385,16 +385,16 @@ namespace svx
}
- void SAL_CALL FormControllerHelper::invalidateFeatures( const Sequence< ::sal_Int16 >& _Features ) throw (RuntimeException, std::exception)
+ void SAL_CALL FormControllerHelper::invalidateFeatures( const Sequence< ::sal_Int16 >& Features ) throw (RuntimeException, std::exception)
{
if ( !m_pInvalidationCallback )
// nobody's interested in ...
return;
- ::std::vector< sal_Int32 > aFeatures( _Features.getLength() );
+ ::std::vector< sal_Int32 > aFeatures( Features.getLength() );
::std::transform(
- _Features.getConstArray(),
- _Features.getConstArray() + _Features.getLength(),
+ Features.getConstArray(),
+ Features.getConstArray() + Features.getLength(),
aFeatures.begin(),
FormFeatureToSlotId()
);
@@ -446,10 +446,10 @@ namespace svx
}
- void SAL_CALL FormControllerHelper::errorOccured( const SQLErrorEvent& _Event ) throw (RuntimeException, std::exception)
+ void SAL_CALL FormControllerHelper::errorOccured( const SQLErrorEvent& Event ) throw (RuntimeException, std::exception)
{
OSL_ENSURE( !m_aOperationError.hasValue(), "FormControllerHelper::errorOccurred: two errors during one operation?" );
- m_aOperationError = _Event.Reason;
+ m_aOperationError = Event.Reason;
}