Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Translate all remaining german code comments in writer/sw/source/ui/index
to english!

This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
---
 sw/source/ui/index/cntex.cxx      |    2 +-
 sw/source/ui/index/cnttab.cxx     |   24 ++++++------
 sw/source/ui/index/idxmrk.cxx     |    2 +-
 sw/source/ui/index/multmrk.cxx    |    2 +-
 sw/source/ui/index/swuiidxmrk.cxx |   75 ++++++++++++++++++-------------------
 sw/source/ui/index/toxmgr.cxx     |   24 ++++++------
 6 files changed, 64 insertions(+), 65 deletions(-)

diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx
index 21e60a0..a7e7e4d 100644
--- a/sw/source/ui/index/cntex.cxx
+++ b/sw/source/ui/index/cntex.cxx
@@ -353,7 +353,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample(
                             case TOKEN_ENTRY_NO     :
                                 sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
                                                         "TokenEntryNumber"));
-                                // fuer Inhaltsverzeichnis Numerierung
+                                // numbering for content index
                             break;
                             case TOKEN_ENTRY_TEXT   :
                             case TOKEN_ENTRY        :
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 29dc30e..c55e156 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -100,8 +100,8 @@ using ::rtl::OUString;
 using namespace ::sfx2;
 #include <svtools/editbrowsebox.hxx>
 
-static const sal_Unicode aDeliStart = '['; //fuer die form
-static const sal_Unicode aDeliEnd       = ']'; //fuer die form
+static const sal_Unicode aDeliStart = '['; // for the form
+static const sal_Unicode aDeliEnd       = ']'; // for the form
 
 #define POS_GRF                0
 #define POS_OLE                1
@@ -3751,13 +3751,13 @@ void    SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
     aParaLayLB.Clear();
     aLevelLB.Clear();
 
-    // kein Hyperlink fuer Benutzerverzeichnisse
+    // not hyperlink for user directories
 
     sal_uInt16 i, nSize = m_pCurrentForm->GetFormMax();
 
-    // form-Pattern anzeigen ohne Titel
+    // display form pattern without title
 
-    //1. TemplateEntry anzeigen
+    // display 1st TemplateEntry
     String aStr( SW_RES( STR_TITLE ));
     if( m_pCurrentForm->GetTemplate( 0 ).Len() )
     {
@@ -3791,7 +3791,7 @@ void      SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
         aLevelLB.InsertEntry( aCpy );
     }
 
-    // Templates initialisieren
+    // initialise templates
     const SwTxtFmtColl *pColl;
     SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell();
     const sal_uInt16 nSz = rSh.GetTxtFmtCollCount();
@@ -3800,7 +3800,7 @@ void      SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
         if( !(pColl = &rSh.GetTxtFmtColl( i ))->IsDefault() )
             aParaLayLB.InsertEntry( pColl->GetName() );
 
-    // Pool-Collections abfragen und fuer das Verzeichnis setzen
+    // query pool collections and set them for the directory
     for( i = 0; i < m_pCurrentForm->GetFormMax(); ++i )
     {
         aStr = m_pCurrentForm->GetTemplate( i );
@@ -3841,7 +3841,7 @@ IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn )
     return 0;
 }
 /*--------------------------------------------------------------------
-     Beschreibung: Vorlagen zuweisen
+     Description: allocate templates
  --------------------------------------------------------------------*/
 IMPL_LINK( SwTOXStylesTabPage, AssignHdl, Button *, EMPTYARG )
 {
@@ -3900,7 +3900,7 @@ IMPL_LINK_INLINE_START( SwTOXStylesTabPage, DoubleClickHdl, Button *, 
EMPTYARG )
 IMPL_LINK_INLINE_END( SwTOXStylesTabPage, DoubleClickHdl, Button *, EMPTYARG )
 
 /*--------------------------------------------------------------------
-     Beschreibung: nur wenn selektiert enable
+     Description: enable only when selected
  --------------------------------------------------------------------*/
 IMPL_LINK( SwTOXStylesTabPage, EnableSelectHdl, ListBox *, EMPTYARG )
 {
@@ -3966,9 +3966,9 @@ SwEntryBrowseBox::SwEntryBrowseBox(Window* pParent, const ResId& rId,
     xCheckController = new ::svt::CheckBoxCellController(&aCellCheckBox);
 
     //////////////////////////////////////////////////////////////////////
-    // HACK: BrowseBox invalidiert nicht ihre Childs, wie es eigentlich sein sollte.
-    // Deshalb wird WB_CLIPCHILDREN zurueckgesetzt, wodurch das Invalidieren
-    // der Childs erzwungen wird.
+    // HACK: BrowseBox doesn't invalidate its childs, how it should be.
+    // That's why WB_CLIPCHILDREN is reset in order to enforce the 
+    // childs' invalidation
     WinBits aStyle = GetStyle();
     if( aStyle & WB_CLIPCHILDREN )
     {
diff --git a/sw/source/ui/index/idxmrk.cxx b/sw/source/ui/index/idxmrk.cxx
index 66a407d..b756918 100644
--- a/sw/source/ui/index/idxmrk.cxx
+++ b/sw/source/ui/index/idxmrk.cxx
@@ -55,7 +55,7 @@
 #include <wrtsh.hxx>
 #include <view.hxx>
 #include <multmrk.hxx>
-#include <swundo.hxx>                  // fuer Undo-Ids
+#include <swundo.hxx>                  // for Undo-Ids
 #include <cmdid.h>
 #include <index.hrc>
 #include <idxmrk.hrc>
diff --git a/sw/source/ui/index/multmrk.cxx b/sw/source/ui/index/multmrk.cxx
index d314fdb..a979c1d 100644
--- a/sw/source/ui/index/multmrk.cxx
+++ b/sw/source/ui/index/multmrk.cxx
@@ -89,7 +89,7 @@ void SwMultiTOXMarkDlg::Apply()
 }
 
 /*--------------------------------------------------
- dtor ueberladen
+ overload dtor
 --------------------------------------------------*/
 
 
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
index d806170..b3a8e5b 100644
--- a/sw/source/ui/index/swuiidxmrk.cxx
+++ b/sw/source/ui/index/swuiidxmrk.cxx
@@ -59,7 +59,7 @@
 #include <wrtsh.hxx>
 #include <view.hxx>
 #include <multmrk.hxx>
-#include <swundo.hxx>                  // fuer Undo-Ids
+#include <swundo.hxx>                  // for Undo-Ids
 #include <cmdid.h>
 #include <index.hrc>
 #include <idxmrk.hrc>
@@ -95,7 +95,7 @@ using namespace ::comphelper;
 using namespace ::com::sun::star;
 
 /*--------------------------------------------------------------------
-     Beschreibung:     Dialog zum Einfuegen einer Verzeichnismarkierung
+     Description:      dialog to insert a directory selection
  --------------------------------------------------------------------*/
 SwIndexMarkDlg::SwIndexMarkDlg(Window *pParent,
                                sal_Bool bNewDlg,
@@ -227,13 +227,12 @@ SwIndexMarkDlg::SwIndexMarkDlg(Window *pParent,
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung:     Controls neu initialisieren mit der aktuellen
-                    Markierung
+     Description: Newly initialise controls with the new selection
  --------------------------------------------------------------------*/
 void SwIndexMarkDlg::InitControls()
 {
     OSL_ENSURE(pSh && pTOXMgr, "no shell?");
-    // Inhalts-Verzeichnis
+    // contents index 
     const SwTOXType* pType = pTOXMgr->GetTOXType(TOX_CONTENT, 0);
     OSL_ENSURE(pType, "Kein Verzeichnistyp !!");
     String sTmpTypeSelection;
@@ -242,38 +241,38 @@ void SwIndexMarkDlg::InitControls()
     aTypeDCB.Clear();
     aTypeDCB.InsertEntry(pType->GetTypeName());
 
-    // Stichwort-Verzeichnis
+    // keyword index
     pType = pTOXMgr->GetTOXType(TOX_INDEX, 0);
     OSL_ENSURE(pType, "Kein Verzeichnistyp !!");
     aTypeDCB.InsertEntry(pType->GetTypeName());
 
-    // Benutzerverzeichnisse
+    // user index
     sal_uInt16 nCount = pSh->GetTOXTypeCount(TOX_USER);
     sal_uInt16 i;
     for( i = 0; i < nCount; ++i )
         aTypeDCB.InsertEntry( pSh->GetTOXType(TOX_USER, i)->GetTypeName() );
 
-    // KeyWords Primary einlesen
+    // read keywords primary
     SvStringsSort aArr;
     nCount = pSh->GetTOIKeys( TOI_PRIMARY, aArr );
     for(i=0; i < nCount; ++i)
         aKeyDCB.InsertEntry( *aArr[ i ] );
 
-    // KeyWords Secondary einlesen
+    // read keywords secondary
     nCount = pSh->GetTOIKeys( TOI_SECONDARY, aArr );
     for(i=0; i < nCount; ++i)
         aKey2DCB.InsertEntry( *aArr[ i ] );
 
     UpdateLanguageDependenciesForPhoneticReading();
 
-    // Aktueller Eintrag
+    // current entry 
     const SwTOXMark* pMark = pTOXMgr->GetCurTOXMark();
     if( pMark && !bNewMark)
     {
         // Controls-Handling
 
-        // nur wenn mehr als eins vorhanden
-        // wenn gleich landet es auf dem gleichen Eintrag
+        // onyl if there are more than one
+        // if equal it lands at the same entry
         pSh->SttCrsrMove();
 
         const SwTOXMark* pMoveMark;
@@ -317,7 +316,7 @@ void SwIndexMarkDlg::InitControls()
         UpdateDialog();
     }
     else
-    {  // aktuelle Selektion (1.Element) anzeigen  ????
+    {  // display current selection (first element) ????
         sal_uInt16 nCnt = pSh->GetCrsrCnt();
         if (nCnt < 2)
         {
@@ -325,8 +324,8 @@ void SwIndexMarkDlg::InitControls()
             aOrgStr = pSh->GetView().GetSelectionTextParam(sal_True, sal_False);
             aEntryED.SetText(aOrgStr);
 
-            //alle gleichen Eintraege aufzunehmen darf nur im Body und auch da nur
-            //bei vorhandener einfacher Selektion erlaubt werden
+            //to include all equal entries may only be allowed in the body and even there 
+            //only when a simple selection exists
             const sal_uInt16 nFrmType = pSh->GetFrmType(0,sal_True);
             aApplyToAllCB.Show();
             aSearchCaseSensitiveCB.Show();
@@ -336,7 +335,7 @@ void SwIndexMarkDlg::InitControls()
             SearchTypeHdl(&aApplyToAllCB);
         }
 
-        // Verzeichnistyp ist default
+        // index type is default
         if(    sTmpTypeSelection.Len() &&
             LISTBOX_ENTRY_NOTFOUND != aTypeDCB.GetEntryPos( sTmpTypeSelection ) )
             aTypeDCB.SelectEntry(sTmpTypeSelection);
@@ -408,7 +407,7 @@ String      SwIndexMarkDlg::GetDefaultPhoneticReading( const String& rText )
  --------------------------------------------------*/
 void   SwIndexMarkDlg::Activate()
 {
-    // aktuelle Selektion (1.Element) anzeigen  ????
+    // display current selection (first element) ????
     if(bNewMark)
     {
         sal_uInt16 nCnt = pSh->GetCrsrCnt();
@@ -418,8 +417,8 @@ void        SwIndexMarkDlg::Activate()
             aOrgStr = pSh->GetView().GetSelectionTextParam(sal_True, sal_False);
             aEntryED.SetText(aOrgStr);
 
-            //alle gleichen Eintraege aufzunehmen darf nur im Body und auch da nur
-            //bei vorhandener einfacher Selektion erlaubt werden
+            //to include all equal entries may only be allowed in the body and even there 
+            //only when a simple selection exists
             const sal_uInt16 nFrmType = pSh->GetFrmType(0,sal_True);
             aApplyToAllCB.Show();
             aSearchCaseSensitiveCB.Show();
@@ -433,7 +432,7 @@ void        SwIndexMarkDlg::Activate()
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung:     Ok-Button auswerten
+     Description:      evaluate Ok-Button 
  --------------------------------------------------------------------*/
 void SwIndexMarkDlg::Apply()
 {
@@ -443,7 +442,7 @@ void SwIndexMarkDlg::Apply()
 }
 
 /*--------------------------------------------------------------------
-    Beschreibung: Aenderungen uebernehmen
+    Description: apply changes
  --------------------------------------------------------------------*/
 void SwIndexMarkDlg::InsertUpdate()
 {
@@ -482,7 +481,7 @@ void SwIndexMarkDlg::InsertUpdate()
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung:     Marke einfuegen
+     Description:      insert mark
  --------------------------------------------------------------------*/
 static void lcl_SelectSameStrings(SwWrtShell& rSh, sal_Bool bWordOnly, sal_Bool bCaseSensitive)
 {
@@ -520,7 +519,7 @@ void SwIndexMarkDlg::InsertMark()
     switch(nPos)
     {
         case POS_CONTENT : break;
-        case POS_INDEX:        // Stichwortverzeichnismarke
+        case POS_INDEX:        // keyword index mark
         {
             UpdateKeyBoxes();
             String  aPrim(aKeyDCB.GetText());
@@ -533,7 +532,7 @@ void SwIndexMarkDlg::InsertMark()
             aDesc.SetPhoneticReadingOfSecKey(aPhoneticED2.GetText());
         }
         break;
-        default:            // Userdefinedverz.-Marke
+        default:            // Userdefined index mark
         {
             String aName(aTypeDCB.GetSelectEntry());
             aDesc.SetTOUName(aName);
@@ -546,8 +545,8 @@ void SwIndexMarkDlg::InsertMark()
     sal_Bool bCaseSensitive = aSearchCaseSensitiveCB.IsChecked();
 
     pSh->StartAllAction();
-    // hier muessen alle gleichen Strings selektiert werden
-    // damit der Eintrag auf alle gleichen Strings angewandt wird
+    // all equal strings have to be selected here so that the 
+    // entry is apllied to all equal strings
     if(bApplyAll)
     {
         lcl_SelectSameStrings(*pSh, bWordOnly, bCaseSensitive);
@@ -562,7 +561,7 @@ void SwIndexMarkDlg::InsertMark()
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung:     Marke Updaten
+     Description:      update mark
  --------------------------------------------------------------------*/
 void SwIndexMarkDlg::UpdateMark()
 {
@@ -604,7 +603,7 @@ void SwIndexMarkDlg::UpdateMark()
 }
 
 /*--------------------------------------------------------------------
-    Beschreibung: Neue Keys eintragen
+    Description: insert new keys
  --------------------------------------------------------------------*/
 void SwIndexMarkDlg::UpdateKeyBoxes()
 {
@@ -612,7 +611,7 @@ void SwIndexMarkDlg::UpdateKeyBoxes()
     sal_uInt16 nPos = aKeyDCB.GetEntryPos(aKey);
 
     if(nPos == LISTBOX_ENTRY_NOTFOUND && aKey.Len() > 0)
-    {  // neuen Key erzeugen
+    {  // create new key
         aKeyDCB.InsertEntry(aKey);
     }
 
@@ -620,7 +619,7 @@ void SwIndexMarkDlg::UpdateKeyBoxes()
     nPos = aKey2DCB.GetEntryPos(aKey);
 
     if(nPos == LISTBOX_ENTRY_NOTFOUND && aKey.Len() > 0)
-    {  // neuen Key erzeugen
+    {  // create new key
         aKey2DCB.InsertEntry(aKey);
     }
 }
@@ -714,13 +713,13 @@ IMPL_LINK( SwIndexMarkDlg, CloseHdl, Button *, EMPTYARG )
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung:     VerzeichnisTyp auswaehlen nur bei Einfuegen
+     Description:      select index type only when inserting
  --------------------------------------------------------------------*/
 IMPL_LINK( SwIndexMarkDlg, ModifyHdl, ListBox *, pBox )
 {
     if(&aTypeDCB == pBox)
     {
-        // Verzeichnistyp setzen
+        // set index type 
         sal_uInt16 nPos = aTypeDCB.GetEntryPos(aTypeDCB.GetSelectEntry());
         sal_Bool bLevelEnable = sal_False,
              bKeyEnable          = sal_False,
@@ -845,7 +844,7 @@ IMPL_LINK( SwIndexMarkDlg, DelHdl, Button *, EMPTYARG )
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung: Dialoganzeige erneuern
+     Description: renew dialog view
  --------------------------------------------------------------------*/
 void SwIndexMarkDlg::UpdateDialog()
 {
@@ -860,7 +859,7 @@ void SwIndexMarkDlg::UpdateDialog()
     aOrgStr = pMark->GetText();
     aEntryED.SetText(aOrgStr);
 
-    // Verzeichnistyp setzen
+    // set index type
     sal_Bool bLevelEnable = sal_True,
          bKeyEnable   = sal_False,
          bKey2Enable  = sal_False,
@@ -904,10 +903,10 @@ void SwIndexMarkDlg::UpdateDialog()
     aPhoneticFT2.Enable(bKeyEnable&&bKey2HasText&&bIsPhoneticReadingEnabled);
     aPhoneticED2.Enable(bKeyEnable&&bKey2HasText&&bIsPhoneticReadingEnabled);
 
-    // Verzeichnis-Typ setzen
+    // set index type
     aTypeDCB.SelectEntry(pMark->GetTOXType()->GetTypeName());
 
-    // Next - Prev - Buttons setzen
+    // set Next - Prev - Buttons
     pSh->SttCrsrMove();
     if( aPrevBT.IsVisible() )
     {
@@ -969,7 +968,7 @@ IMPL_LINK( SwIndexMarkDlg, PhoneticEDModifyHdl, Edit *, pEdit )
 }
 
 /*--------------------------------------------------------------------
-     Beschreibung: Enable Disable des 2. Schluessels
+     Description: Enable Disable of the 2nd key
  --------------------------------------------------------------------*/
 IMPL_LINK( SwIndexMarkDlg, KeyDCBModifyHdl, ComboBox *, pBox )
 {
@@ -1027,7 +1026,7 @@ IMPL_LINK( SwIndexMarkDlg, KeyDCBModifyHdl, ComboBox *, pBox )
 }
 
 /*--------------------------------------------------
- dtor ueberladen
+ overload dtor
 --------------------------------------------------*/
 SwIndexMarkDlg::~SwIndexMarkDlg()
 {
diff --git a/sw/source/ui/index/toxmgr.cxx b/sw/source/ui/index/toxmgr.cxx
index e91c648..c74bd2b 100644
--- a/sw/source/ui/index/toxmgr.cxx
+++ b/sw/source/ui/index/toxmgr.cxx
@@ -41,7 +41,7 @@
 #include <globals.hrc>
 
 /*--------------------------------------------------------------------
-    Beschreibung: Handhabung der Verzeichnisse durch TOXMgr
+    Description: handle indexes with TOXMgr
  --------------------------------------------------------------------*/
 
 
@@ -53,7 +53,7 @@ SwTOXMgr::SwTOXMgr(SwWrtShell* pShell):
 }
 
 /*--------------------------------------------------------------------
-    Beschreibung: Aktuelle TOXMarks behandeln
+    Description: handle current TOXMarks
  --------------------------------------------------------------------*/
 
 
@@ -83,7 +83,7 @@ void SwTOXMgr::DeleteTOXMark()
         pSh->DeleteTOXMark( pCurTOXMark );
         pSh->SetModified();
     }
-    // zur naechsten wandern
+    // go to next one
     pCurTOXMark = pNext;
 }
 
@@ -147,7 +147,7 @@ void        SwTOXMgr::InsertTOXMark(const SwTOXMarkDescription& rDesc)
     pSh->EndAllAction();
 }
 /*--------------------------------------------------------------------
-    Beschreibung: Update eines TOXMarks
+    Description: Update of TOXMarks
  --------------------------------------------------------------------*/
 
 
@@ -198,8 +198,8 @@ void SwTOXMgr::UpdateTOXMark(const SwTOXMarkDescription& rDesc)
 
     if(rDesc.GetAltStr())
     {
-        // JP 26.08.96: Bug 30344 - entweder der Text aus dem Doc oder
-        //                                                     ein Alternativ-Text, beides gibts 
nicht!
+        // JP 26.08.96: Bug 30344 - either the text of a Doc or an alternative test,
+        //                                                     not both!
         sal_Bool bReplace = pCurTOXMark->IsAlternativeText();
         if( bReplace )
             pCurTOXMark->SetAlternativeText( *rDesc.GetAltStr() );
@@ -215,7 +215,7 @@ void SwTOXMgr::UpdateTOXMark(const SwTOXMarkDescription& rDesc)
     }
     pSh->SetModified();
     pSh->EndAllAction();
-    // Bug 36207 pCurTOXMark zeigt hier in den Wald!
+    // Bug 36207 pCurTOXMark points nowhere here!
     if(!pCurTOXMark)
     {
         pSh->Left(CRSR_SKIP_CHARS, sal_False, 1, sal_False );
@@ -226,7 +226,7 @@ void SwTOXMgr::UpdateTOXMark(const SwTOXMarkDescription& rDesc)
 
 
 /*--------------------------------------------------------------------
-    Beschreibung:      UserTypeID ermitteln
+    Description:       determine UserTypeID
  --------------------------------------------------------------------*/
 
 
@@ -245,7 +245,7 @@ sal_uInt16 SwTOXMgr::GetUserTypeID(const String& rStr)
 }
 
 /*--------------------------------------------------------------------
-    Beschreibung: Traveling zwischen den TOXMarks
+    Description: traveling between TOXMarks
  --------------------------------------------------------------------*/
 
 
@@ -271,7 +271,7 @@ void SwTOXMgr::PrevTOXMark(sal_Bool bSame)
 }
 
 /*--------------------------------------------------------------------
-    Beschreibung: Stichwortverzeichnis einfuegen
+    Description: insert keyword index
  --------------------------------------------------------------------*/
 const SwTOXBase* SwTOXMgr::GetCurTOX()
 {
@@ -430,8 +430,8 @@ sal_Bool SwTOXMgr::UpdateOrInsertTOX(const SwTOXDescription& rDesc,
 
     if(!pCurTOX || (ppBase && !(*ppBase)) )
     {
-        // wird ppBase uebergeben, dann wird das TOXBase hier nur erzeugt
-        // und dann ueber den Dialog in ein Globaldokument eingefuegt
+        // when ppBase is passed over, TOXBase is only created here 
+        // and then inserted in a global document by the dialog
         if(ppBase)
             (*ppBase) = pNewTOX;
         else
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.