summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-10-30 07:50:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-01 09:27:23 +0000
commit4847ef98f6a9448c3c4a52eacd8dd540e59fea4e (patch)
tree0d845cdd96225413ec2018fc60349d69f43903f8 /svx
parent4403ef6fa8c680fa230ead3a338fb8343e644461 (diff)
drop unused GetViewCenter
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/svdxcgv.hxx3
-rw-r--r--svx/source/svdraw/svdxcgv.cxx20
2 files changed, 0 insertions, 23 deletions
diff --git a/svx/inc/svx/svdxcgv.hxx b/svx/inc/svx/svdxcgv.hxx
index 90074daf29b5..30fe9df55e14 100644
--- a/svx/inc/svx/svdxcgv.hxx
+++ b/svx/inc/svx/svdxcgv.hxx
@@ -111,9 +111,6 @@ public:
*/
static Graphic GetObjGraphic( const SdrModel* pModel, const SdrObject* pObj );
- // Bestimmung des View-Mittelpunktes, z.B. zum Pasten
- Point GetViewCenter(const OutputDevice* pOut=NULL) const;
-
// Bei allen Paste-Methoden werden die neuen Draw-Objekte markiert.
// Wird der Parameter bAddMark auf sal_True gesetzt, so werden die neuen
// DrawObjekte zu einer bereits bestehenden Selektion "hinzumarkiert".
diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx
index 89b48c61ede0..301958f60838 100644
--- a/svx/source/svdraw/svdxcgv.cxx
+++ b/svx/source/svdraw/svdxcgv.cxx
@@ -72,26 +72,6 @@ SdrExchangeView::SdrExchangeView(SdrModel* pModel1, OutputDevice* pOut):
{
}
-////////////////////////////////////////////////////////////////////////////////////////////////////
-
-Point SdrExchangeView::GetViewCenter(const OutputDevice* pOut) const
-{
- Point aCenter;
- if (pOut==NULL)
- {
- pOut = GetFirstOutputDevice();
- }
- if (pOut!=NULL) {
- Point aOfs=pOut->GetMapMode().GetOrigin();
- Size aOutSiz=pOut->GetOutputSize();
- aOutSiz.Width()/=2;
- aOutSiz.Height()/=2;
- aCenter.X()=aOutSiz.Width() -aOfs.X();
- aCenter.Y()=aOutSiz.Height()-aOfs.Y();
- }
- return aCenter;
-}
-
sal_Bool SdrExchangeView::ImpLimitToWorkArea(Point& rPt) const
{
sal_Bool bRet(sal_False);