diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-10-22 17:25:12 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-10-22 17:25:12 +0400 |
commit | 9dbb62555f0813cc55e48be28047f22e2b3ea4ef (patch) | |
tree | f77bed0522a850a588e6ef8ca5e3d462b409d397 | |
parent | f1386b7706686e0c65ba0ad6d92574658cdca3a9 (diff) |
disable cursor in about dialog and message boxes
Change-Id: I060872e0a468f2ce26a2ab519c5bfe271574170b
-rw-r--r-- | cui/source/dialogs/about.cxx | 1 | ||||
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 1 | ||||
-rw-r--r-- | svtools/inc/svtools/svmedit2.hxx | 1 | ||||
-rw-r--r-- | svtools/source/edit/svmedit2.cxx | 5 | ||||
-rw-r--r-- | vcl/inc/vcl/vclmedit.hxx | 1 | ||||
-rw-r--r-- | vcl/source/edit/vclmedit.cxx | 5 | ||||
-rw-r--r-- | vcl/source/window/msgbox.cxx | 1 |
7 files changed, 8 insertions, 7 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 23b9bd5b6542..9dc8384cbe0f 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -166,6 +166,7 @@ void AboutDialog::StyleControls() // Version Text aLargeFont.SetSize( Size( 0, aLabelFont.GetSize().Height() * 1.2 ) ); aVersionText.SetControlFont( aLargeFont ); + aVersionText.EnableCursor( sal_False ); // Copyright Text aCopyrightText.SetTextSelectable( sal_False ); diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 069d26c0e8c9..9c42a48e3eca 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -46,7 +46,6 @@ #include <vcl/lstbox.hxx> #include <vcl/msgbox.hxx> #include <vcl/svapp.hxx> -#include <vcl/vclmedit.hxx> #include <sot/clsids.hxx> #include <sfx2/frmdescr.hxx> #include <sfx2/viewsh.hxx> diff --git a/svtools/inc/svtools/svmedit2.hxx b/svtools/inc/svtools/svmedit2.hxx index 74645a201148..68b754163e19 100644 --- a/svtools/inc/svtools/svmedit2.hxx +++ b/svtools/inc/svtools/svmedit2.hxx @@ -34,7 +34,6 @@ public: // methods of TextView void InsertText( const String& rNew, sal_Bool bSelect = sal_False ); void SetAutoScroll( sal_Bool bAutoScroll ); - void EnableCursor( sal_Bool bEnable ); // methods of TextEngine void SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd ); diff --git a/svtools/source/edit/svmedit2.cxx b/svtools/source/edit/svmedit2.cxx index 8d530b2ab65a..911c47f9c06c 100644 --- a/svtools/source/edit/svmedit2.cxx +++ b/svtools/source/edit/svmedit2.cxx @@ -49,11 +49,6 @@ void ExtMultiLineEdit::SetAutoScroll( sal_Bool bAutoScroll ) GetTextView()->SetAutoScroll( bAutoScroll ); } -void ExtMultiLineEdit::EnableCursor( sal_Bool bEnable ) -{ - GetTextView()->EnableCursor( bEnable ); -} - void ExtMultiLineEdit::SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd ) { GetTextEngine()->SetAttrib( rAttr, nPara, nStart, nEnd ); diff --git a/vcl/inc/vcl/vclmedit.hxx b/vcl/inc/vcl/vclmedit.hxx index 7ecb944d726b..0264b4a77b87 100644 --- a/vcl/inc/vcl/vclmedit.hxx +++ b/vcl/inc/vcl/vclmedit.hxx @@ -137,6 +137,7 @@ public: void DisableSelectionOnFocus(); void SetTextSelectable( sal_Bool bTextSelectable ); + void EnableCursor( sal_Bool bEnable ); }; inline sal_uLong VclMultiLineEdit::IsUpdateDataEnabled() const diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index fce3a0df9e90..bee427830439 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -1569,4 +1569,9 @@ void VclMultiLineEdit::SetTextSelectable( sal_Bool bTextSelectable ) pImpVclMEdit->GetTextWindow()->SetTextSelectable( bTextSelectable ); } +void VclMultiLineEdit::EnableCursor( sal_Bool bEnable ) +{ + GetTextView()->EnableCursor( bEnable ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index 41c1505082dc..353eab85f670 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -403,6 +403,7 @@ void MessBox::ImplPosControls() mpVCLMultiLineEdit->SetPosSizePixel( aTextPos, aMEditSize ); mpVCLMultiLineEdit->Show(); mpVCLMultiLineEdit->SetPaintTransparent(sal_True); + mpVCLMultiLineEdit->EnableCursor(sal_False); SetPageSizePixel( aPageSize ); } |