summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-07-26 19:15:40 +0200
committerMichael Stahl <mstahl@redhat.com>2013-07-27 00:45:19 +0200
commitc7dd322b3c37d84f6962f9d91a8770d3cb9d4888 (patch)
treeeeb1f82931249cbc356eab624222522632ab8433 /sw
parent8fb210a2ddc0b09288316cf459bebfe196ea94fb (diff)
rename SfxObjectShell::Insert / Remove ...
... to something more unique, and use SAL_OVERRIDE. Change-Id: I0f991870974cad42c86d6af162359dafb475c5aa
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/docsh.hxx8
-rw-r--r--sw/source/ui/app/docsh2.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx
index 08ae99e05275..747576609252 100644
--- a/sw/inc/docsh.hxx
+++ b/sw/inc/docsh.hxx
@@ -200,18 +200,18 @@ public:
virtual SfxStyleSheetBasePool* GetStyleSheetPool();
/// For Organizer.
- virtual sal_Bool Insert(SfxObjectShell &rSource,
+ virtual sal_Bool InsertStuffWithIndexes(SfxObjectShell &rSource,
sal_uInt16 nSourceIdx1,
sal_uInt16 nSourceIdx2,
sal_uInt16 nSourceIdx3,
sal_uInt16& nIdx1,
sal_uInt16& nIdx2,
sal_uInt16& nIdx3,
- sal_uInt16& nRemovedIdx);
+ sal_uInt16& nRemovedIdx) SAL_OVERRIDE;
- virtual sal_Bool Remove(sal_uInt16 nIdx1,
+ virtual sal_Bool RemoveStuffWithIndexes(sal_uInt16 nIdx1,
sal_uInt16 nIdx2 = INDEX_IGNORE,
- sal_uInt16 nIdx3 = INDEX_IGNORE);
+ sal_uInt16 nIdx3 = INDEX_IGNORE) SAL_OVERRIDE;
virtual Bitmap GetStyleFamilyBitmap( SfxStyleFamily eFamily );
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx
index 2123202456ae..87789d1883a5 100644
--- a/sw/source/ui/app/docsh2.cxx
+++ b/sw/source/ui/app/docsh2.cxx
@@ -324,7 +324,7 @@ sal_uInt16 SwDocShell::PrepareClose( sal_Bool bUI, sal_Bool bForBrowsing )
}
// Organizer
-sal_Bool SwDocShell::Insert( SfxObjectShell &rSource,
+sal_Bool SwDocShell::InsertStuffWithIndexes( SfxObjectShell &rSource,
sal_uInt16 nSourceIdx1, // SourcePool: uppermost content level (templates/macros)
sal_uInt16 nSourceIdx2, // Index in the content
sal_uInt16 nSourceIdx3, // Index in the content level
@@ -515,7 +515,7 @@ sal_Bool SwDocShell::Insert( SfxObjectShell &rSource,
bRet = sal_True;
}
else
- bRet = SfxObjectShell::Insert( rSource,
+ bRet = SfxObjectShell::InsertStuffWithIndexes( rSource,
nSourceIdx1,
nSourceIdx2,
nSourceIdx3,
@@ -535,7 +535,7 @@ sal_Bool SwDocShell::Insert( SfxObjectShell &rSource,
}
// template Remove
-sal_Bool SwDocShell::Remove(sal_uInt16 nIdx1, // see Insert
+sal_Bool SwDocShell::RemoveStuffWithIndexes(sal_uInt16 nIdx1, // see Insert
sal_uInt16 nIdx2,
sal_uInt16 nIdx3)
{
@@ -589,7 +589,7 @@ sal_Bool SwDocShell::Remove(sal_uInt16 nIdx1, // see Insert
bRet = sal_True;
}
else
- bRet = SfxObjectShell::Remove( nIdx1,
+ bRet = SfxObjectShell::RemoveStuffWithIndexes( nIdx1,
nIdx2,
nIdx3 );