Kaydet (Commit) 9dbb6255 authored tarafından Ivan Timofeev's avatar Ivan Timofeev

disable cursor in about dialog and message boxes

Change-Id: I060872e0a468f2ce26a2ab519c5bfe271574170b
üst f1386b77
...@@ -166,6 +166,7 @@ void AboutDialog::StyleControls() ...@@ -166,6 +166,7 @@ void AboutDialog::StyleControls()
// Version Text // Version Text
aLargeFont.SetSize( Size( 0, aLabelFont.GetSize().Height() * 1.2 ) ); aLargeFont.SetSize( Size( 0, aLabelFont.GetSize().Height() * 1.2 ) );
aVersionText.SetControlFont( aLargeFont ); aVersionText.SetControlFont( aLargeFont );
aVersionText.EnableCursor( sal_False );
// Copyright Text // Copyright Text
aCopyrightText.SetTextSelectable( sal_False ); aCopyrightText.SetTextSelectable( sal_False );
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include <vcl/lstbox.hxx> #include <vcl/lstbox.hxx>
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <vcl/vclmedit.hxx>
#include <sot/clsids.hxx> #include <sot/clsids.hxx>
#include <sfx2/frmdescr.hxx> #include <sfx2/frmdescr.hxx>
#include <sfx2/viewsh.hxx> #include <sfx2/viewsh.hxx>
......
...@@ -34,7 +34,6 @@ public: ...@@ -34,7 +34,6 @@ public:
// methods of TextView // methods of TextView
void InsertText( const String& rNew, sal_Bool bSelect = sal_False ); void InsertText( const String& rNew, sal_Bool bSelect = sal_False );
void SetAutoScroll( sal_Bool bAutoScroll ); void SetAutoScroll( sal_Bool bAutoScroll );
void EnableCursor( sal_Bool bEnable );
// methods of TextEngine // methods of TextEngine
void SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd ); void SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd );
......
...@@ -49,11 +49,6 @@ void ExtMultiLineEdit::SetAutoScroll( sal_Bool bAutoScroll ) ...@@ -49,11 +49,6 @@ void ExtMultiLineEdit::SetAutoScroll( sal_Bool bAutoScroll )
GetTextView()->SetAutoScroll( 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 ) void ExtMultiLineEdit::SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd )
{ {
GetTextEngine()->SetAttrib( rAttr, nPara, nStart, nEnd ); GetTextEngine()->SetAttrib( rAttr, nPara, nStart, nEnd );
......
...@@ -137,6 +137,7 @@ public: ...@@ -137,6 +137,7 @@ public:
void DisableSelectionOnFocus(); void DisableSelectionOnFocus();
void SetTextSelectable( sal_Bool bTextSelectable ); void SetTextSelectable( sal_Bool bTextSelectable );
void EnableCursor( sal_Bool bEnable );
}; };
inline sal_uLong VclMultiLineEdit::IsUpdateDataEnabled() const inline sal_uLong VclMultiLineEdit::IsUpdateDataEnabled() const
......
...@@ -1569,4 +1569,9 @@ void VclMultiLineEdit::SetTextSelectable( sal_Bool bTextSelectable ) ...@@ -1569,4 +1569,9 @@ void VclMultiLineEdit::SetTextSelectable( sal_Bool bTextSelectable )
pImpVclMEdit->GetTextWindow()->SetTextSelectable( bTextSelectable ); pImpVclMEdit->GetTextWindow()->SetTextSelectable( bTextSelectable );
} }
void VclMultiLineEdit::EnableCursor( sal_Bool bEnable )
{
GetTextView()->EnableCursor( bEnable );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -403,6 +403,7 @@ void MessBox::ImplPosControls() ...@@ -403,6 +403,7 @@ void MessBox::ImplPosControls()
mpVCLMultiLineEdit->SetPosSizePixel( aTextPos, aMEditSize ); mpVCLMultiLineEdit->SetPosSizePixel( aTextPos, aMEditSize );
mpVCLMultiLineEdit->Show(); mpVCLMultiLineEdit->Show();
mpVCLMultiLineEdit->SetPaintTransparent(sal_True); mpVCLMultiLineEdit->SetPaintTransparent(sal_True);
mpVCLMultiLineEdit->EnableCursor(sal_False);
SetPageSizePixel( aPageSize ); SetPageSizePixel( aPageSize );
} }
......
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