Kaydet (Commit) 4f658bf3 authored tarafından Henry Castro's avatar Henry Castro Kaydeden (comit) Miklos Vajna

sc tiled editing: using function GetPrintArea to calculate document size.

GetPrintArea calculate end column and end row including images.

Change-Id: I256f9f1ce72f22b25cec63603de55cc0192b33ad
üst a7f1ec6d
...@@ -507,11 +507,15 @@ Size ScModelObj::getDocumentSize() ...@@ -507,11 +507,15 @@ Size ScModelObj::getDocumentSize()
return aSize; return aSize;
SCTAB nTab = pViewData->GetTabNo(); SCTAB nTab = pViewData->GetTabNo();
SCCOL nEndCol = 0;
SCROW nEndRow = 0;
const ScDocument& rDoc = pDocShell->GetDocument(); const ScDocument& rDoc = pDocShell->GetDocument();
ScAddress aPos = rDoc.GetLastDataPos(nTab);
if (!aPos.IsValid()) if (!rDoc.GetPrintArea( nTab, nEndCol, nEndRow, false ))
return aSize; return aSize;
ScAddress aPos( nEndCol, nEndRow, nTab );
// TWIPS // TWIPS
sal_uLong nH = rDoc.GetRowHeight(0, aPos.Row(), nTab, true); sal_uLong nH = rDoc.GetRowHeight(0, aPos.Row(), nTab, true);
sal_uLong nW = rDoc.GetColWidth(0, aPos.Col(), nTab, true); sal_uLong nW = rDoc.GetColWidth(0, aPos.Col(), nTab, true);
......
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