Kaydet (Commit) 6b6088fa authored tarafından Ptyl Dragon's avatar Ptyl Dragon Kaydeden (comit) Jan Holesovsky

1st implementation of touch_lo_get_content_size

Change-Id: I8b72c4366b502a71f2ed3bf917296c9553364d83
üst 8d56ce89
......@@ -59,6 +59,9 @@
self.tester.params.tileHeight);
CGContextRestoreGState(context);
MLOContentSize size = touch_lo_get_content_size();
NSLog(@"MLOContentSize: width=%lld, height=%lld",size.width, size.height);
}
@end
......@@ -1821,6 +1821,11 @@ MLOContentSize touch_lo_get_content_size()
SwWrtShell *pViewShell = GetActiveWrtShell();
if (pViewShell)
{
static const long WIDTH_ADDITION = 6L * DOCUMENTBORDER;
static const long HEIGHT_ADDITION = 2L * DOCUMENTBORDER;
Size documentSize =pViewShell->GetView().GetDocSz();
return MLOContentSizeMake(documentSize.Width() + WIDTH_ADDITION,
documentSize.Height() + HEIGHT_ADDITION);
}
return MLOContentSizeMake(0,0);
}
......
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