diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-10-23 13:19:11 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-15 16:51:49 +0100 |
commit | dcf897cbcd6dc7d9e5d8416860bd190b60f20843 (patch) | |
tree | fe70b145a6098c5d74a0e92cb7bdb4c21b938295 /sw/qa | |
parent | 8b853bde21ca26a44207f791d9ef8f07f1202f6a (diff) |
Cosmetics.
Change-Id: I9811c981c445222a888b1efd8c1666a60bd25dad
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/tiledrendering/tiledrendering.cxx | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx index 53921f0671b5..3a7a0969faef 100644 --- a/sw/qa/tiledrendering/tiledrendering.cxx +++ b/sw/qa/tiledrendering/tiledrendering.cxx @@ -51,24 +51,28 @@ public: void Open(OUString & aFileUrl); }; - -class TiledRenderingDialog: public ModalDialog{ +class TiledRenderingDialog: public ModalDialog +{ private: - TiledRenderingApp * app; + TiledRenderingApp *mpApp; + FixedImage *mpImage; + public: - TiledRenderingDialog(TiledRenderingApp * app_) : + TiledRenderingDialog(TiledRenderingApp * app) : ModalDialog(DIALOG_NO_PARENT, "TiledRendering", "qa/sw/ui/tiledrendering.ui"), - app(app_) + mpApp(app) { PushButton * renderButton; - get(renderButton,"buttonRenderTile"); + get(renderButton, "buttonRenderTile"); renderButton->SetClickHdl( LINK( this, TiledRenderingDialog, RenderHdl)); PushButton * chooseDocumentButton; - get(chooseDocumentButton,"buttonChooseDocument"); + get(chooseDocumentButton, "buttonChooseDocument"); chooseDocumentButton->SetClickHdl( LINK( this, TiledRenderingDialog, ChooseDocumentHdl)); SetStyle(GetStyle()|WB_CLOSEABLE); + + get(mpImage, "imageTile"); } virtual ~TiledRenderingDialog() @@ -81,7 +85,7 @@ public: sal_Int32 ExtractInt(const char * name) { NumericField * pField; - get(pField,name); + get(pField, name); OUString aString(pField->GetText()); return aString.toInt32(); } @@ -96,8 +100,6 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG ) ExtractInt("spinTilePosY"); ExtractInt("spinTileWidth"); ExtractInt("spinTileHeight"); - FixedImage * pImage; - get(pImage,"imageTile"); return 1; } @@ -108,12 +110,13 @@ IMPL_LINK ( TiledRenderingDialog, ChooseDocumentHdl, Button *, EMPTYARG ) if( aDlgHelper.Execute() == ERRCODE_NONE ) { OUString aFileUrl =xFP->getFiles().getConstArray()[0]; - app->Open(aFileUrl); + mpApp->Open(aFileUrl); } return 1; } -void TiledRenderingApp::Open(OUString & aFileUrl){ +void TiledRenderingApp::Open(OUString & aFileUrl) +{ static const OUString TARGET("_default"); static const Sequence<beans::PropertyValue> PROPS (0); if(xComponent.get()) @@ -121,7 +124,7 @@ void TiledRenderingApp::Open(OUString & aFileUrl){ xComponent->dispose(); xComponent.clear(); } - xComponent.set(xLoader->loadComponentFromURL(aFileUrl,TARGET,0,PROPS)); + xComponent.set(xLoader->loadComponentFromURL(aFileUrl, TARGET, 0, PROPS)); } void TiledRenderingApp::Init() |