diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-10 15:26:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-10 15:26:57 +0100 |
commit | d1e02bd3c6918f90562bb4e963866fd3a16a4f73 (patch) | |
tree | eebcc2b303b88ee065b89809aab2e12caf3907ee /sfx2 | |
parent | e8393d4d91d714b691b101a2062c3e2e7333929b (diff) |
de-src another standalone PushButton
Change-Id: I5e38e8877d70efd3b6413a14c0c121a8babb44f8
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/sfxbasecontroller.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/view/view.src | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx index b2c58bed31ad..2c2ec74e29c3 100644 --- a/sfx2/source/view/sfxbasecontroller.cxx +++ b/sfx2/source/view/sfxbasecontroller.cxx @@ -1467,9 +1467,11 @@ void SfxBaseController::ShowInfoBars( ) SfxInfoBarWindow* pInfoBar = pViewFrame->AppendInfoBar( "checkout", SfxResId( STR_NONCHECKEDOUT_DOCUMENT ) ); if (pInfoBar) { - VclPtrInstance<PushButton> pBtn( &pViewFrame->GetWindow(), SfxResId( BT_CHECKOUT ) ); - pBtn->SetClickHdl( LINK( this, SfxBaseController, CheckOutHandler ) ); - pInfoBar->addButton(pBtn); + VclPtrInstance<PushButton> xBtn(&pViewFrame->GetWindow()); + xBtn->SetText(SfxResId(STR_CHECKOUT)); + xBtn->SetSizePixel(xBtn->GetOptimalSize()); + xBtn->SetClickHdl(LINK(this, SfxBaseController, CheckOutHandler)); + pInfoBar->addButton(xBtn); } } } diff --git a/sfx2/source/view/view.src b/sfx2/source/view/view.src index 845510a79262..8384544b2e85 100644 --- a/sfx2/source/view/view.src +++ b/sfx2/source/view/view.src @@ -121,10 +121,8 @@ String STR_CLASSIFIED_EXPORT_CONTROL Text [ en-US ] = "Export Control:" ; }; -PushButton BT_CHECKOUT +String STR_CHECKOUT { - Pos = MAP_APPFONT( 0 , 0 ); - Size = MAP_APPFONT( 30 , 0 ); Text[ en-US ] = "Check Out"; }; |