summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmodel.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 15:39:28 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 15:39:28 +0000
commitaf753013fd3d1aa3851bfa02f7f5ac527605c9e2 (patch)
tree22d55930d8e42a5a966f268bc7e887ded6ccd962 /svx/source/svdraw/svdmodel.cxx
parenta0426e62879c8ed6275138e7640411597e77cdcb (diff)
INTEGRATION: CWS warnings01 (1.62.22); FILE MERGED
2006/05/23 18:46:21 sb 1.62.22.3: RESYNC: (1.62-1.63); FILE MERGED 2006/03/10 16:28:37 aw 1.62.22.2: #i55991# WarningFree changes for unxsol 2006/02/22 20:47:22 aw 1.62.22.1: #i55991# Adaptions to warning free code
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-rw-r--r--svx/source/svdraw/svdmodel.cxx47
1 files changed, 25 insertions, 22 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index c0bb465f31e3..2c1590f24cd3 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svdmodel.cxx,v $
*
- * $Revision: 1.63 $
+ * $Revision: 1.64 $
*
- * last change: $Author: hr $ $Date: 2006-04-19 13:51:45 $
+ * last change: $Author: hr $ $Date: 2006-06-19 16:39:28 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -189,7 +189,7 @@ struct SdrModelImpl
////////////////////////////////////////////////////////////////////////////////////////////////////
-DBG_NAME(SdrModel);
+DBG_NAME(SdrModel)
TYPEINIT1(SdrModel,SfxBroadcaster);
void SdrModel::ImpCtor(SfxItemPool* pPool, SfxObjectShell* pPers,
FASTBOOL bUseExtColorTable, FASTBOOL bLoadRefCounts)
@@ -304,8 +304,8 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, SfxObjectShell* pPers,
}
SdrModel::SdrModel(SfxItemPool* pPool, SfxObjectShell* pPers, sal_Bool bLoadRefCounts):
- maPages(1024,32,32),
- maMaPag(1024,32,32)
+ maMaPag(1024,32,32),
+ maPages(1024,32,32)
{
#ifdef TIMELOG
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "svx", "aw93748", "SdrModel::SdrModel(...)" );
@@ -316,8 +316,8 @@ SdrModel::SdrModel(SfxItemPool* pPool, SfxObjectShell* pPers, sal_Bool bLoadRefC
}
SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, SfxObjectShell* pPers, sal_Bool bLoadRefCounts):
- maPages(1024,32,32),
maMaPag(1024,32,32),
+ maPages(1024,32,32),
aTablePath(rPath)
{
#ifdef TIMELOG
@@ -329,8 +329,8 @@ SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, SfxObjectShell* pPer
}
SdrModel::SdrModel(SfxItemPool* pPool, SfxObjectShell* pPers, FASTBOOL bUseExtColorTable, sal_Bool bLoadRefCounts):
- maPages(1024,32,32),
- maMaPag(1024,32,32)
+ maMaPag(1024,32,32),
+ maPages(1024,32,32)
{
#ifdef TIMELOG
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "svx", "aw93748", "SdrModel::SdrModel(...)" );
@@ -341,8 +341,8 @@ SdrModel::SdrModel(SfxItemPool* pPool, SfxObjectShell* pPers, FASTBOOL bUseExtCo
}
SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, SfxObjectShell* pPers, FASTBOOL bUseExtColorTable, sal_Bool bLoadRefCounts):
- maPages(1024,32,32),
maMaPag(1024,32,32),
+ maPages(1024,32,32),
aTablePath(rPath)
{
#ifdef TIMELOG
@@ -353,9 +353,11 @@ SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, SfxObjectShell* pPer
ImpCtor(pPool,pPers,bUseExtColorTable, (FASTBOOL)bLoadRefCounts);
}
-SdrModel::SdrModel(const SdrModel& rSrcModel):
- maPages(1024,32,32),
- maMaPag(1024,32,32)
+SdrModel::SdrModel(const SdrModel& /*rSrcModel*/):
+ SfxBroadcaster(),
+ tools::WeakBase< SdrModel >(),
+ maMaPag(1024,32,32),
+ maPages(1024,32,32)
{
#ifdef TIMELOG
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "svx", "aw93748", "SdrModel::SdrModel(...)" );
@@ -455,12 +457,12 @@ const SvNumberFormatter& SdrModel::GetNumberFormatter() const
}
// noch nicht implementiert:
-void SdrModel::operator=(const SdrModel& rSrcModel)
+void SdrModel::operator=(const SdrModel& /*rSrcModel*/)
{
DBG_ERROR("SdrModel::operator=() ist noch nicht implementiert");
}
-FASTBOOL SdrModel::operator==(const SdrModel& rCmpModel) const
+FASTBOOL SdrModel::operator==(const SdrModel& /*rCmpModel*/) const
{
DBG_ERROR("SdrModel::operator==() ist noch nicht implementiert");
return FALSE;
@@ -991,7 +993,7 @@ void SdrModel::ImpReformatAllEdgeObjects()
}
}
-SvStream* SdrModel::GetDocumentStream(SdrDocumentStreamInfo& rStreamInfo) const
+SvStream* SdrModel::GetDocumentStream(SdrDocumentStreamInfo& /*rStreamInfo*/) const
{
return NULL;
}
@@ -1063,6 +1065,7 @@ void SdrModel::ImpSetUIUnit()
case MAP_SYSFONT : break;
case MAP_APPFONT : break;
case MAP_RELATIVE : break;
+ default: break;
} // switch
// 1 mile = 8 furlong = 63.360" = 1.609.344,0mm
@@ -1632,24 +1635,24 @@ void SdrModel::CopyPages(USHORT nFirstPageNum, USHORT nLastPageNum,
USHORT nDestNum=nDestPos;
for (nCopyNum=0; nCopyNum<nCopyAnz; nCopyNum++) {
SdrPage* pPg=pPagePtrs[nCopyNum];
- USHORT nPageNum=pPg->GetPageNum();
+ USHORT nPageNum2=pPg->GetPageNum();
if (!bMoveNoCopy) {
- const SdrPage* pPg1=GetPage(nPageNum);
+ const SdrPage* pPg1=GetPage(nPageNum2);
pPg=pPg1->Clone();
InsertPage(pPg,nDestNum);
if (bUndo) AddUndo(GetSdrUndoFactory().CreateUndoCopyPage(*pPg));
nDestNum++;
} else {
// Move ist nicht getestet!
- if (nDestNum>nPageNum) nDestNum--;
- if (bUndo) AddUndo(GetSdrUndoFactory().CreateUndoSetPageNum(*GetPage(nPageNum),nPageNum,nDestNum));
- pPg=RemovePage(nPageNum);
+ if (nDestNum>nPageNum2) nDestNum--;
+ if (bUndo) AddUndo(GetSdrUndoFactory().CreateUndoSetPageNum(*GetPage(nPageNum2),nPageNum2,nDestNum));
+ pPg=RemovePage(nPageNum2);
InsertPage(pPg,nDestNum);
nDestNum++;
}
- if (bReverse) nPageNum--;
- else nPageNum++;
+ if (bReverse) nPageNum2--;
+ else nPageNum2++;
}
delete[] pPagePtrs;