client.cxx (cdf0e10c) client.cxx (079eb148)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 155 unchanged lines hidden (view full) ---

164 DBG_ERROR("Wrong ViewShell");
165 return;
166 }
167
168 // Position und Groesse ins Dokument uebernehmen
169 SdrOle2Obj* pDrawObj = GetDrawObj();
170 if (pDrawObj)
171 {
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 155 unchanged lines hidden (view full) ---

164 DBG_ERROR("Wrong ViewShell");
165 return;
166 }
167
168 // Position und Groesse ins Dokument uebernehmen
169 SdrOle2Obj* pDrawObj = GetDrawObj();
170 if (pDrawObj)
171 {
172 pDrawObj->SetLogicRect( GetScaledObjArea() );
172 Rectangle aNewRectangle(GetScaledObjArea());
173
173
174 // #i118524# if sheared/rotated, center to non-rotated LogicRect
175 pDrawObj->setSuppressSetVisAreaSize(true);
176
177 if(pDrawObj->GetGeoStat().nDrehWink || pDrawObj->GetGeoStat().nShearWink)
178 {
179 pDrawObj->SetLogicRect( aNewRectangle );
180
181 const Rectangle& rBoundRect = pDrawObj->GetCurrentBoundRect();
182 const Point aDelta(aNewRectangle.Center() - rBoundRect.Center());
183
184 aNewRectangle.Move(aDelta.X(), aDelta.Y());
185 }
186
187 pDrawObj->SetLogicRect( aNewRectangle );
188 pDrawObj->setSuppressSetVisAreaSize(false);
189
174 // set document modified (SdrModel::SetChanged is not used)
175 // TODO/LATER: is there a reason that this code is not executed in Draw?
176// SfxViewShell* pSfxViewSh = GetViewShell();
177// ScTabViewShell* pViewSh = PTR_CAST( ScTabViewShell, pSfxViewSh );
178 if (pViewSh)
179 pViewSh->GetViewData()->GetDocShell()->SetDrawModified();
180 }
181

--- 75 unchanged lines hidden ---
190 // set document modified (SdrModel::SetChanged is not used)
191 // TODO/LATER: is there a reason that this code is not executed in Draw?
192// SfxViewShell* pSfxViewSh = GetViewShell();
193// ScTabViewShell* pViewSh = PTR_CAST( ScTabViewShell, pSfxViewSh );
194 if (pViewSh)
195 pViewSh->GetViewData()->GetDocShell()->SetDrawModified();
196 }
197

--- 75 unchanged lines hidden ---