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