Kaydet (Commit) 6a5f3ff7 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Tiled rendering, first cut.

Very simple, without zooming.

Change-Id: Ia5bd5c02dab3eedbaad07ebd81c4d7fe3c6a00c1
üst 8a0a1fbf
...@@ -877,13 +877,33 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, ...@@ -877,13 +877,33 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
int nTilePosX, int nTilePosY, int nTilePosX, int nTilePosY,
long nTileWidth, long nTileHeight ) long nTileWidth, long nTileHeight )
{ {
(void) rDevice; // Output size is in pixels while tile position and size are in logical units (twips).
(void) nOutputWidth;
(void) nOutputHeight; // Assumption: always paint the whole sheet i.e. "visible" range is always
(void) nTilePosX; // from (0,0) to last data position.
(void) nTilePosY;
(void) nTileWidth; SCTAB nTab = pViewData->GetTabNo();
(void) nTileHeight; ScDocument* pDoc = pViewData->GetDocument();
ScAddress aLastPos = pDoc->GetLastDataPos(nTab);
SCCOL nCol1 = 0, nCol2 = aLastPos.Col();
SCROW nRow1 = 0, nRow2 = aLastPos.Row();
double fPPTX = pViewData->GetPPTX();
double fPPTY = pViewData->GetPPTY();
ScTableInfo aTabInfo;
pDoc->FillInfo(aTabInfo, nCol1, nRow1, nCol2, nRow2, nTab, fPPTX, fPPTY, false, false, NULL);
ScOutputData aOutData(
&rDevice, OUTTYPE_WINDOW, aTabInfo, pDoc, nTab, 0, 0, nCol1, nRow1, nCol2, nRow2, fPPTX, fPPTY);
aOutData.DrawGrid(true, false);
aOutData.DrawShadow();
aOutData.DrawFrame();
aOutData.DrawStrings(true);
aOutData.DrawEdit(true);
} }
void ScGridWindow::CheckNeedsRepaint() void ScGridWindow::CheckNeedsRepaint()
......
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