Kaydet (Commit) c94b0281 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Tiled rendering: Better way to get the values in the test app.

Change-Id: I8c4b1cc1d6db3b6572bcf6d80e07567f667e975e
üst ee7f141f
......@@ -97,22 +97,16 @@ public:
DECL_LINK ( RenderHdl, Button * );
DECL_LINK ( ChooseDocumentHdl, Button * );
int extractInt(const NumericField *pField)
{
OUString aString(pField->GetText());
return aString.toInt32();
}
};
IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
{
int contextWidth = extractInt(mpContextWidth);
int contextHeight = extractInt(mpContextHeight);
int tilePosX = extractInt(mpTilePosX);
int tilePosY = extractInt(mpTilePosY);
int tileWidth = extractInt(mpTileWidth);
int tileHeight = extractInt(mpTileHeight);
int contextWidth = mpContextWidth->GetValue();
int contextHeight = mpContextHeight->GetValue();
int tilePosX = mpTilePosX->GetValue();
int tilePosY = mpTilePosY->GetValue();
int tileWidth = mpTileWidth->GetValue();
int tileHeight = mpTileHeight->GetValue();
// do the same thing we are doing in touch_lo_draw_tile()
SwWrtShell *pViewShell = GetActiveWrtShell();
......
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