summaryrefslogtreecommitdiff
path: root/toolkit/source/awt
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/awt')
-rw-r--r--toolkit/source/awt/vclxcontainer.cxx15
-rw-r--r--toolkit/source/awt/vclxwindow.cxx19
-rw-r--r--toolkit/source/awt/vclxwindows.cxx16
3 files changed, 26 insertions, 24 deletions
diff --git a/toolkit/source/awt/vclxcontainer.cxx b/toolkit/source/awt/vclxcontainer.cxx
index a245b9e9ebc6..fd52b3d71d74 100644
--- a/toolkit/source/awt/vclxcontainer.cxx
+++ b/toolkit/source/awt/vclxcontainer.cxx
@@ -90,7 +90,7 @@ void VCLXContainer::removeVclContainerListener( const ::com::sun::star::uno::Ref
{
SolarMutexGuard aGuard;
- // Bei allen Children das Container-Interface abfragen...
+ // Request container interface from all children
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > > aSeq;
Window* pWindow = GetWindow();
if ( pWindow )
@@ -144,11 +144,11 @@ void VCLXContainer::setTabOrder( const ::com::sun::star::uno::Sequence< ::com::s
{
// ::com::sun::star::style::TabStop
Window* pWin = VCLUnoHelper::GetWindow( pComps[n] );
- // NULL kann vorkommen, wenn die ::com::sun::star::uno::Sequence vom TabController kommt und eine Peer fehlt!
+ // May be NULL if a ::com::sun::star::uno::Sequence is originated from TabController and is missing a peer!
if ( pWin )
{
- // Reihenfolge der Fenster vor der Manipulation des Styles,
- // weil z.B. der RadioButton in StateChanged das PREV-Window beruecksichtigt.
+ // Order windows before manipulating their style, because elements such as the
+ // RadioButton considers the PREV-window in StateChanged.
if ( pPrevWin )
pWin->SetZOrder( pPrevWin, WINDOW_ZORDER_BEHIND );
@@ -190,13 +190,14 @@ void VCLXContainer::setGroup( const ::com::sun::star::uno::Sequence< ::com::sun:
if ( pWin )
{
Window* pSortBehind = pPrevWin;
- // #57096# Alle Radios hintereinander sortieren...
+ // #57096# Sort all radios consecutively
sal_Bool bNewPrevWin = sal_True;
if ( pWin->GetType() == WINDOW_RADIOBUTTON )
{
if ( pPrevRadio )
{
- bNewPrevWin = ( pPrevWin == pPrevRadio ); // Radio-Button wurde vor das PreWin sortiert....
+ // This RadioButton was sorted before PrevWin
+ bNewPrevWin = ( pPrevWin == pPrevRadio );
pSortBehind = pPrevRadio;
}
pPrevRadio = pWin;
@@ -213,7 +214,7 @@ void VCLXContainer::setGroup( const ::com::sun::star::uno::Sequence< ::com::sun:
nStyle &= (~WB_GROUP);
pWin->SetStyle( nStyle );
- // Ein WB_GROUP hinter die Gruppe, falls keine Gruppe mehr folgt.
+ // Add WB_GROUP after the last group
if ( n == ( nCount - 1 ) )
{
Window* pBehindLast = pWin->GetWindow( WINDOW_NEXT );
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index a2092ea0dcb4..ef78d265ef40 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -349,7 +349,7 @@ Reference< XStyleSettings > VCLXWindowImpl::getStyleSettings()
//====================================================================
//====================================================================
-// Mit Out-Parameter besser als Rueckgabewert, wegen Ref-Objekt...
+// Uses an out-parameter instead of return value, due to the object reference
void ImplInitWindowEvent( ::com::sun::star::awt::WindowEvent& rEvent, Window* pWindow )
{
@@ -650,7 +650,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
Window* pNext = Application::GetFocusWindow();
if ( pNext )
{
- // Bei zusammengesetzten Controls interessiert sich keiner fuer das Innenleben:
+ // Don't care about internals if this control is compound
Window* pNextC = pNext;
while ( pNextC && !pNextC->IsCompoundControl() )
pNextC = pNextC->GetParent();
@@ -962,7 +962,7 @@ void VCLXWindow::dispose( ) throw(::com::sun::star::uno::RuntimeException)
if ( GetWindow() )
{
OutputDevice* pOutDev = GetOutputDevice();
- SetWindow( NULL ); // Damit ggf. Handler abgemeldet werden (virtuell).
+ SetWindow( NULL ); // so that handlers are logged off, if necessary (virtual)
SetOutputDevice( pOutDev );
DestroyOutputDevice();
}
@@ -1671,7 +1671,7 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::
pWindow->SetPaintTransparent( sal_False );
default: ;
}
- pWindow->Invalidate(); // Falls das Control nicht drauf reagiert
+ pWindow->Invalidate(); // Invalidate if control does not respond to it
}
}
break;
@@ -2177,9 +2177,8 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::
{
SolarMutexGuard aGuard;
- // Diese Methode sollte nur fuer Componenten gerufen werden, die zwar
- // ueber das ::com::sun::star::awt::Toolkit erzeugt werden koennen, aber fuer die es
- // kein Interface gibt.
+ // Use this method only for those components which can be created through
+ // ::com::sun::star::awt::Toolkit , but do not have an interface
Size aSz;
if ( GetWindow() )
@@ -2315,9 +2314,9 @@ void VCLXWindow::draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno:
pWindow->SetPosPixel( aPos );
- // Erstmal ein Update auf den Parent, damit nicht beim Update
- // auf dieses Fenster noch ein Paint vom Parent abgearbeitet wird,
- // wo dann ggf. dieses Fenster sofort wieder gehidet wird.
+ // Update parent first to avoid painting the parent upon the update
+ // of this window, as it may otherwise cause the parent
+ // to hide this window again
if( pWindow->GetParent() )
pWindow->GetParent()->Update();
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index b40562d83702..586d3a6b1f23 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -1810,7 +1810,7 @@ void VCLXListBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
sal_Bool bDropDown = ( pListBox->GetStyle() & WB_DROPDOWN ) ? sal_True : sal_False;
if ( bDropDown && !IsSynthesizingVCLEvent() && maActionListeners.getLength() )
{
- // Bei DropDown den ActionListener rufen...
+ // Call ActionListener on DropDown event
::com::sun::star::awt::ActionEvent aEvent;
aEvent.Source = (::cppu::OWeakObject*)this;
aEvent.ActionCommand = pListBox->GetSelectEntry();
@@ -2051,7 +2051,7 @@ void VCLXListBox::ImplCallItemListeners()
aEvent.Source = (::cppu::OWeakObject*)this;
aEvent.Highlighted = sal_False;
- // Bei Mehrfachselektion 0xFFFF, sonst die ID
+ // Set to 0xFFFF on multiple selection, selected entry ID otherwise
aEvent.Selected = (pListBox->GetSelectEntryCount() == 1 ) ? pListBox->GetSelectEntryPos() : 0xFFFF;
maItemListeners.itemStateChanged( aEvent );
@@ -4498,7 +4498,7 @@ void VCLXComboBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
aEvent.Source = (::cppu::OWeakObject*)this;
aEvent.Highlighted = sal_False;
- // Bei Mehrfachselektion 0xFFFF, sonst die ID
+ // Set to 0xFFFF on multiple selection, selected entry ID otherwise
aEvent.Selected = pComboBox->GetEntryPos( pComboBox->GetText() );
maItemListeners.itemStateChanged( aEvent );
@@ -5505,8 +5505,9 @@ void VCLXNumericField::setValue( double Value ) throw(::com::sun::star::uno::Run
NumericFormatter* pNumericFormatter = (NumericFormatter*) GetFormatter();
if ( pNumericFormatter )
{
- // z.B. 105, 2 Digits => 1,05
- // ein float 1,05 muss also eine 105 einstellen...
+ // shift long value using decimal digits
+ // (e.g., input 105 using 2 digits returns 1,05)
+ // Thus, to set a value of 1,05, insert 105 and 2 digits
pNumericFormatter->SetValue(
(long)ImplCalcLongValue( Value, pNumericFormatter->GetDecimalDigits() ) );
@@ -6100,8 +6101,9 @@ void VCLXCurrencyField::setValue( double Value ) throw(::com::sun::star::uno::Ru
LongCurrencyFormatter* pCurrencyFormatter = (LongCurrencyFormatter*) GetFormatter();
if ( pCurrencyFormatter )
{
- // z.B. 105, 2 Digits => 1,05
- // ein float 1,05 muss also eine 105 einstellen...
+ // shift long value using decimal digits
+ // (e.g., input 105 using 2 digits returns 1,05)
+ // Thus, to set a value of 1,05, insert 105 and 2 digits
pCurrencyFormatter->SetValue(
ImplCalcLongValue( Value, pCurrencyFormatter->GetDecimalDigits() ) );