diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-02 20:19:47 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-02 21:23:24 +0200 |
commit | f6dcf2878a6d7a8cd3bd9761e2f03b085d2060cd (patch) | |
tree | 51f138bda36cb20fd60055968e5d12c19a8f89a4 /vcl/source | |
parent | 30a7a6189916396c7c2ee9bbd5861ad19bf7724c (diff) |
Revert "Added 'Copy to Clipboard' button to error dialogs"
The UI change was too intrusive.
This reverts commit dfc9c72d7797862a9292bdda16ad8c107124a6df.
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/src/btntext.src | 5 | ||||
-rw-r--r-- | vcl/source/window/msgbox.cxx | 14 |
2 files changed, 0 insertions, 19 deletions
diff --git a/vcl/source/src/btntext.src b/vcl/source/src/btntext.src index 6762f085a0e8..c0303aac0f1f 100644 --- a/vcl/source/src/btntext.src +++ b/vcl/source/src/btntext.src @@ -69,11 +69,6 @@ String SV_BUTTONTEXT_LESS Text [ en-US ] = "~Less"; }; -String SV_BUTTONTEXT_COPY -{ - Text [ en-US ] = "Copy to Clipboard"; -}; - String SV_BUTTONTEXT_IGNORE { Text [ en-US ] = "~Ignore"; diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index 220a067b2f9a..4e5e796657f9 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -34,7 +34,6 @@ #include <brdwin.hxx> #include <window.h> -#include <vcl/edit.hxx> #include <vcl/metric.hxx> #include <vcl/svapp.hxx> #include <vcl/wrkwin.hxx> @@ -400,10 +399,6 @@ void MessBox::ImplPosControls() mpCheckBox->Show(); } - AddButton( String( ResId( SV_BUTTONTEXT_COPY, *ImplGetResMgr() ) ), BUTTON_COPY, 0 ); - Button* pCopyBtn = GetPushButton( BUTTON_COPY ); - pCopyBtn->SetClickHdl( LINK( this, MessBox, ClickHdl ) ); - mpFixedText = new FixedText( this, nWinStyle ); if( mpFixedText->GetStyle() & WB_EXTRAOFFSET ) // TODO: use CalcMinimumSize() instead aFixedSize.Width() += 2; @@ -413,15 +408,6 @@ void MessBox::ImplPosControls() SetPageSizePixel( aPageSize ); } -IMPL_LINK_NOARG( MessBox, ClickHdl ) -{ - Edit aCopyHelper( this ); - aCopyHelper.SetText( maMessText, Selection( 0, maMessText.Len() ) ); - aCopyHelper.Copy(); - - return 0; -} - // ----------------------------------------------------------------------- void MessBox::StateChanged( StateChangedType nType ) |