summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-03-28 22:27:52 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-03-29 05:05:24 +0000
commit02fb3fd0533222dfea5b6b9232425a5e28cd340f (patch)
tree91a5aee0f427afb54db3d05527f8431021d6c925 /reportdesign/source/ui
parent691105cb718591fd8e7b78a44e527ba62c997a09 (diff)
Use const_iterator when possible (reportdesign)
Change-Id: I2695fdf64670f4df844c1362a84af83f48fc29be Reviewed-on: https://gerrit.libreoffice.org/23575 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'reportdesign/source/ui')
-rw-r--r--reportdesign/source/ui/dlg/GroupsSorting.cxx16
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx6
-rw-r--r--reportdesign/source/ui/misc/RptUndo.cxx4
-rw-r--r--reportdesign/source/ui/misc/toolboxcontroller.cxx2
-rw-r--r--reportdesign/source/ui/report/DesignView.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx14
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx4
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx84
8 files changed, 66 insertions, 66 deletions
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx
index 990277a36f78..37b608b6fcc4 100644
--- a/reportdesign/source/ui/dlg/GroupsSorting.cxx
+++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx
@@ -458,7 +458,7 @@ bool OFieldExpressionControl::SaveModified(bool _bAppendRow)
// find position where to insert the new group
sal_Int32 nGroupPos = 0;
::std::vector<sal_Int32>::iterator aIter = m_aGroupPositions.begin();
- ::std::vector<sal_Int32>::iterator aEnd = m_aGroupPositions.begin() + nRow;
+ ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.begin() + nRow;
for(;aIter != aEnd;++aIter)
if ( *aIter != NO_GROUP )
nGroupPos = *aIter + 1;
@@ -651,7 +651,7 @@ void SAL_CALL OFieldExpressionControl::elementInserted(const container::Containe
else
*aFind = nGroupPos;
- ::std::vector<sal_Int32>::iterator aEnd = m_aGroupPositions.end();
+ ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.end();
for(++aFind;aFind != aEnd;++aFind)
if ( *aFind != NO_GROUP )
++*aFind;
@@ -673,10 +673,10 @@ void SAL_CALL OFieldExpressionControl::elementRemoved(const container::Container
if ( evt.Accessor >>= nGroupPos )
{
::std::vector<sal_Int32>::iterator aFind = ::std::find(m_aGroupPositions.begin(),m_aGroupPositions.end(),nGroupPos);
- if ( aFind != m_aGroupPositions.end() )
+ ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.end();
+ if (aFind != aEnd)
{
*aFind = NO_GROUP;
- ::std::vector<sal_Int32>::iterator aEnd = m_aGroupPositions.end();
for(++aFind;aFind != aEnd;++aFind)
if ( *aFind != NO_GROUP )
--*aFind;
@@ -797,10 +797,10 @@ void OFieldExpressionControl::DeleteRows()
m_pParent->m_pController->executeChecked(SID_GROUP_REMOVE,aArgs);
::std::vector<sal_Int32>::iterator aFind = ::std::find(m_aGroupPositions.begin(),m_aGroupPositions.end(),nGroupPos);
- if (aFind != m_aGroupPositions.end())
+ ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.end();
+ if (aFind != aEnd)
{
*aFind = NO_GROUP;
- ::std::vector<sal_Int32>::iterator aEnd = m_aGroupPositions.end();
for(++aFind;aFind != aEnd;++aFind)
if ( *aFind != NO_GROUP )
--*aFind;
@@ -900,7 +900,7 @@ void OFieldExpressionControl::InsertRows( long nRow )
::std::vector<sal_Int32>::size_type nRowPos = static_cast< ::std::vector<sal_Int32>::size_type >(nRow);
if ( nRowPos < m_aGroupPositions.size() )
{
- ::std::vector<sal_Int32>::iterator aEnd = m_aGroupPositions.begin() + nRowPos;
+ ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.begin() + nRowPos;
for(;aIter != aEnd;++aIter)
{
if ( *aIter != NO_GROUP )
@@ -919,7 +919,7 @@ void OFieldExpressionControl::InsertRows( long nRow )
::std::vector<sal_Int32>::iterator aInsertPos = m_aGroupPositions.insert(aIter,nGroupPos);
++aInsertPos;
aIter = aInsertPos;
- ::std::vector<sal_Int32>::iterator aEnd = m_aGroupPositions.end();
+ ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.end();
for(;aInsertPos != aEnd;++aInsertPos)
if ( *aInsertPos != NO_GROUP )
++*aInsertPos;
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index ab49ccf40aa7..44d457a26f88 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -1070,7 +1070,7 @@ uno::Any SAL_CALL GeometryHandler::convertToPropertyValue(const OUString & Prope
_rControlValue >>= sValue;
::std::vector< OUString > aList;
tools::StringListResource aRes(ModuleRes(RID_STR_TYPE_CONST),aList);
- ::std::vector< OUString >::iterator aFind = ::std::find(aList.begin(),aList.end(),sValue);
+ ::std::vector< OUString >::const_iterator aFind = ::std::find(aList.begin(),aList.end(),sValue);
if ( aFind != aList.end() )
aPropertyValue <<= static_cast<sal_uInt32>(aFind - aList.begin());
}
@@ -1084,7 +1084,7 @@ uno::Any SAL_CALL GeometryHandler::convertToPropertyValue(const OUString & Prope
_rControlValue >>= sValue;
::std::vector< OUString > aList;
tools::StringListResource aRes(ModuleRes(RID_STR_VERTICAL_ALIGN_CONST),aList);
- ::std::vector< OUString >::iterator aFind = ::std::find(aList.begin(),aList.end(),sValue);
+ ::std::vector< OUString >::const_iterator aFind = ::std::find(aList.begin(),aList.end(),sValue);
if ( aFind != aList.end() )
aPropertyValue <<= static_cast<style::VerticalAlignment>(aFind - aList.begin());
}
@@ -1095,7 +1095,7 @@ uno::Any SAL_CALL GeometryHandler::convertToPropertyValue(const OUString & Prope
_rControlValue >>= sValue;
::std::vector< OUString > aList;
tools::StringListResource aRes(ModuleRes(RID_STR_PARAADJUST_CONST),aList);
- ::std::vector< OUString >::iterator aFind = ::std::find(aList.begin(),aList.end(),sValue);
+ ::std::vector< OUString >::const_iterator aFind = ::std::find(aList.begin(),aList.end(),sValue);
if ( aFind != aList.end() )
aPropertyValue <<= static_cast<sal_Int16>(aFind - aList.begin());
}
diff --git a/reportdesign/source/ui/misc/RptUndo.cxx b/reportdesign/source/ui/misc/RptUndo.cxx
index 18b423a6dd96..8f6157776a74 100644
--- a/reportdesign/source/ui/misc/RptUndo.cxx
+++ b/reportdesign/source/ui/misc/RptUndo.cxx
@@ -127,8 +127,8 @@ OSectionUndo::~OSectionUndo()
if ( !m_bInserted )
{
OXUndoEnvironment& rEnv = static_cast< OReportModel& >( rMod ).GetUndoEnv();
- ::std::vector< uno::Reference< drawing::XShape> >::iterator aEnd = m_aControls.end();
- for (::std::vector< uno::Reference< drawing::XShape> >::iterator aIter = m_aControls.begin(); aIter != aEnd; ++aIter)
+ ::std::vector< uno::Reference< drawing::XShape> >::const_iterator aEnd = m_aControls.end();
+ for (::std::vector< uno::Reference< drawing::XShape> >::const_iterator aIter = m_aControls.begin(); aIter != aEnd; ++aIter)
{
uno::Reference< drawing::XShape> xShape = *aIter;
rEnv.RemoveElement(xShape);
diff --git a/reportdesign/source/ui/misc/toolboxcontroller.cxx b/reportdesign/source/ui/misc/toolboxcontroller.cxx
index 95eaccae5092..96c3ad08cb48 100644
--- a/reportdesign/source/ui/misc/toolboxcontroller.cxx
+++ b/reportdesign/source/ui/misc/toolboxcontroller.cxx
@@ -155,7 +155,7 @@ void SAL_CALL OToolboxController::initialize( const Sequence< Any >& _rArguments
m_pToolbarController = new SvxColorToolBoxControl(m_nSlotId = SID_BACKGROUND_COLOR,m_nToolBoxId,*pToolBox);
}
- TCommandState::iterator aIter = m_aStates.begin();
+ TCommandState::const_iterator aIter = m_aStates.begin();
for (; aIter != m_aStates.end(); ++aIter)
addStatusListener(aIter->first);
diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx
index f2b1fd4834a6..ed030a2c4cf6 100644
--- a/reportdesign/source/ui/report/DesignView.cxx
+++ b/reportdesign/source/ui/report/DesignView.cxx
@@ -635,7 +635,7 @@ uno::Any ODesignView::getCurrentlyShownProperty() const
pSectionWindow->getReportSection().fillControlModelSelection(aSelection);
if ( !aSelection.empty() )
{
- ::std::vector< uno::Reference< uno::XInterface > >::iterator aIter = aSelection.begin();
+ ::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aSelection.begin();
uno::Sequence< uno::Reference< report::XReportComponent > > aSeq(aSelection.size());
for(sal_Int32 i = 0; i < aSeq.getLength(); ++i,++aIter)
{
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 579fbb911a01..661e012195aa 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -904,7 +904,7 @@ FeatureState OReportController::GetState(sal_uInt16 _nId) const
{
::std::vector< uno::Reference< uno::XInterface > > aSelection;
getDesignView()->fillControlModelSelection(aSelection);
- ::std::vector< uno::Reference< uno::XInterface > >::iterator aIter = aSelection.begin();
+ ::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aSelection.begin();
for(; aIter != aSelection.end()
&& !uno::Reference< report::XFixedLine >(*aIter,uno::UNO_QUERY).is()
&& !uno::Reference< report::XImageControl >(*aIter,uno::UNO_QUERY).is()
@@ -1451,7 +1451,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
const OUString sUndoAction(ModuleRes(RID_STR_UNDO_CHANGEFONT));
UndoContext aUndoContext( getUndoManager(), sUndoAction );
- ::std::vector< uno::Reference< uno::XInterface > >::iterator aIter = aControlsFormats.begin();
+ ::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aControlsFormats.begin();
for(; aIter != aControlsFormats.end();++aIter)
{
uno::Reference< report::XReportControlFormat> xReportControlFormat(*aIter,uno::UNO_QUERY);
@@ -1528,7 +1528,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
const OUString sUndoAction( ModuleRes( RID_STR_UNDO_CHANGEFONT ) );
UndoContext aUndoContext( getUndoManager(), sUndoAction );
- ::std::vector< uno::Reference< uno::XInterface > >::iterator aIter = aControlsFormats.begin();
+ ::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aControlsFormats.begin();
for(; aIter != aControlsFormats.end();++aIter)
{
uno::Reference< report::XReportControlFormat > xFormat( *aIter, uno::UNO_QUERY );
@@ -2764,8 +2764,8 @@ uno::Any SAL_CALL OReportController::getViewData() throw( uno::RuntimeException,
{
uno::Sequence<beans::PropertyValue> aCollapsedSections(aCollapsedPositions.size());
beans::PropertyValue* pCollapsedIter = aCollapsedSections.getArray();
- ::std::vector<sal_uInt16>::iterator aIter = aCollapsedPositions.begin();
- ::std::vector<sal_uInt16>::iterator aEnd = aCollapsedPositions.end();
+ ::std::vector<sal_uInt16>::const_iterator aIter = aCollapsedPositions.begin();
+ ::std::vector<sal_uInt16>::const_iterator aEnd = aCollapsedPositions.end();
for (sal_Int32 i = 1; aIter != aEnd ; ++aIter,++pCollapsedIter,++i)
{
pCollapsedIter->Name = PROPERTY_SECTION + OUString::number(i);
@@ -4106,7 +4106,7 @@ void OReportController::impl_fillState_nothrow(const OUString& _sProperty,dbaui:
if ( _rState.bEnabled )
{
uno::Any aTemp;
- ::std::vector< uno::Reference< uno::XInterface > >::iterator aIter = aSelection.begin();
+ ::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aSelection.begin();
for(; aIter != aSelection.end() && _rState.bEnabled ;++aIter)
{
uno::Reference< beans::XPropertySet> xProp(*aIter,uno::UNO_QUERY);
@@ -4176,7 +4176,7 @@ bool OReportController::impl_setPropertyAtControls_throw(const sal_uInt16 _nUndo
::std::vector< uno::Reference< uno::XInterface > > aSelection;
uno::Reference< awt::XWindow> xWindow;
lcl_getReportControlFormat( _aArgs, getDesignView(), xWindow, aSelection );
- ::std::vector< uno::Reference< uno::XInterface > >::iterator aIter = aSelection.begin();
+ ::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aSelection.begin();
const OUString sUndoAction = ModuleRes( _nUndoResId );
UndoContext aUndoContext( getUndoManager(), sUndoAction );
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 3e87c0f64da8..45665663c3d9 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -629,8 +629,8 @@ void OReportSection::createDefault(const OUString& _sType,SdrObject* _pObj)
std::vector< OUString > aObjList;
if ( GalleryExplorer::FillObjListTitle( GALLERY_THEME_POWERPOINT, aObjList ) )
{
- std::vector< OUString >::iterator aIter = aObjList.begin();
- std::vector< OUString >::iterator aEnd = aObjList.end();
+ std::vector< OUString >::const_iterator aIter = aObjList.begin();
+ std::vector< OUString >::const_iterator aEnd = aObjList.end();
for (sal_uInt32 i=0 ; aIter != aEnd; ++aIter,++i)
{
if ( aIter->equalsIgnoreAsciiCase( _sType ) )
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index 1520e97fa450..0baafc13f727 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -223,8 +223,8 @@ void OViewsWindow::resize(const OSectionWindow& _rSectionWindow)
{
bool bSet = false;
Point aStartPoint;
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (;aIter != aEnd ; ++aIter)
{
OSectionWindow* pSectionWindow = (*aIter);
@@ -252,8 +252,8 @@ void OViewsWindow::Resize()
{
const Point aOffset(m_pParent->getThumbPos());
Point aStartPoint(0,-aOffset.Y());
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (;aIter != aEnd ; ++aIter)
{
OSectionWindow* pSectionWindow = (*aIter);
@@ -312,7 +312,7 @@ void OViewsWindow::removeSection(sal_uInt16 _nPosition)
if ( _nPosition < m_aSections.size() )
{
TSectionsMap::iterator aPos = getIteratorAtPos(_nPosition);
- TSectionsMap::iterator aNew = getIteratorAtPos(_nPosition == 0 ? _nPosition+1: _nPosition - 1);
+ TSectionsMap::const_iterator aNew = getIteratorAtPos(_nPosition == 0 ? _nPosition+1: _nPosition - 1);
m_pParent->getReportView()->UpdatePropertyBrowserDelayed((*aNew)->getReportSection().getSectionView());
@@ -353,8 +353,8 @@ sal_uInt16 OViewsWindow::getSectionCount() const
void OViewsWindow::SetInsertObj( sal_uInt16 eObj,const OUString& _sShapeType )
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (;aIter != aEnd ; ++aIter)
(*aIter)->getReportSection().getSectionView().SetCurrentObj( eObj, ReportInventor );
@@ -523,8 +523,8 @@ void OViewsWindow::unmarkAllObjects(OSectionView* _pSectionView)
if ( !m_bInUnmark )
{
m_bInUnmark = true;
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd ; ++aIter)
{
if ( &(*aIter)->getReportSection().getSectionView() != _pSectionView )
@@ -570,8 +570,8 @@ void OViewsWindow::MouseButtonUp( const MouseEvent& rMEvt )
{
if ( rMEvt.IsLeft() )
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (;aIter != aEnd ; ++aIter)
{
if ( (*aIter)->getReportSection().getSectionView().AreObjectsMarked() )
@@ -592,8 +592,8 @@ void OViewsWindow::MouseButtonUp( const MouseEvent& rMEvt )
bool OViewsWindow::handleKeyEvent(const KeyEvent& _rEvent)
{
bool bRet = false;
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (;aIter != aEnd ; ++aIter)
{
if ( (*aIter)->getStartMarker().isMarked() )
@@ -621,8 +621,8 @@ void OViewsWindow::setMarked(OSectionView* _pSectionView, bool _bMark)
void OViewsWindow::setMarked(const uno::Reference< report::XSection>& _xSection, bool _bMark)
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd ; ++aIter)
{
if ( (*aIter)->getReportSection().getSection() != _xSection )
@@ -666,8 +666,8 @@ void OViewsWindow::setMarked(const uno::Sequence< uno::Reference< report::XRepor
void OViewsWindow::collectRectangles(TRectangleMap& _rSortRectangles)
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (aIter = m_aSections.begin();aIter != aEnd ; ++aIter)
{
OSectionView& rView = (*aIter)->getReportSection().getSectionView();
@@ -790,8 +790,8 @@ void OViewsWindow::alignMarkedObjects(sal_Int32 _nControlModification,bool _bAli
::std::mem_fun_t<long&,Rectangle> aGetFun = ::std::mem_fun<long&,Rectangle>(&Rectangle::Bottom);
::std::mem_fun_t<long&,Rectangle> aRefFun = ::std::mem_fun<long&,Rectangle>(&Rectangle::Top);
- TRectangleMap::iterator aRectIter = aSortRectangles.begin();
- TRectangleMap::iterator aRectEnd = aSortRectangles.end();
+ TRectangleMap::const_iterator aRectIter = aSortRectangles.begin();
+ TRectangleMap::const_iterator aRectEnd = aSortRectangles.end();
for (;aRectIter != aRectEnd ; ++aRectIter)
{
Rectangle aObjRect = aRectIter->first;
@@ -841,7 +841,7 @@ void OViewsWindow::alignMarkedObjects(sal_Int32 _nControlModification,bool _bAli
{
Rectangle aTest = aObjRect;
aGetFun(&aTest) = aGetFun(&aBound);
- TRectangleMap::iterator aInterSectRectIter = aSortRectangles.begin();
+ TRectangleMap::const_iterator aInterSectRectIter = aSortRectangles.begin();
for (; aInterSectRectIter != aRectIter; ++aInterSectRectIter)
{
if ( pView == aInterSectRectIter->second.second && (dynamic_cast<OUnoObject*>(aInterSectRectIter->second.first) || dynamic_cast<OOle2Obj*>(aInterSectRectIter->second.first)))
@@ -915,8 +915,8 @@ void OViewsWindow::createDefault()
void OViewsWindow::setGridSnap(bool bOn)
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd ; ++aIter)
{
(*aIter)->getReportSection().getSectionView().SetGridSnap(bOn);
@@ -926,8 +926,8 @@ void OViewsWindow::setGridSnap(bool bOn)
void OViewsWindow::setDragStripes(bool bOn)
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd ; ++aIter)
(*aIter)->getReportSection().getSectionView().SetDragStripes(bOn);
}
@@ -1020,8 +1020,8 @@ void OViewsWindow::BrkAction()
void OViewsWindow::BegDragObj_createInvisibleObjectAtPosition(const Rectangle& _aRect, const OSectionView& _rSection)
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
Point aNewPos(0,0);
for (; aIter != aEnd; ++aIter)
@@ -1063,8 +1063,8 @@ void OViewsWindow::BegDragObj(const Point& _aPnt, SdrHdl* _pHdl,const OSectionVi
// Calculate the absolute clickpoint in the views
Point aAbsolutePnt = _aPnt;
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd; ++aIter)
{
OReportSection& rReportSection = (*aIter)->getReportSection();
@@ -1171,8 +1171,8 @@ void OViewsWindow::BegMarkObj(const Point& _aPnt,const OSectionView* _pSection)
bool bAdd = true;
Point aNewPos = _aPnt;
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
long nLastSectionHeight = 0;
for (; aIter != aEnd; ++aIter)
{
@@ -1200,8 +1200,8 @@ OSectionView* OViewsWindow::getSectionRelativeToPosition(const OSectionView* _pS
{
OSectionView* pSection = nullptr;
sal_Int32 nCount = 0;
- TSectionsMap::iterator aIter = m_aSections.begin();
- const TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ const TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd ; ++aIter,++nCount)
{
OReportSection& rReportSection = (*aIter)->getReportSection();
@@ -1247,8 +1247,8 @@ OSectionView* OViewsWindow::getSectionRelativeToPosition(const OSectionView* _pS
void OViewsWindow::EndDragObj_removeInvisibleObjects()
{
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd; ++aIter)
{
@@ -1274,8 +1274,8 @@ void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSe
aNewPos -= m_aDragDelta;
uno::Sequence< beans::NamedValue > aAllreadyCopiedObjects;
- TSectionsMap::iterator aIter = m_aSections.begin();
- const TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ const TSectionsMap::const_iterator aEnd = m_aSections.end();
for (; aIter != aEnd; ++aIter)
{
OReportSection& rReportSection = (*aIter)->getReportSection();
@@ -1384,8 +1384,8 @@ void OViewsWindow::MovAction(const Point& _aPnt,const OSectionView* _pSection,bo
aHdlPos = pHdl->GetPos();
}
- TSectionsMap::iterator aIter;
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter;
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (aIter = m_aSections.begin(); aIter != aEnd; ++aIter)
{
@@ -1729,8 +1729,8 @@ void OViewsWindow::zoom(const Fraction& _aZoom)
setZoomFactor(_aZoom,*this);
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (;aIter != aEnd ; ++aIter)
{
(*aIter)->zoom(_aZoom);
@@ -1761,8 +1761,8 @@ void OViewsWindow::scrollChildren(const Point& _aThumbPos)
Scroll(0, -( aOld.Y() + aPosY.Y()),ScrollFlags::Children);
}
- TSectionsMap::iterator aIter = m_aSections.begin();
- TSectionsMap::iterator aEnd = m_aSections.end();
+ TSectionsMap::const_iterator aIter = m_aSections.begin();
+ TSectionsMap::const_iterator aEnd = m_aSections.end();
for (;aIter != aEnd ; ++aIter)
{
(*aIter)->scrollChildren(aPos.X());