diff options
author | Florian Allmann-Rahn <f.allmann-rahn@gmx.de> | 2012-04-15 17:50:21 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-04-17 11:32:31 +0200 |
commit | 223b99165a249d77c1658eff8ce2262875170ec9 (patch) | |
tree | 1fc0e1add230990d9db7aaaef0e905d7d5e45c04 /cui/source/dialogs | |
parent | b42ac1ffe55ad3b3445478a35453108cd639929a (diff) |
translated or removed german comments in connectivity, cppuhelper and cui
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 20 | ||||
-rw-r--r-- | cui/source/dialogs/cuifmsearch.cxx | 85 | ||||
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 6 | ||||
-rw-r--r-- | cui/source/dialogs/dlgname.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/hlmarkwn.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/hyphen.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/iconcdlg.cxx | 21 | ||||
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 8 | ||||
-rw-r--r-- | cui/source/dialogs/linkdlg.cxx | 41 | ||||
-rw-r--r-- | cui/source/dialogs/pastedlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/plfilter.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/postdlg.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/zoom.cxx | 14 |
15 files changed, 95 insertions, 118 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 23b3aa4ddaf8..04f8185cd716 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -308,7 +308,7 @@ SpellDialog::~SpellDialog() void SpellDialog::Init_Impl() { - // Handler initialisieren + // initialize handler aClosePB.SetClickHdl(LINK( this, SpellDialog, CancelHdl ) ); aChangePB.SetClickHdl(LINK( this, SpellDialog, ChangeHdl ) ); aChangeAllPB.SetClickHdl(LINK( this, SpellDialog, ChangeAllHdl ) ); @@ -368,7 +368,7 @@ void SpellDialog::UpdateBoxes_Impl() SetSelectedLang_Impl( nAltLanguage ); InitUserDicts(); - // Alternativen eintragen + // enter alternatives const ::rtl::OUString *pNewWords = aNewWords.getConstArray(); const sal_Int32 nSize = aNewWords.getLength(); for ( i = 0; i < nSize; ++i ) @@ -620,8 +620,6 @@ void SpellDialog::StartSpellOptDlg_Impl() pDlg->SetTabPage( pPage ); if(RET_OK == pDlg->Execute()) { - - // Benutzerb"ucher anzeigen InitUserDicts(); const SfxItemSet* pOutSet = pDlg->GetOutputItemSet(); if(pOutSet) @@ -888,17 +886,13 @@ IMPL_LINK(SpellDialog, LanguageSelectHdl, SvxLanguageBox*, pBox) // ----------------------------------------------------------------------- void SpellDialog::SetLanguage( sal_uInt16 nLang ) - -/* [Beschreibung] - - wenn die Sprache im Thesaurus umgestellt wurde, - muss auch hier die Sprache umgestellt werden. +/* + Description: + If the language has been changed in thesaurus, + it must be changed here, too. */ - { SetTitle_Impl( nLang ); - - // den richtigen Eintrag finden, da sortiert aLanguageLB.SelectLanguage( nLang ); } @@ -1050,7 +1044,7 @@ IMPL_LINK(SpellDialog, AddToDictionaryHdl, MenuButton*, pButton ) if (DIC_ERR_NONE != nAddRes) { SvxDicError( this, nAddRes ); - return 0; // Nicht weitermachen + return 0; // don't continue } // go on diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx index 2d28672ad525..db1b7f8069f7 100644 --- a/cui/source/dialogs/cuifmsearch.cxx +++ b/cui/source/dialogs/cuifmsearch.cxx @@ -135,7 +135,6 @@ FmSearchDialog::FmSearchDialog(Window* pParent, const UniString& sInitialText, c { DBG_ASSERT(m_lnkContextSupplier.IsSet(), "FmSearchDialog::FmSearchDialog : have no ContextSupplier !"); - // erst mal die Informationen fuer den initialen Kontext FmSearchContext fmscInitial; fmscInitial.nContext = nInitialContext; m_lnkContextSupplier.Call(&fmscInitial); @@ -345,18 +344,17 @@ IMPL_LINK(FmSearchDialog, OnClickedFieldRadios, Button*, pButton) IMPL_LINK_NOARG(FmSearchDialog, OnClickedSearchAgain) { if (m_pbClose.IsEnabled()) - { // der Button hat die Funktion 'Suchen' + { // the button has the function 'search' UniString strThisRoundText = m_cmbSearchText.GetText(); - // zur History dazu + // to history m_cmbSearchText.RemoveEntry(strThisRoundText); m_cmbSearchText.InsertEntry(strThisRoundText, 0); - // das Remove/Insert stellt a) sicher, dass der UniString nicht zweimal auftaucht, b), dass die zuletzt gesuchten Strings am - // Anfang stehen - // und die Listenlaenge beschraenken + // the remove/insert makes sure that a) the UniString does not appear twice and + // that b) the last searched strings are at the beginning and limit the list length while (m_cmbSearchText.GetEntryCount() > MAX_HISTORY_ENTRIES) m_cmbSearchText.RemoveEntry(m_cmbSearchText.GetEntryCount()-1); - // den 'Ueberlauf'-Hint rausnehmen + // take out the 'overflow' hint m_ftHint.SetText(UniString()); m_ftHint.Invalidate(); @@ -379,11 +377,11 @@ IMPL_LINK_NOARG(FmSearchDialog, OnClickedSearchAgain) } } else - { // der Button hat die Fukntion 'Abbrechen' + { // the button has the function 'cancel' DBG_ASSERT(m_pSearchEngine->GetSearchMode() != SM_BRUTE, "FmSearchDialog, OnClickedSearchAgain : falscher Modus !"); - // der CancelButton wird normalerweise nur disabled, wenn ich in einem Thread oder mit Reschedule arbeite + // the CancelButton is usually only disabled, when working in a thread or with reschedule m_pSearchEngine->CancelSearch(); - // mein ProgressHandler wird gerufen, wenn es wirklich zu Ende ist, das hier war nur eine Anforderung + // the ProgressHandler is called when it's really finished, here it's only a demand } return 0; } @@ -464,7 +462,7 @@ IMPL_LINK(FmSearchDialog, OnFieldSelected, ListBox*, pBox) DBG_ASSERT(pBox->GetSelectEntryCount() == 1, "FmSearchDialog::OnFieldSelected : unerwartet : nicht genau ein Eintrag selektiert !"); m_pSearchEngine->RebuildUsedFields(m_rbAllFields.IsChecked() ? -1 : (sal_Int16)m_lbField.GetSelectEntryPos()); - // ruft auch m_pSearchEngine->InvalidatePreviousLoc auf + // calls m_pSearchEngine->InvalidatePreviousLoc too sal_Int32 nCurrentContext = m_lbForm.GetSelectEntryPos(); if (nCurrentContext != LISTBOX_ENTRY_NOTFOUND) @@ -477,21 +475,20 @@ IMPL_LINK(FmSearchDialog, OnCheckBoxToggled, CheckBox*, pBox) { sal_Bool bChecked = pBox->IsChecked(); - // Formatter oder case -> an die Engine weiterreichen + // formatter or case -> pass on to the engine if (pBox == &m_cbUseFormat) m_pSearchEngine->SetFormatterUsing(bChecked); else if (pBox == &m_cbCase) m_pSearchEngine->SetCaseSensitive(bChecked); - // Richtung -> weiterreichen und Checkbox-Text fuer StartOver neu setzen + // direction -> pass on and reset the checkbox-text for StartOver else if (pBox == &m_cbBackwards) { m_cbStartOver.SetText( String( CUI_RES( bChecked ? RID_STR_FROM_BOTTOM : RID_STR_FROM_TOP ) ) ); m_pSearchEngine->SetDirection(!bChecked); } - // Aehnlichkeitssuche oder regulaerer Ausdruck + // similarity-search or regular expression else if ((pBox == &m_cbApprox) || (pBox == &m_cbRegular) || (pBox == &m_cbWildCard)) { - // die beiden jeweils anderen Boxes disablen oder enablen CheckBox* pBoxes[] = { &m_cbWildCard, &m_cbRegular, &m_cbApprox }; for (sal_uInt32 i=0; i< SAL_N_ELEMENTS(pBoxes); ++i) { @@ -504,13 +501,13 @@ IMPL_LINK(FmSearchDialog, OnCheckBoxToggled, CheckBox*, pBox) } } - // an die Engine weiterreichen + // pass on to the engine m_pSearchEngine->SetWildcard(m_cbWildCard.IsEnabled() ? m_cbWildCard.IsChecked() : sal_False); m_pSearchEngine->SetRegular(m_cbRegular.IsEnabled() ? m_cbRegular.IsChecked() : sal_False); m_pSearchEngine->SetLevenshtein(m_cbApprox.IsEnabled() ? m_cbApprox.IsChecked() : sal_False); - // (Boxes, die disabled sind, muessen als sal_False an die Engine gehen) + // (disabled boxes have to be passed to the engine as sal_False) - // die Position-Listbox anpassen (ist bei Wildcard-Suche nicht erlaubt) + // adjust the Position-Listbox (which is not allowed during Wildcard-search) if (pBox == &m_cbWildCard) { if (bChecked) @@ -525,7 +522,7 @@ IMPL_LINK(FmSearchDialog, OnCheckBoxToggled, CheckBox*, pBox) } } - // und den Button fuer die Aehnlichkeitssuche + // and the button for similarity-search if (pBox == &m_cbApprox) { if (bChecked) @@ -570,7 +567,7 @@ void FmSearchDialog::InitContext(sal_Int16 nContext) m_lnkContextSupplier.Call(&fmscContext); DBG_ASSERT(nResult > 0, "FmSearchDialog::InitContext : ContextSupplier didn't give me any controls !"); - // packen wir zuerst die Feld-Namen in die entsprechende Listbox + // put teh field names into the respective listbox m_lbField.Clear(); if (fmscContext.sFieldDisplayNames.Len() != 0) @@ -599,11 +596,9 @@ void FmSearchDialog::InitContext(sal_Int16 nContext) m_lbField.GrabFocus(); } - // dann geben wir der Engine Bescheid m_pSearchEngine->SwitchToContext(fmscContext.xCursor, fmscContext.strUsedFields, fmscContext.arrFields, m_rbAllFields.IsChecked() ? -1 : 0); - // und die Position des neuen Cursors anzeigen m_ftRecord.SetText(String::CreateFromInt32(fmscContext.xCursor->getRow())); } @@ -617,17 +612,17 @@ IMPL_LINK( FmSearchDialog, OnContextSelection, ListBox*, pBox) //------------------------------------------------------------------------ void FmSearchDialog::EnableSearchUI(sal_Bool bEnable) { - // wenn die Controls disabled werden sollen, schalte ich mal eben kurz ihr Paint aus und verzoegert wieder an + // when the controls shall be disabled their paint is turned off and then turned on again after a delay if (!bEnable) EnableControlPaint(sal_False); else - { // beim Enablen teste ich, ob der Timer fuer das delayed paint aktiv ist und stoppe ihn wenn noetig + { if (m_aDelayedPaint.IsActive()) m_aDelayedPaint.Stop(); } - // (das ganze geht unten noch weiter) - // diese kleine Verrenkung fuehrt hoffentlich dazu, dass es nicht flackert, wenn man die SearchUI schnell hintereinander - // aus- und wieder einschaltet (wie das bei einem kurzen Suchvorgang zwangslaeufig der Fall ist) + // (the whole thing goes on below) + // this small intricateness hopfully leads to no flickering when turning the SearchUI off + // and on again shortly after (like it's the case during a short search process) if ( !bEnable ) { @@ -639,11 +634,10 @@ void FmSearchDialog::EnableSearchUI(sal_Bool bEnable) m_pPreSearchFocus = NULL; } - // der Suchen-Button hat einen Doppelfunktion, seinen Text entsprechend anpassen + // the search button has two functions -> adjust its text accordingly String sButtonText( bEnable ? m_sSearch : m_sCancel ); m_pbSearchAgain.SetText( sButtonText ); - // jetzt Controls en- oder disablen if (m_pSearchEngine->GetSearchMode() != SM_BRUTE) { m_flSearchFor.Enable (bEnable); @@ -670,7 +664,6 @@ void FmSearchDialog::EnableSearchUI(sal_Bool bEnable) } } - // und den Rest fuer das delayed paint if (!bEnable) m_aDelayedPaint.Start(); else @@ -750,19 +743,17 @@ void FmSearchDialog::OnFound(const ::com::sun::star::uno::Any& aCursorPos, sal_I { FmFoundRecordInformation friInfo; friInfo.nContext = m_lbForm.GetSelectEntryPos(); - // wenn ich keine Suche in Kontexten mache, steht hier was ungueltiges drin, aber dann ist es auch egal + // if I don't do a search in a context, this has an invalid value - but then it doesn't matter anyway friInfo.aPosition = aCursorPos; if (m_rbAllFields.IsChecked()) friInfo.nFieldPos = nFieldPos; else friInfo.nFieldPos = m_lbField.GetSelectEntryPos(); - // das setzt natuerlich voraus, dass ich wirklich in dem Feld gesucht habe, dass in der Listbox ausgewaehlt ist, - // genau das wird auch in RebuildUsedFields sichergestellt + // this of course implies that I have really searched in the field that is selected in the listbox, + // which is made sure in RebuildUsedFields - // dem Handler Bescheid sagen m_lnkFoundHandler.Call(&friInfo); - // und wieder Focus auf mich m_cmbSearchText.GrabFocus(); } @@ -770,8 +761,8 @@ void FmSearchDialog::OnFound(const ::com::sun::star::uno::Any& aCursorPos, sal_I IMPL_LINK(FmSearchDialog, OnSearchProgress, FmSearchProgress*, pProgress) { SolarMutexGuard aGuard; - // diese eine Methode Thread-sicher machen (das ist ein Overkill, die ganze restliche Applikation dafuer zu blockieren, - // aber im Augenblick haben wir kein anderes Sicherheitskonpzept) + // make this single method thread-safe (it's an overkill to block the whole application for this, + // but we don't have another safety concept at the moment) switch (pProgress->aSearchState) { @@ -815,7 +806,7 @@ IMPL_LINK(FmSearchDialog, OnSearchProgress, FmSearchProgress*, pProgress) { FmFoundRecordInformation friInfo; friInfo.nContext = m_lbForm.GetSelectEntryPos(); - // wenn ich keine Suche in Kontexten mache, steht hier was ungueltiges drin, aber dann ist es auch egal + // if I don't do a search in a context, this has an invalid value - but then it doesn't matter anyway friInfo.aPosition = pProgress->aBookmark; m_lnkCanceledNotFoundHdl.Call(&friInfo); } @@ -837,22 +828,22 @@ void FmSearchDialog::LoadParams() for (; pHistory != pHistoryEnd; ++pHistory) m_cmbSearchText.InsertEntry( *pHistory ); - // die Einstellungen nehme ich an meinen UI-Elementen vor und rufe dann einfach den entsprechenden Change-Handler auf, - // dadurch werden die Daten an die SearchEngine weitergereicht und alle abhaengigen Enstellungen vorgenommen + // I do the settings at my UI-elements and then I simply call the respective change-handler, + // that way the data is handed on to the SearchEngine and all dependent settings are done - // aktuelles Feld + // current field sal_uInt16 nInitialField = m_lbField.GetEntryPos( String( aParams.sSingleSearchField ) ); if (nInitialField == COMBOBOX_ENTRY_NOTFOUND) nInitialField = 0; m_lbField.SelectEntryPos(nInitialField); LINK(this, FmSearchDialog, OnFieldSelected).Call(&m_lbField); - // alle/einzelnes Feld (NACH dem Selektieren des Feldes, da OnClickedFieldRadios dort einen gueltigen Eintrag erwartet) + // all fields/single field (AFTER selcting the field because OnClickedFieldRadios expects a valid value there) if (aParams.bAllFields) { m_rbSingleField.Check(sal_False); m_rbAllFields.Check(sal_True); LINK(this, FmSearchDialog, OnClickedFieldRadios).Call(&m_rbAllFields); - // OnClickedFieldRadios ruft auch um RebuildUsedFields + // OnClickedFieldRadios also calls to RebuildUsedFields } else { @@ -861,11 +852,10 @@ void FmSearchDialog::LoadParams() LINK(this, FmSearchDialog, OnClickedFieldRadios).Call(&m_rbSingleField); } - // Position im Feld m_lbPosition.SelectEntryPos(aParams.nPosition); LINK(this, FmSearchDialog, OnPositionSelected).Call(&m_lbPosition); - // Feld-Formatierung/Case-Sensitivitaet/Richtung + // field formatting/case sensitivity/direction m_cbUseFormat.Check(aParams.bUseFormatter); m_cbCase.Check( aParams.isCaseSensitive() ); m_cbBackwards.Check(aParams.bBackwards); @@ -878,8 +868,6 @@ void FmSearchDialog::LoadParams() LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_aHalfFullFormsCJK); LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_aSoundsLikeCJK); - // die drei Checkboxen fuer spezielle Sucharten - // erst mal alle ruecksetzen m_cbWildCard.Check(sal_False); m_cbRegular.Check(sal_False); m_cbApprox.Check(sal_False); @@ -887,7 +875,6 @@ void FmSearchDialog::LoadParams() LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_cbRegular); LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_cbApprox); - // dann die richtige setzen CheckBox* pToCheck = NULL; if (aParams.bWildcard) pToCheck = &m_cbWildCard; @@ -903,7 +890,7 @@ void FmSearchDialog::LoadParams() LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(pToCheck); } - // die Levenshtein-Parameter direkt an der SearchEngine setzen + // set Levenshtein-parameters directly at the SearchEngine m_pSearchEngine->SetLevRelaxed(aParams.bLevRelaxed); m_pSearchEngine->SetLevOther(aParams.nLevOther); m_pSearchEngine->SetLevShorter(aParams.nLevShorter); diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index 49b210657ff7..fd80ad33f3fd 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -323,13 +323,11 @@ void TakeThread::execute() for( sal_uInt16 i = 0; i < nEntries && schedule(); i++ ) { - // kompletten Filenamen aus FoundList holen if( mpBrowser->bTakeAll ) aURL = INetURLObject( *mpBrowser->aFoundList[ nPos = i ] ); else aURL = INetURLObject(*mpBrowser->aFoundList[ nPos = mpBrowser->aLbxFound.GetSelectEntryPos( i ) ]); - // Position in Taken-Liste uebernehmen mrTakenList.push_back( (sal_uLong)nPos ); { @@ -707,7 +705,7 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) aFtMSShowType.SetText( aType ); aFtMSShowPath.SetText( pThm->GetSdgURL().GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ) ); - // Ein- oder Mehrzahl? + // singular or plural? if ( 1 == pThm->GetObjectCount() ) aObjStr = aObjStr.GetToken( 0 ); else @@ -728,7 +726,7 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) aAccess += aLocaleData.getTime( pData->aThemeChangeTime ); aFtMSShowChangeDate.SetText( aAccess ); - // Image setzen + // set image sal_uInt16 nId; if( pThm->IsImported() ) diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx index 7239b4a8d695..a742cbd9def2 100644 --- a/cui/source/dialogs/dlgname.cxx +++ b/cui/source/dialogs/dlgname.cxx @@ -151,7 +151,7 @@ SvxObjectTitleDescDialog::SvxObjectTitleDescDialog( /************************************************************************* |* -|* Dialog zum Abbrechen, Speichern oder Hinzufuegen +|* dialog for cancelling, saving or adding |* \************************************************************************/ diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index 04e90b5a5b10..e26d0435ad92 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -141,7 +141,7 @@ SvxHlinkDlgMarkWnd::SvxHlinkDlgMarkWnd( SvxHyperlinkTabPageBase *pParent ) maBtClose.SetClickHdl ( LINK ( this, SvxHlinkDlgMarkWnd, ClickCloseHdl_Impl ) ); maLbTree.SetDoubleClickHdl ( LINK ( this, SvxHlinkDlgMarkWnd, ClickApplyHdl_Impl ) ); - // Tree-ListBox mit Linien versehen + // add lines to the Tree-ListBox maLbTree.SetStyle( maLbTree.GetStyle() | WB_TABSTOP | WB_BORDER | WB_HASLINES | WB_HASBUTTONS | //WB_HASLINESATROOT | WB_HSCROLL | WB_HASBUTTONSATROOT ); diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx index 35c1fd11fd3f..064231c5f086 100644 --- a/cui/source/dialogs/hyphen.cxx +++ b/cui/source/dialogs/hyphen.cxx @@ -89,7 +89,7 @@ void HyphenEdit_Impl::KeyInput( const KeyEvent& rKEvt ) Edit::KeyInput(rKEvt); break; default: - Control::KeyInput( rKEvt ); // An den Dialog weiterleiten + Control::KeyInput( rKEvt ); // pass on to the dialog break; } } diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index db3fe8b055cd..8b98a6f85e42 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -499,7 +499,7 @@ void IconChoiceDialog::SetPosSizeCtrls ( sal_Bool bInit ) maIconCtrl.ArrangeIcons(); //////////////////////////////////////// - // Pages resizen & positionieren + // resize & position the pages // for ( size_t i = 0; i < maPageList.size(); i++ ) { @@ -544,7 +544,7 @@ void IconChoiceDialog::SetPosSizeCtrls ( sal_Bool bInit ) } //////////////////////////////////////// - // Buttons positionieren + // position the buttons // sal_uLong nXOffset=0; if ( meChoicePos == PosRight ) @@ -697,7 +697,7 @@ IMPL_LINK_NOARG(IconChoiceDialog, ResetHdl) if ( pData->bOnDemand ) { - // CSet auf AIS hat hier Probleme, daher getrennt + // CSet on AIS has problems here, therefore seperated const SfxItemSet* _pSet = &( pData->pPage->GetItemSet() ); pData->pPage->Reset( *(SfxItemSet*)_pSet ); } @@ -829,11 +829,11 @@ sal_Bool IconChoiceDialog::DeActivatePageImpl () { pSet = GetRefreshedSet(); DBG_ASSERT( pSet, "GetRefreshedSet() liefert NULL" ); - // alle Pages als neu zu initialsieren flaggen + // flag all pages to be newly initialized for ( size_t i = 0, nCount = maPageList.size(); i < nCount; ++i ) { IconChoicePageData* pObj = maPageList[ i ]; - if ( pObj->pPage != pPage ) // eigene Page nicht mehr refreshen + if ( pObj->pPage != pPage ) pObj->bRefresh = sal_True; else pObj->bRefresh = sal_False; @@ -857,7 +857,7 @@ void IconChoiceDialog::ResetPageImpl () if ( pData->bOnDemand ) { - // CSet auf AIS hat hier Probleme, daher getrennt + // CSet on AIS has problems here, therefore seperated const SfxItemSet* _pSet = &pData->pPage->GetItemSet(); pData->pPage->Reset( *(SfxItemSet*)_pSet ); } @@ -906,7 +906,6 @@ const sal_uInt16* IconChoiceDialog::GetInputRanges( const SfxItemPool& rPool ) aUS[i] = rPool.GetWhich( aUS[i] ); } - // sortieren if ( aUS.size() > 1 ) { std::sort( aUS.begin(), aUS.end() ); @@ -1010,15 +1009,15 @@ void IconChoiceDialog::Start_Impl() else nActPage = mnCurrentPageId; - // Konfiguration vorhanden? + // configuration existing? SvtViewOptions aTabDlgOpt( E_TABDIALOG, String::CreateFromInt32( nResId ) ); if ( aTabDlgOpt.Exists() ) { - // ggf. Position aus Konfig + // possibly position from config SetWindowState(rtl::OUStringToOString(aTabDlgOpt.GetWindowState().getStr(), RTL_TEXTENCODING_ASCII_US)); - // initiale TabPage aus Programm/Hilfe/Konfig + // initial TabPage from program/help/config nActPage = (sal_uInt16)aTabDlgOpt.GetPageID(); if ( USHRT_MAX != mnCurrentPageId ) @@ -1114,7 +1113,7 @@ short IconChoiceDialog::Ok() if ( !pOutSet ) { if ( !pExampleSet && pSet ) - pOutSet = pSet->Clone( sal_False ); // ohne Items + pOutSet = pSet->Clone( sal_False ); // without items else if ( pExampleSet ) pOutSet = new SfxItemSet( *pExampleSet ); } diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 5216b00f0c90..d7ccde69cfcf 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -309,7 +309,7 @@ short SvInsertOleDlg::Execute() { if( aFileName.Len() ) // from OLE Dialog { - // Objekt konnte nicht aus Datei erzeugt werden + // object couldn't be created from file // global Resource from svtools (former so3 resource) String aErr( impl_getSvtResString( STR_ERROR_OBJNOCREATE_FROM_FILE ) ); aErr.SearchAndReplace( String( '%' ), aFileName ); @@ -317,7 +317,7 @@ short SvInsertOleDlg::Execute() } else { - // Objekt konnte nicht erzeugt werden + // object couldn't be created // global Resource from svtools (former so3 resource) String aErr( impl_getSvtResString( STR_ERROR_OBJNOCREATE ) ); aErr.SearchAndReplace( String( '%' ), aServerName ); @@ -370,7 +370,7 @@ short SvInsertOleDlg::Execute() if ( !m_xObj.is() ) { - // Objekt konnte nicht aus Datei erzeugt werden + // object couldn't be created from file // global Resource from svtools (former so3 resource) String aErr( impl_getSvtResString( STR_ERROR_OBJNOCREATE_FROM_FILE ) ); aErr.SearchAndReplace( String( '%' ), aFileName ); @@ -526,7 +526,7 @@ short SvInsertPlugInDialog::Execute() } else { - // PlugIn konnte nicht erzeugt werden + // PlugIn couldn't be created // global Resource from svtools (former so3 resource) String aErr( impl_getSvtResString( STR_ERROR_OBJNOCREATE_PLUGIN ) ); aErr.SearchAndReplace( String( '%' ), aURL ); diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx index e6d4e5ef8630..11c714af8d76 100644 --- a/cui/source/dialogs/linkdlg.cxx +++ b/cui/source/dialogs/linkdlg.cxx @@ -64,7 +64,7 @@ using namespace sfx2; SV_DECL_IMPL_REF_LIST(SvBaseLink,SvBaseLink*) -// Achtung im Code wird dieses Array direkt (0, 1, ...) indiziert +// attention, this array is indexed directly (0, 1, ...) in the code static long nTabs[] = { 4, // Number of Tabs 0, 77, 144, 209 @@ -109,9 +109,9 @@ SvBaseLinksDlg::SvBaseLinksDlg( Window * pParent, LinkManager* pMgr, sal_Bool bH aTbLinks.SetHelpId(HID_LINKDLG_TABLB); aTbLinks.SetSelectionMode( MULTIPLE_SELECTION ); aTbLinks.SetTabs( &nTabs[0], MAP_APPFONT ); - aTbLinks.Resize(); // OS: Hack fuer richtige Selektion + aTbLinks.Resize(); // OS: hack for correct selection - // UpdateTimer fuer DDE-/Grf-Links, auf die gewarted wird + // UpdateTimer for DDE-/Grf-links, which are waited for aUpdateTimer.SetTimeoutHdl( LINK( this, SvBaseLinksDlg, UpdateWaitingHdl ) ); aUpdateTimer.SetTimeout( 1000 ); //IAccessibility2 Implementation 2009----- @@ -150,7 +150,7 @@ IMPL_LINK( SvBaseLinksDlg, LinksSelectHdl, SvTabListBox *, pSvTabListBox ) (sal_uInt16)pSvTabListBox->GetSelectionCount() : 0; if(nSelectionCount > 1) { - //bei Mehrfachselektion ggf. alte Eintraege deselektieren + // possibly deselect old entries in case of multi-selection SvLBoxEntry* pEntry = 0; SvBaseLink* pLink = 0; pEntry = pSvTabListBox->GetHdlEntry(); @@ -287,7 +287,7 @@ IMPL_LINK_NOARG(SvBaseLinksDlg, UpdateNowClickHdl) { SvBaseLinkRef xLink = aLnkArr[ n ]; - // suche erstmal im Array nach dem Eintrag + // first look for the entry in the array for( sal_uInt16 i = 0; i < pLinkMgr->GetLinks().Count(); ++i ) if( &xLink == *pLinkMgr->GetLinks()[ i ] ) { @@ -298,7 +298,7 @@ IMPL_LINK_NOARG(SvBaseLinksDlg, UpdateNowClickHdl) } } - // falls jemand der Meinung ist, seine Links auszutauschen (SD) + // if somebody is of the opinion to swap his links (SD) LinkManager* pNewMgr = pLinkMgr; pLinkMgr = 0; SetManager( pNewMgr ); @@ -307,7 +307,7 @@ IMPL_LINK_NOARG(SvBaseLinksDlg, UpdateNowClickHdl) if( 0 == (pE = rListBox.GetEntry( aPosArr[ 0 ] )) || pE->GetUserData() != aLnkArr[ 0 ] ) { - // suche mal den Link + // search the link pE = rListBox.First(); while( pE ) { @@ -412,13 +412,13 @@ IMPL_LINK( SvBaseLinksDlg, BreakLinkClickHdl, PushButton *, pPushButton ) { Links().GetModel()->Remove( Links().GetEntry( nPos ) ); - // falls Object noch vorhanden, dann das schliessen + // close object, if it's still existing sal_Bool bNewLnkMgr = OBJECT_CLIENT_FILE == xLink->GetObjType(); - // dem Link sagen, das er aufgeloest wird! + // tell the link that it will be resolved! xLink->Closed(); - // falls einer vergessen hat sich auszutragen + // if somebody has forgotten to deregister himself if( xLink.Is() ) pLinkMgr->Remove( &xLink ); @@ -455,21 +455,20 @@ IMPL_LINK( SvBaseLinksDlg, BreakLinkClickHdl, PushButton *, pPushButton ) for( sal_uLong i = 0; i < aLinkList.Count(); i++ ) { SvBaseLinkRef xLink = aLinkList.GetObject( i ); - // dem Link sagen, das er aufgeloest wird! + // tell the link that it will be resolved! xLink->Closed(); - // falls einer vergessen hat sich auszutragen + // if somebody has forgotten to deregister himself pLinkMgr->Remove( &xLink ); bModified = sal_True; } - //Danach alle selektierten Eintraege entfernen + // then remove all selected entries } } if(bModified) { if( !Links().GetEntryCount() ) { - // Der letzte macht das Licht aus Automatic().Disable(); Manual().Disable(); UpdateNow().Disable(); @@ -514,10 +513,10 @@ IMPL_LINK( SvBaseLinksDlg, EndEditHdl, sfx2::SvBaseLink*, _pLink ) if( _pLink && _pLink->WasLastEditOK() ) { - // StarImpress/Draw tauschen die LinkObjecte selbst aus! - // also suche den Link im Manager, wenn der nicht mehr existiert, - // dann setze fuelle die Liste komplett neu. Ansonsten braucht - // nur der editierte Linkt aktualisiert werden. + // StarImpress/Draw swap the LinkObjects themselves! + // So search for the link in the manager; if it does not exist + // anymore, fill the list completely new. Otherwise only the + // edited link needs to be refreshed. sal_Bool bLinkFnd = sal_False; for( sal_uInt16 n = pLinkMgr->GetLinks().Count(); n; ) if( _pLink == &(*pLinkMgr->GetLinks()[ --n ]) ) @@ -572,7 +571,7 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr ) return; if( pNewMgr ) - // Update muss vor Clear gestoppt werden + // update has to be stopped before clear Links().SetUpdateMode( sal_False ); Links().Clear(); @@ -613,8 +612,8 @@ void SvBaseLinksDlg::InsertEntry( const SvBaseLink& rLink, sal_uInt16 nPos, sal_ pLinkMgr->GetDisplayNames( (SvBaseLink*)&rLink, &sTypeNm, &sFileNm, &sLinkNm, &sFilter ); - // GetTab(0) gibt die Position der von der TabListBox automatisch eingefuegten - // Bitmap. Die Breite der ersten Textspalte ergibt sich deshalb aus Tab(2)-Tab(1) + // GetTab(0) gives the position of the bitmap which is automatically inserted by the TabListBox. + // So the first text column's width is Tab(2)-Tab(1). long nWidthPixel = Links().GetLogicTab( 2 ) - Links().GetLogicTab( 1 ); nWidthPixel -= SV_TAB_BORDER; XubString aTxt = Links().GetEllipsisString( sFileNm, nWidthPixel, TEXT_DRAW_PATHELLIPSIS ); diff --git a/cui/source/dialogs/pastedlg.cxx b/cui/source/dialogs/pastedlg.cxx index 105178240e19..83d3698e3939 100644 --- a/cui/source/dialogs/pastedlg.cxx +++ b/cui/source/dialogs/pastedlg.cxx @@ -134,7 +134,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper, if ( !pFormats ) pFormats = &rHelper.GetDataFlavorExVector(); - //Dialogbox erzeugen und fuellen + // create and fill dialog box String aSourceName, aTypeName; sal_uLong nSelFormat = 0; SvGlobalName aEmptyNm; diff --git a/cui/source/dialogs/plfilter.cxx b/cui/source/dialogs/plfilter.cxx index 3987544b7ce7..678db753ad3b 100644 --- a/cui/source/dialogs/plfilter.cxx +++ b/cui/source/dialogs/plfilter.cxx @@ -65,7 +65,7 @@ void fillNetscapePluginFilters( Sequence< rtl::OUString >& rPluginNames, Sequenc { FilterMap aMap; - // mimetypes zusammenfassen: eine description, mehrere extensions + // sum up the mimetypes: one description, multiple extensions Sequence<PluginDescription > aDescriptions( xPMgr->getPluginDescriptions() ); const PluginDescription * pDescriptions = aDescriptions.getConstArray(); diff --git a/cui/source/dialogs/postdlg.cxx b/cui/source/dialogs/postdlg.cxx index 329d8765325a..28ad7ee9100a 100644 --- a/cui/source/dialogs/postdlg.cxx +++ b/cui/source/dialogs/postdlg.cxx @@ -85,7 +85,7 @@ SvxPostItDialog::SvxPostItDialog( Window* pParent, pOutSet ( 0 ) { - if (bRedline) // HelpIDs fuer Redlining + if (bRedline) // HelpIDs for redlining { SetHelpId(HID_REDLINING_DLG); aEditED.SetHelpId(HID_REDLINING_EDIT); @@ -154,7 +154,7 @@ SvxPostItDialog::SvxPostItDialog( Window* pParent, if ( !bNew ) SetText( CUI_RESSTR( STR_NOTIZ_EDIT ) ); else - // neu anlegen + // create newly SetText( CUI_RESSTR( STR_NOTIZ_INSERT ) ); FreeResource(); diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 30be39a6782e..616ee0ff2dae 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -97,7 +97,7 @@ SFTreeListBox::SFTreeListBox( Window* pParent, const ResId& rResId ) : WB_HASLINES | WB_HASLINESATROOT ); SetNodeDefaultImages(); - nMode = 0xFF; // Alles + nMode = 0xFF; // everything } SFTreeListBox::~SFTreeListBox() diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 64ea8a7fac58..17db9233e6ef 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -667,7 +667,7 @@ SvxThesaurusDialog::~SvxThesaurusDialog() void SvxThesaurusDialog::SetWindowTitle( LanguageType nLanguage ) { - // Sprache anpassen + // adjust language String aStr( GetText() ); aStr.Erase( aStr.Search( sal_Unicode( '(' ) ) - 1 ); aStr.Append( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( " (" ) ) ); diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx index 2fd600c84f9b..51d9d1779946 100644 --- a/cui/source/dialogs/zoom.cxx +++ b/cui/source/dialogs/zoom.cxx @@ -111,15 +111,15 @@ void SvxZoomDialog::HideButton( sal_uInt16 nBtnId ) { switch ( nBtnId ) { - case ZOOMBTN_OPTIMAL: // Optimal-Button + case ZOOMBTN_OPTIMAL: aOptimalBtn.Hide(); break; - case ZOOMBTN_PAGEWIDTH: // Seitenbreite-Button + case ZOOMBTN_PAGEWIDTH: aPageWidthBtn.Hide(); break; - case ZOOMBTN_WHOLEPAGE: // Ganze Seite-Button + case ZOOMBTN_WHOLEPAGE: aWholePageBtn.Hide(); break; @@ -191,12 +191,12 @@ SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) : aOKBtn.SetClickHdl( LINK( this, SvxZoomDialog, OKHdl ) ); aUserEdit.SetModifyHdl( LINK( this, SvxZoomDialog, SpinHdl ) ); - // Default-Werte + // default values sal_uInt16 nValue = 100; sal_uInt16 nMin = 10; sal_uInt16 nMax = 1000; - // ggf. erst den alten Wert besorgen + // maybe get the old value first const SfxUInt16Item* pOldUserItem = 0; SfxObjectShell* pSh = SfxObjectShell::Current(); @@ -206,7 +206,7 @@ SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) : if ( pOldUserItem ) nValue = pOldUserItem->GetValue(); - // UserEdit initialisieren + // initialize UserEdit if ( nMin > nValue ) nMin = nValue; if ( nMax < nValue ) @@ -469,7 +469,7 @@ IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn ) if ( aViewLayoutFl.IsEnabled() ) pOutSet->Put( aViewLayoutItem ); - // Wert aus dem UserEdit "uber den Dialog hinaus merken + // memorize value from the UserEdit beyond the dialog SfxObjectShell* pSh = SfxObjectShell::Current(); if ( pSh ) |