diff options
author | Oliver Günther <mail@oliverguenther.de> | 2012-08-09 14:47:19 +0200 |
---|---|---|
committer | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-10 21:57:26 +0200 |
commit | be88027c327b5f09d134f235db100ec54afdc30d (patch) | |
tree | 40687f89c0a6c9fa8a686e5f66863618ecfa6c46 /toolkit/source/controls | |
parent | bb6bd1ff9cd3eecec7eb2cd7bd0a4dcef584c903 (diff) |
fdo#39468: Translate German comments in toolkit,unotools, & xmloff
Also checked the following with bin/find-german-comments (all
false positives):
- sysui
- xml2cmp
- udm
- ucb
Change-Id: I2c72f973f5cecf56d70b5419e56338170dd55a2e
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r-- | toolkit/source/controls/stdtabcontroller.cxx | 34 | ||||
-rw-r--r-- | toolkit/source/controls/stdtabcontrollermodel.cxx | 17 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrol.cxx | 28 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolbase.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolcontainer.cxx | 16 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolmodel.cxx | 37 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 15 |
7 files changed, 72 insertions, 77 deletions
diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx index 7a3e09dbb705..fcf33553c9e4 100644 --- a/toolkit/source/controls/stdtabcontroller.cxx +++ b/toolkit/source/controls/stdtabcontroller.cxx @@ -67,7 +67,7 @@ sal_Bool StdTabController::ImplCreateComponentSequence( { sal_Bool bOK = sal_True; - // nur die wirklich geforderten Controls + // Get only the requested controls sal_Int32 nModels = rModels.getLength(); if (nModels != rControls.getLength()) { @@ -106,7 +106,7 @@ sal_Bool StdTabController::ImplCreateComponentSequence( for ( sal_uInt32 n = 0; bOK && ( n < nCtrls ); n++ ) { - // Zum Model passendes Control suchen + // Get the matching control for this model Reference< XControl > xCtrl(pControls[n]); if ( xCtrl.is() ) { @@ -118,7 +118,7 @@ sal_Bool StdTabController::ImplCreateComponentSequence( // TabStop-Property if ( pTabs ) { - // opt: String fuer TabStop als Konstante + // opt: Constant String for TabStop name static const ::rtl::OUString aTabStopName( "Tabstop" ); Reference< XPropertySet > xPSet( xCtrl->getModel(), UNO_QUERY ); @@ -140,7 +140,7 @@ sal_Bool StdTabController::ImplCreateComponentSequence( void StdTabController::ImplActivateControl( sal_Bool bFirst ) const { - // HACK wegen #53688#, muss auf ein Interface abgebildet werden, wenn Controls Remote liegen koennen. + // HACK due to bug #53688#, map controls onto an interface if remote controls may occur Reference< XTabController > xTabController(const_cast< ::cppu::OWeakObject* >(static_cast< const ::cppu::OWeakObject* >(this)), UNO_QUERY); Sequence< Reference< XControl > > aCtrls = xTabController->getControls(); const Reference< XControl > * pControls = aCtrls.getConstArray(); @@ -228,7 +228,7 @@ Sequence< Reference< XControl > > StdTabController::getControls( ) throw(Runtim for ( sal_uInt32 n = 0; n < nCtrls; n++ ) { Reference< XControlModel > xCtrlModel = pModels[n]; - // Zum Model passendes Control suchen + // Search matching Control for this Model Reference< XControl > xCtrl = FindControl( xCtrls, xCtrlModel ); aSeq.getArray()[n] = xCtrl; } @@ -247,13 +247,12 @@ void StdTabController::autoTabOrder( ) throw(RuntimeException) Sequence< Reference< XControlModel > > aSeq = mxModel->getControlModels(); Sequence< Reference< XWindow > > aCompSeq; - // vieleicht erhalte ich hier einen TabController, - // der schneller die Liste meiner Controls ermittelt + // This may return a TabController, which returns desired list of controls faster Reference< XTabController > xTabController(static_cast< ::cppu::OWeakObject* >(this), UNO_QUERY); Sequence< Reference< XControl > > aControls = xTabController->getControls(); - // #58317# Es sind ggf. noch nicht alle Controls fuer die Models im Container, - // dann kommt spaeter nochmal ein autoTabOrder... + // #58317# Some Models may be missing from the Container. Plus there is a + // autoTabOrder call later on. if( !ImplCreateComponentSequence( aControls, aSeq, aCompSeq, NULL, sal_False ) ) return; @@ -306,7 +305,7 @@ void StdTabController::activateTabOrder( ) throw(RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - // Am Container die Tab-Reihenfolge aktivieren... + // Activate tab order for the control container Reference< XControl > xC( mxControlContainer, UNO_QUERY ); Reference< XVclContainerPeer > xVclContainerPeer; @@ -315,22 +314,21 @@ void StdTabController::activateTabOrder( ) throw(RuntimeException) if ( !xC.is() || !xVclContainerPeer.is() ) return; - // vieleicht erhalte ich hier einen TabController, - // der schneller die Liste meiner Controls ermittelt + // This may return a TabController, which returns desired list of controls faster Reference< XTabController > xTabController(static_cast< ::cppu::OWeakObject* >(this), UNO_QUERY); - // Flache Liste besorgen... + // Get a flattened list of controls sequences Sequence< Reference< XControlModel > > aModels = mxModel->getControlModels(); Sequence< Reference< XWindow > > aCompSeq; Sequence< Any> aTabSeq; - // DG: Aus Optimierungsgruenden werden die Controls mittels getControls() geholt, - // dieses hoert sich zwar wiedersinning an, fuehrt aber im konkreten Fall (Forms) zu sichtbaren - // Geschwindigkeitsvorteilen + // DG: For the sake of optimization, retrieve Controls from getControls(), + // this may sound counterproductive, but leads to performance improvements + // in practical scenarios (Forms) Sequence< Reference< XControl > > aControls = xTabController->getControls(); - // #58317# Es sind ggf. noch nicht alle Controls fuer die Models im Container, - // dann kommt spaeter nochmal ein activateTabOrder... + // #58317# Some Models may be missing from the Container. Plus there is a + // autoTabOrder call later on. if( !ImplCreateComponentSequence( aControls, aModels, aCompSeq, &aTabSeq, sal_True ) ) return; diff --git a/toolkit/source/controls/stdtabcontrollermodel.cxx b/toolkit/source/controls/stdtabcontrollermodel.cxx index b59f1cbfeed1..344daaef67b4 100644 --- a/toolkit/source/controls/stdtabcontrollermodel.cxx +++ b/toolkit/source/controls/stdtabcontrollermodel.cxx @@ -212,7 +212,7 @@ void ImplWriteControls( const ::com::sun::star::uno::Reference< ::com::sun::star aSeq.getArray()[n] = xI; } - // Falls bereits mehr drinsteht als diese Version kennt: + // Skip remainder if more data exists than this version recognizes xMark->jumpToMark( nDataBeginMark ); InStream->skipBytes( nDataLen ); xMark->deleteMark(nDataBeginMark); @@ -274,11 +274,9 @@ void StdTabControllerModel::setGroup( const ::com::sun::star::uno::Sequence< ::c { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - // Die Controls stehen eventuel flach in der Liste und werden jetzt gruppiert. - // Verschachtelte Gruppen sind erstmal nicht moeglich... - // Das erste Element der Gruppe welches auch schon in der flachen Liste - // stand bestimmt die Position der Gruppe. - + // The controls might occur as a flat list and will be grouped. + // Nested groups are not possible. + // The first element of a group determines its position. UnoControlModelEntry* pNewEntry = new UnoControlModelEntry; pNewEntry->bGroup = sal_True; pNewEntry->pGroup = new UnoControlModelEntryList; @@ -293,7 +291,7 @@ void StdTabControllerModel::setGroup( const ::com::sun::star::uno::Sequence< ::c if ( !pEntry->bGroup ) { sal_uInt32 nPos = ImplGetControlPos( *pEntry->pxControl, maControls ); - // Eigentlich sollten alle Controls vorher in der flachen Liste stehen + // At the beginning, all Controls should be in a flattened list DBG_ASSERT( nPos != CONTROLPOS_NOTFOUND, "setGroup - Element not found" ); if ( nPos != CONTROLPOS_NOTFOUND ) { @@ -314,9 +312,8 @@ sal_Int32 StdTabControllerModel::getGroupCount( ) throw(::com::sun::star::uno:: { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - // erstmal nur eine Ebene... - // Das Model und die Impl-Methoden arbeiten zwar rekursiv, aber das wird - // erstmal nich nach aussen gegeben. + // Start with only one group layer, even though Model and Impl-methods + // work recursively, this is not presented to the outside. sal_Int32 nGroups = 0; size_t nEntries = maControls.size(); diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx index ef5ecb727b08..2f2c7c979911 100644 --- a/toolkit/source/controls/unocontrol.cxx +++ b/toolkit/source/controls/unocontrol.cxx @@ -208,7 +208,7 @@ Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptE if ( !xCompatiblePeer.is() ) { - // Peer unsichtbar erzeugen... + // Create the pair as invisible sal_Bool bVis = maComponentInfos.bVisible; if( bVis ) maComponentInfos.bVisible = sal_False; @@ -349,7 +349,7 @@ Reference< XWindow > UnoControl::getParentPeer() const void UnoControl::updateFromModel() { - // Alle standard Properties werden ausgelesen und in das Peer uebertragen + // Read default properties and hand over to peer if( getPeer().is() ) { Reference< XMultiPropertySet > xPropSet( mxModel, UNO_QUERY ); @@ -414,7 +414,7 @@ void UnoControl::dispose( ) throw(RuntimeException) maPaintListeners.disposeAndClear( aDisposeEvent ); maModeChangeListeners.disposeAndClear( aDisposeEvent ); - // Model wieder freigeben + // release Model again setModel( Reference< XControlModel > () ); setContext( Reference< XInterface > () ); } @@ -569,9 +569,9 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent if ( nPType && ( nLen > 1 ) && DoesDependOnOthers( nPType ) ) { - // Properties die von anderen abhaengen erst hinterher einstellen, - // weil sie von anderen Properties abhaengig sind, die aber erst spaeter - // eingestellt werden, z.B. VALUE nach VALUEMIN/MAX. + // Add properties with dependencies on other properties last + // since they're dependent on properties added later (such as + // VALUE dependency on VALUEMIN/MAX) aPeerPropertiesToSet.push_back(PropertyValue(pEvents->PropertyName, 0, pEvents->NewValue, PropertyState_DIRECT_VALUE)); } else @@ -661,7 +661,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent // I have no other idea than locking the SolarMutex here .... // I really hate the fact that VCL is not theadsafe .... - // Funktioniert beim Container nicht! + // Doesn't work for Container! getPeer()->dispose(); mxPeer.clear(); mxVclWindowPeer = NULL; @@ -699,7 +699,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent void UnoControl::disposing( const EventObject& rEvt ) throw(RuntimeException) { ::osl::ClearableMutexGuard aGuard( GetMutex() ); - // bei "Multible Inheritance" nicht unterschiedliche Typen vergleichen. + // do not compare differing types in case of multible inheritance if ( maAccessibleContext.get() == rEvt.Source ) { @@ -817,7 +817,7 @@ void UnoControl::setVisible( sal_Bool bVisible ) throw(RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); - // Visible status ist Sache der View + // Visible status is handled by View maComponentInfos.bVisible = bVisible; xWindow = xWindow.query( getPeer() ); } @@ -831,7 +831,7 @@ void UnoControl::setEnable( sal_Bool bEnable ) throw(RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); - // Enable status ist Sache der View + // Enable status is handled by View maComponentInfos.bEnable = bEnable; xWindow = xWindow.query( getPeer() ); } @@ -1141,13 +1141,13 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer Reference< XControlContainer > xC; aAny >>= xC; if( xC.is() ) - // Es ist ein Container + // It's a container eType = WindowClass_CONTAINER; else eType = WindowClass_SIMPLE; } else - { // Nur richtig, wenn es sich um ein Top Window handelt + { // This is only correct for Top Window if( rParentPeer.is() ) { if ( !xToolkit.is() ) @@ -1308,7 +1308,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer } } - // Ableitungen die Moeglichkeit geben die Attribute zu manipulieren + // Allow derivates to manipulate attributes PrepareWindowDescriptor(aDescr); // create the peer @@ -1343,7 +1343,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer setPosSize( aComponentInfos.nX, aComponentInfos.nY, aComponentInfos.nWidth, aComponentInfos.nHeight, aComponentInfos.nFlags ); if( aComponentInfos.bVisible && !bDesignMode ) - // Erst nach dem setzen der Daten anzeigen + // Show only after setting the data xWindow->setVisible( aComponentInfos.bVisible ); if( !aComponentInfos.bEnable ) diff --git a/toolkit/source/controls/unocontrolbase.cxx b/toolkit/source/controls/unocontrolbase.cxx index 1de88494be63..12b2b14ed7d7 100644 --- a/toolkit/source/controls/unocontrolbase.cxx +++ b/toolkit/source/controls/unocontrolbase.cxx @@ -90,7 +90,7 @@ void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequenc void UnoControlBase::ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis ) { - // Model ggf. schon abgemeldet, aber ein Event schlaegt noch zu... + // Model might be logged off already but an event still fires if ( mxModel.is() ) { ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY ); diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index 136426440dd9..e5b656a2df11 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -445,8 +445,8 @@ void UnoControlContainer::dispose( ) throw(uno::RuntimeException) lang::EventObject aDisposeEvent; aDisposeEvent.Source = static_cast< uno::XAggregation* >( this ); - // DG: zuerst der Welt mitteilen, dass der Container wegfliegt. Dieses ist um einiges - // schneller wenn die Welt sowohl an den Controls als auch am Container horcht + // Notify listeners about disposal of this Container (This is much faster if they + // listen on the controls and the container). maDisposeListeners.disposeAndClear( aDisposeEvent ); maCListeners.disposeAndClear( aDisposeEvent ); @@ -458,12 +458,12 @@ void UnoControlContainer::dispose( ) throw(uno::RuntimeException) for( ; pCtrls < pCtrlsEnd; ++pCtrls ) { removingControl( *pCtrls ); - // Control wegwerfen + // Delete control (*pCtrls)->dispose(); } - // alle Strukturen entfernen + // Delete all structures DELETEZ( mpControls ); mpControls = new UnoControlHolderList; @@ -601,7 +601,7 @@ void UnoControlContainer::setStatusText( const ::rtl::OUString& rStatusText ) th { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - // In der Parenthierarchie nach unten gehen + // Descend the parent hierarchy uno::Reference< awt::XControlContainer > xContainer( mxContext, uno::UNO_QUERY ); if( xContainer.is() ) xContainer->setStatusText( rStatusText ); @@ -771,10 +771,10 @@ void UnoControlContainer::createPeer( const uno::Reference< awt::XToolkit >& rxT sal_Bool bVis = maComponentInfos.bVisible; if( bVis ) UnoControl::setVisible( sal_False ); - // eigenes Peer erzeugen + // Create a new peer UnoControl::createPeer( rxToolkit, rParent ); - // alle Peers der Children erzeugen + // Create all children's peers if ( !mbCreatingCompatiblePeer ) { // Evaluate "Step" property @@ -823,7 +823,7 @@ void UnoControlContainer::setVisible( sal_Bool bVisible ) throw(uno::RuntimeExce UnoControl::setVisible( bVisible ); if( !mxContext.is() && bVisible ) - // Es ist ein TopWindow, also automatisch anzeigen + // This is a Topwindow, thus show it automatically createPeer( uno::Reference< awt::XToolkit > (), uno::Reference< awt::XWindowPeer > () ); } diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index 9b2490300927..a0c0230d50ba 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -129,8 +129,8 @@ UnoControlModel::UnoControlModel( const Reference< XMultiServiceFactory >& i_fac ,maDisposeListeners( *this ) ,maContext( i_factory ) { - // Die Properties muessen vom Model in die Tabelle gestopft werden, - // nur vorhandene Properties sind gueltige Properties, auch wenn VOID. + // Insert properties from Model into table, + // only existing properties are valid, even if they're VOID } UnoControlModel::UnoControlModel( const UnoControlModel& rModel ) @@ -560,8 +560,8 @@ void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun: sal_uInt32 nProps = aProps.size(); - // FontProperty wegen fehlender Unterscheidung zwischen 5.0 / 5.1 - // immer im alten Format mitspeichern. + // Save FontProperty always in the old format (due to missing distinction + // between 5.0 and 5.1) OutStream->writeLong( (long) ( aProps.find( BASEPROPERTY_FONTDESCRIPTOR ) != aProps.end() ) ? ( nProps + 3 ) : nProps ); for ( std::set<sal_uInt16>::const_iterator it = aProps.begin(); it != aProps.end(); ++it ) { @@ -702,8 +702,7 @@ void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun: if ( aProps.find( BASEPROPERTY_FONTDESCRIPTOR ) != aProps.end() ) { const ::com::sun::star::uno::Any* pProp = &maData[ BASEPROPERTY_FONTDESCRIPTOR ]; - // Solange wir keinen 5.0-Export haben, muss das alte - // Format mit rausgeschrieben werden... + // Until 5.0 export arrives, write old format.. ::com::sun::star::awt::FontDescriptor aFD; (*pProp) >>= aFD; @@ -770,11 +769,10 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> aValues( nProps ); sal_Bool bInvalidEntries = sal_False; - // Dummerweise kein Mark fuer den gesamten Block, es koennen also - // nur Properties geaendert werden, es koennen aber nicht spaeter mal Daten - // fuer das Model hinter den Properties geschrieben werden. + // Unfortunately, there's no mark for the whole block, thus only properties may be changed. + // No data for the model may be added following the properties - // Fuer den Import der alten ::com::sun::star::awt::FontDescriptor-Teile + // Used for import of old parts in ::com::sun::star::awt::FontDescriptor ::com::sun::star::awt::FontDescriptor* pFD = NULL; sal_uInt32 i; @@ -893,11 +891,11 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: } else { - // Altes Geraffel aus 5.0 + // Old trash from 5.0 if ( nPropId == BASEPROPERTY_FONT_TYPE ) { - // Sonst ist es nur die redundante Info fuer alte Versionen - // Daten werden durch MarkableStream geskippt. + // Redundant information for older versions + // is skipped by MarkableStream if ( nVersion < 2 ) { if ( !pFD ) @@ -920,12 +918,13 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: if ( !pFD ) { pFD = new ::com::sun::star::awt::FontDescriptor; - if ( maData.find(BASEPROPERTY_FONTDESCRIPTOR) != maData.end() ) // wegen den Defaults... + if ( maData.find(BASEPROPERTY_FONTDESCRIPTOR) != maData.end() ) // due to defaults... maData[BASEPROPERTY_FONTDESCRIPTOR] >>= *pFD; } pFD->Width = (sal_Int16)InStream->readLong(); pFD->Height = (sal_Int16)InStream->readLong(); - InStream->readShort(); // ::com::sun::star::awt::FontWidth ignorieren - wurde mal falsch geschrieben und wird nicht gebraucht. + InStream->readShort(); // ignore ::com::sun::star::awt::FontWidth - it was + // misspelled and is no longer needed pFD->CharacterWidth = ::com::sun::star::awt::FontWidth::DONTKNOW; } } @@ -936,7 +935,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: if ( !pFD ) { pFD = new ::com::sun::star::awt::FontDescriptor; - if ( maData.find(BASEPROPERTY_FONTDESCRIPTOR) != maData.end() ) // wegen den Defaults... + if ( maData.find(BASEPROPERTY_FONTDESCRIPTOR) != maData.end() ) // due to defaults... maData[BASEPROPERTY_FONTDESCRIPTOR] >>= *pFD; } pFD->Weight = VCLUnoHelper::ConvertFontWeight( (FontWeight) InStream->readShort() ); @@ -973,7 +972,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: bInvalidEntries = sal_True; } - // Falls bereits mehr drinsteht als diese Version kennt: + // Skip rest of input if there is more data in stream than this version can handle xMark->jumpToMark( nPropDataBeginMark ); InStream->skipBytes( nPropDataLen ); xMark->deleteMark(nPropDataBeginMark); @@ -1177,7 +1176,7 @@ sal_Bool UnoControlModel::convertFastPropertyValue( Any & rConvertedValue, Any & void UnoControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nPropId, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception) { - // Fehlt: Die gefakten Einzelproperties des FontDescriptors... + // Missing: the fake solo properties of the FontDescriptor ImplPropertyTable::const_iterator it = maData.find( nPropId ); const ::com::sun::star::uno::Any* pProp = it == maData.end() ? NULL : &(it->second); @@ -1353,7 +1352,7 @@ void UnoControlModel::setPropertyValues( const ::com::sun::star::uno::Sequence< aGuard.clear(); // same as a few lines above - // FD-Propertie nicht in das Array mergen, weil sortiert... + // Don't merge FD property into array, as it is sorted if ( pFD.get() ) { ::com::sun::star::uno::Any aValue; diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index f0aeec8f9129..9d7c9424dd7a 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -2911,7 +2911,8 @@ void UnoComboBoxControl::removeItemListener(const uno::Reference < awt::XItemLis { if( getPeer().is() && maItemListeners.getLength() == 1 ) { - uno::Reference < awt::XComboBox > xComboBox( getPeer(), uno::UNO_QUERY ); // MT: Mal alles so umstellen, schoener als Ref anlegen und query rufen + // This call is prettier than creating a Ref and calling query + uno::Reference < awt::XComboBox > xComboBox( getPeer(), uno::UNO_QUERY ); xComboBox->removeItemListener( &maItemListeners ); } maItemListeners.removeInterface( l ); @@ -3020,15 +3021,15 @@ void UnoComboBoxControl::addItems( const uno::Sequence< ::rtl::OUString>& aItems nPos = (sal_uInt16) nOldLen; sal_uInt16 n; - // Items vor der Einfuege-Position + // items before the insert position for ( n = 0; n < nPos; n++ ) pNewData[n] = pOldData[n]; - // Neue Items + // New items for ( n = 0; n < nNewItems; n++ ) pNewData[nPos+n] = aItems.getConstArray()[n]; - // Rest der alten Items + // remainder of old items for ( n = nPos; n < nOldLen; n++ ) pNewData[nNewItems+n] = pOldData[n]; @@ -3055,11 +3056,11 @@ void UnoComboBoxControl::removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(u ::rtl::OUString* pOldData = aSeq.getArray(); sal_uInt16 n; - // Items vor der Entfern-Position + // items before the deletion position for ( n = 0; n < nPos; n++ ) pNewData[n] = pOldData[n]; - // Rest der Items + // remainder of old items for ( n = nPos; n < (nOldLen-nCount); n++ ) pNewData[n] = pOldData[n+nCount]; @@ -4105,7 +4106,7 @@ void UnoPatternFieldControl::ImplSetPeerProperty( const ::rtl::OUString& rPropNa sal_uInt16 nType = GetPropertyId( rPropName ); if ( ( nType == BASEPROPERTY_TEXT ) || ( nType == BASEPROPERTY_EDITMASK ) || ( nType == BASEPROPERTY_LITERALMASK ) ) { - // Die Masken koennen nicht nacheinander gesetzt werden. + // These masks cannot be set consecutively ::rtl::OUString Text = ImplGetPropertyValue_UString( BASEPROPERTY_TEXT ); ::rtl::OUString EditMask = ImplGetPropertyValue_UString( BASEPROPERTY_EDITMASK ); ::rtl::OUString LiteralMask = ImplGetPropertyValue_UString( BASEPROPERTY_LITERALMASK ); |