Kaydet (Commit) 4847ef98 authored tarafından Caolán McNamara's avatar Caolán McNamara

drop unused GetViewCenter

üst 4403ef6f
......@@ -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".
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment