disable cursor in about dialog and message boxes

Change-Id: I060872e0a468f2ce26a2ab519c5bfe271574170b
This commit is contained in:
Ivan Timofeev
2012-10-22 17:25:12 +04:00
parent f1386b7706
commit 9dbb62555f
7 changed files with 8 additions and 7 deletions

View File

@@ -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 );

View File

@@ -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>

View File

@@ -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 );

View File

@@ -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 );

View File

@@ -137,6 +137,7 @@ public:
void DisableSelectionOnFocus();
void SetTextSelectable( sal_Bool bTextSelectable );
void EnableCursor( sal_Bool bEnable );
};
inline sal_uLong VclMultiLineEdit::IsUpdateDataEnabled() const

View File

@@ -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: */

View File

@@ -403,6 +403,7 @@ void MessBox::ImplPosControls()
mpVCLMultiLineEdit->SetPosSizePixel( aTextPos, aMEditSize );
mpVCLMultiLineEdit->Show();
mpVCLMultiLineEdit->SetPaintTransparent(sal_True);
mpVCLMultiLineEdit->EnableCursor(sal_False);
SetPageSizePixel( aPageSize );
}