summaryrefslogtreecommitdiffstats
path: root/reportdesign/source/core/sdr/UndoEnv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/core/sdr/UndoEnv.cxx')
-rw-r--r--reportdesign/source/core/sdr/UndoEnv.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/reportdesign/source/core/sdr/UndoEnv.cxx b/reportdesign/source/core/sdr/UndoEnv.cxx
index 780113958495..70f132d63cdf 100644
--- a/reportdesign/source/core/sdr/UndoEnv.cxx
+++ b/reportdesign/source/core/sdr/UndoEnv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,7 +87,7 @@ public:
::osl::Mutex m_aMutex;
::std::vector< uno::Reference< container::XChild> > m_aSections;
oslInterlockedCount m_nLocks;
- sal_Bool m_bReadOnly;
+ sal_Bool m_bReadOnly;
sal_Bool m_bIsUndo;
OXUndoEnvironmentImpl(OReportModel& _rModel);
@@ -118,16 +118,16 @@ OXUndoEnvironment::~OXUndoEnvironment()
DBG_DTOR( rpt_OXUndoEnvironment,NULL);
}
// -----------------------------------------------------------------------------
-void OXUndoEnvironment::Lock()
-{
+void OXUndoEnvironment::Lock()
+{
OSL_ENSURE(m_refCount,"Illegal call to dead object!");
- osl_incrementInterlockedCount( &m_pImpl->m_nLocks );
+ osl_incrementInterlockedCount( &m_pImpl->m_nLocks );
}
-void OXUndoEnvironment::UnLock()
-{
+void OXUndoEnvironment::UnLock()
+{
OSL_ENSURE(m_refCount,"Illegal call to dead object!");
- osl_decrementInterlockedCount( &m_pImpl->m_nLocks );
+ osl_decrementInterlockedCount( &m_pImpl->m_nLocks );
}
sal_Bool OXUndoEnvironment::IsLocked() const { return m_pImpl->m_nLocks != 0; }
// -----------------------------------------------------------------------------
@@ -174,7 +174,7 @@ void OXUndoEnvironment::Clear(const Accessor& /*_r*/)
{
OReportPage* pPage = PTR_CAST( OReportPage, m_pImpl->m_rModel.GetMasterPage(i) );
RemoveSection(pPage);
- }
+ }
m_pImpl->m_aSections.clear();
@@ -200,7 +200,7 @@ void OXUndoEnvironment::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
ModeChanged();
}
// -----------------------------------------------------------------------------
-// XEventListener
+// XEventListener
//------------------------------------------------------------------------------
void SAL_CALL OXUndoEnvironment::disposing(const EventObject& e) throw( RuntimeException )
{
@@ -236,7 +236,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
if ( !pController )
return;
- // no Undo for transient and readonly props.
+ // no Undo for transient and readonly props.
// let's see if we know something about the set
#if OSL_DEBUG_LEVEL > 0
int nlen = m_pImpl->m_aPropertySetCache.size();
@@ -257,7 +257,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
AllProperties& rPropInfos = aSetPos->second;
AllPropertiesIterator aPropertyPos = rPropInfos.find( _rEvent.PropertyName );
if (aPropertyPos == rPropInfos.end())
- { // nothing 'til now ... have to change this ....
+ { // nothing 'til now ... have to change this ....
// the attributes
INT32 nAttributes = xSet->getPropertySetInfo()->getPropertyByName( _rEvent.PropertyName ).Attributes;
bool bTransReadOnly = ((nAttributes & PropertyAttribute::READONLY) != 0) || ((nAttributes & PropertyAttribute::TRANSIENT) != 0);
@@ -316,7 +316,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
if ( _xContainer.is() )
{
aFind = ::std::find(m_pImpl->m_aSections.begin(),m_pImpl->m_aSections.end(),_xContainer);
-
+
if ( aFind == m_pImpl->m_aSections.end() )
{
Reference<container::XChild> xParent(_xContainer->getParent(),uno::UNO_QUERY);
@@ -342,7 +342,7 @@ void SAL_CALL OXUndoEnvironment::elementInserted(const ContainerEvent& evt) thro
Reference< report::XSection > xContainer(evt.Source,uno::UNO_QUERY);
::std::vector< uno::Reference< container::XChild> >::const_iterator aFind = getSection(xContainer.get());
-
+
if ( aFind != m_pImpl->m_aSections.end() )
{
OUndoEnvLock aLock(*this);
@@ -357,7 +357,7 @@ void SAL_CALL OXUndoEnvironment::elementInserted(const ContainerEvent& evt) thro
{
DBG_UNHANDLED_EXCEPTION();
}
-
+
}
}
else
@@ -414,7 +414,7 @@ void SAL_CALL OXUndoEnvironment::elementRemoved(const ContainerEvent& evt) throw
{
Reference< report::XSection > xContainer(evt.Source,uno::UNO_QUERY);
::std::vector< uno::Reference< container::XChild> >::const_iterator aFind = getSection(xContainer.get());
-
+
Reference< report::XReportComponent > xReportComponent( xIface, UNO_QUERY );
if ( aFind != m_pImpl->m_aSections.end() && xReportComponent.is() )
{
@@ -445,7 +445,7 @@ void SAL_CALL OXUndoEnvironment::elementRemoved(const ContainerEvent& evt) throw
}
}
}
-
+
if ( xIface.is() )
RemoveElement(xIface);