disable cursor in about dialog and message boxes
Change-Id: I060872e0a468f2ce26a2ab519c5bfe271574170b
This commit is contained in:
@@ -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 );
|
||||
|
@@ -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>
|
||||
|
@@ -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 );
|
||||
|
@@ -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 );
|
||||
|
@@ -137,6 +137,7 @@ public:
|
||||
void DisableSelectionOnFocus();
|
||||
|
||||
void SetTextSelectable( sal_Bool bTextSelectable );
|
||||
void EnableCursor( sal_Bool bEnable );
|
||||
};
|
||||
|
||||
inline sal_uLong VclMultiLineEdit::IsUpdateDataEnabled() const
|
||||
|
@@ -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: */
|
||||
|
@@ -403,6 +403,7 @@ void MessBox::ImplPosControls()
|
||||
mpVCLMultiLineEdit->SetPosSizePixel( aTextPos, aMEditSize );
|
||||
mpVCLMultiLineEdit->Show();
|
||||
mpVCLMultiLineEdit->SetPaintTransparent(sal_True);
|
||||
mpVCLMultiLineEdit->EnableCursor(sal_False);
|
||||
SetPageSizePixel( aPageSize );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user