This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO42X by this push:
     new b83838ab4d Fixed typos
b83838ab4d is described below

commit b83838ab4d3ded326b47dbc2ac29413bd71c5341
Author: mseidel <[email protected]>
AuthorDate: Tue Apr 15 19:24:12 2025 +0200

    Fixed typos
    
    (cherry picked from commit 0cf2fd93dccc69f9c6d59dfb2dbcea73e82909ce)
---
 .../filter/source/config/tools/split/FCFGSplit.cfg |  16 +-
 main/sal/textenc/unichars.c                        | 150 +++++------
 main/sw/source/core/doc/htmltbl.cxx                | 239 ++++++++---------
 main/sw/source/ui/shells/langhelper.cxx            | 298 ++++++++++-----------
 4 files changed, 350 insertions(+), 353 deletions(-)

diff --git a/main/filter/source/config/tools/split/FCFGSplit.cfg 
b/main/filter/source/config/tools/split/FCFGSplit.cfg
index 175c102176..462f97ac62 100644
--- a/main/filter/source/config/tools/split/FCFGSplit.cfg
+++ b/main/filter/source/config/tools/split/FCFGSplit.cfg
@@ -1,5 +1,5 @@
 # *************************************************************
-#  
+#
 #  Licensed to the Apache Software Foundation (ASF) under one
 #  or more contributor license agreements.  See the NOTICE file
 #  distributed with this work for additional information
@@ -7,21 +7,21 @@
 #  to you under the Apache License, Version 2.0 (the
 #  "License"); you may not use this file except in compliance
 #  with the License.  You may obtain a copy of the License at
-#  
+#
 #    http://www.apache.org/licenses/LICENSE-2.0
-#  
+#
 #  Unless required by applicable law or agreed to in writing,
 #  software distributed under the License is distributed on an
 #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 #  KIND, either express or implied.  See the License for the
 #  specific language governing permissions and limitations
 #  under the License.
-#  
+#
 # *************************************************************
 
 #------------------------------------------------------
 # must be a system file name, which points to the
-# xcu file, should be analyzed and splitted
+# xcu file, should be analyzed and split
 #------------------------------------------------------
 xmlfile 
=o:/SRC680/src.m21/officecfg/registry/data/org/openoffice/Office/TypeDetection.xcu
 
@@ -58,7 +58,7 @@ outencoding = UTF-8
 #------------------------------------------------------
 # The following defines specify system directories
 # which must be sub directories of "outdir".
-# Every of these sub dir willl be used to generate
+# Every of these sub dir will be used to generate
 # groups of xcu fragments there.
 #------------------------------------------------------
 subdir_types                        = types
@@ -105,9 +105,9 @@ fragment_extension = .xcu
 #   1 = only errors/exceptions will be shown
 #   2 = errors/exceptions and warnings will be shown
 #   3 = additional to errors and warnings some global
-#                              informations are shown
+#                              information are shown
 #   4 = additional to errors and warnings some global
-#                              and many detailed informations are shown
+#                              and many detailed information are shown
 #------------------------------------------------------
 debug = 4
 
diff --git a/main/sal/textenc/unichars.c b/main/sal/textenc/unichars.c
index cf861c44be..65089f748d 100644
--- a/main/sal/textenc/unichars.c
+++ b/main/sal/textenc/unichars.c
@@ -1,5 +1,5 @@
 /**************************************************************
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,126 +7,124 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  *************************************************************/
 
-
-
 #include "unichars.h"
 #include "osl/diagnose.h"
 #include "sal/types.h"
 
 int ImplIsNoncharacter(sal_uInt32 nUtf32)
 {
-    /* All code points that are noncharacters, as of Unicode 3.1.1. */
-    return (nUtf32 >= 0xFDD0 && nUtf32 <= 0xFDEF)
-           || (nUtf32 & 0xFFFF) >= 0xFFFE
-           || nUtf32 > 0x10FFFF;
+       /* All code points that are noncharacters, as of Unicode 3.1.1. */
+       return (nUtf32 >= 0xFDD0 && nUtf32 <= 0xFDEF)
+                  || (nUtf32 & 0xFFFF) >= 0xFFFE
+                  || nUtf32 > 0x10FFFF;
 }
 
 int ImplIsControlOrFormat(sal_uInt32 nUtf32)
 {
-    /* All code points of <http://www.unicode.org/Public/UNIDATA/
-       UnicodeData.txt>, Version 3.1.1, that have a General Category of Cc
-       (Other, Control) or Cf (Other, Format).
-     */
-    return nUtf32 <= 0x001F
-           || (nUtf32 >= 0x007F && nUtf32 <= 0x009F)
-           || nUtf32 == 0x070F /* SYRIAC ABBREVIATION MARK */
-           || nUtf32 == 0x180B /* MONGOLIAN FREE VARIATION SELECTOR ONE */
-           || nUtf32 == 0x180C /* MONGOLIAN FREE VARIATION SELECTOR TWO */
-           || nUtf32 == 0x180D /* MONGOLIAN FREE VARIATION SELECTOR THREE */
-           || nUtf32 == 0x180E /* MONGOLIAN VOWEL SEPARATOR */
-           || nUtf32 == 0x200C /* ZERO WIDTH NON-JOINER */
-           || nUtf32 == 0x200D /* ZERO WIDTH JOINER */
-           || nUtf32 == 0x200E /* LEFT-TO-RIGHT MARK */
-           || nUtf32 == 0x200F /* RIGHT-TO-LEFT MARK */
-           || nUtf32 == 0x202A /* LEFT-TO-RIGHT EMBEDDING */
-           || nUtf32 == 0x202B /* RIGHT-TO-LEFT EMBEDDING */
-           || nUtf32 == 0x202C /* POP DIRECTIONAL FORMATTING */
-           || nUtf32 == 0x202D /* LEFT-TO-RIGHT OVERRIDE */
-           || nUtf32 == 0x202E /* RIGHT-TO-LEFT OVERRIDE */
-           || nUtf32 == 0x206A /* INHIBIT SYMMETRIC SWAPPING */
-           || nUtf32 == 0x206B /* ACTIVATE SYMMETRIC SWAPPING */
-           || nUtf32 == 0x206C /* INHIBIT ARABIC FORM SHAPING */
-           || nUtf32 == 0x206D /* ACTIVATE ARABIC FORM SHAPING */
-           || nUtf32 == 0x206E /* NATIONAL DIGIT SHAPES */
-           || nUtf32 == 0x206F /* NOMINAL DIGIT SHAPES */
-           || nUtf32 == 0xFEFF /* ZERO WIDTH NO-BREAK SPACE */
-           || nUtf32 == 0xFFF9 /* INTERLINEAR ANNOTATION ANCHOR */
-           || nUtf32 == 0xFFFA /* INTERLINEAR ANNOTATION SEPARATOR */
-           || nUtf32 == 0xFFFB /* INTERLINEAR ANNOTATION TERMINATOR */
-           || nUtf32 == 0x1D173 /* MUSICAL SYMBOL BEGIN BEAM */
-           || nUtf32 == 0x1D174 /* MUSICAL SYMBOL END BEAM */
-           || nUtf32 == 0x1D175 /* MUSICAL SYMBOL BEGIN TIE */
-           || nUtf32 == 0x1D176 /* MUSICAL SYMBOL END TIE */
-           || nUtf32 == 0x1D177 /* MUSICAL SYMBOL BEGIN SLUR */
-           || nUtf32 == 0x1D178 /* MUSICAL SYMBOL END SLUR */
-           || nUtf32 == 0x1D179 /* MUSICAL SYMBOL BEGIN PHRASE */
-           || nUtf32 == 0x1D17A /* MUSICAL SYMBOL END PHRASE */
-           || nUtf32 == 0xE0001 /* LANGUAGE TAG */
-           || (nUtf32 >= 0xE0020 && nUtf32 <= 0xE007F);
+       /* All code points of <http://www.unicode.org/Public/UNIDATA/
+          UnicodeData.txt>, Version 3.1.1, that have a General Category of Cc
+          (Other, Control) or Cf (Other, Format).
+        */
+       return nUtf32 <= 0x001F
+                  || (nUtf32 >= 0x007F && nUtf32 <= 0x009F)
+                  || nUtf32 == 0x070F /* SYRIAC ABBREVIATION MARK */
+                  || nUtf32 == 0x180B /* MONGOLIAN FREE VARIATION SELECTOR ONE 
*/
+                  || nUtf32 == 0x180C /* MONGOLIAN FREE VARIATION SELECTOR TWO 
*/
+                  || nUtf32 == 0x180D /* MONGOLIAN FREE VARIATION SELECTOR 
THREE */
+                  || nUtf32 == 0x180E /* MONGOLIAN VOWEL SEPARATOR */
+                  || nUtf32 == 0x200C /* ZERO WIDTH NON-JOINER */
+                  || nUtf32 == 0x200D /* ZERO WIDTH JOINER */
+                  || nUtf32 == 0x200E /* LEFT-TO-RIGHT MARK */
+                  || nUtf32 == 0x200F /* RIGHT-TO-LEFT MARK */
+                  || nUtf32 == 0x202A /* LEFT-TO-RIGHT EMBEDDING */
+                  || nUtf32 == 0x202B /* RIGHT-TO-LEFT EMBEDDING */
+                  || nUtf32 == 0x202C /* POP DIRECTIONAL FORMATTING */
+                  || nUtf32 == 0x202D /* LEFT-TO-RIGHT OVERRIDE */
+                  || nUtf32 == 0x202E /* RIGHT-TO-LEFT OVERRIDE */
+                  || nUtf32 == 0x206A /* INHIBIT SYMMETRIC SWAPPING */
+                  || nUtf32 == 0x206B /* ACTIVATE SYMMETRIC SWAPPING */
+                  || nUtf32 == 0x206C /* INHIBIT ARABIC FORM SHAPING */
+                  || nUtf32 == 0x206D /* ACTIVATE ARABIC FORM SHAPING */
+                  || nUtf32 == 0x206E /* NATIONAL DIGIT SHAPES */
+                  || nUtf32 == 0x206F /* NOMINAL DIGIT SHAPES */
+                  || nUtf32 == 0xFEFF /* ZERO WIDTH NO-BREAK SPACE */
+                  || nUtf32 == 0xFFF9 /* INTERLINEAR ANNOTATION ANCHOR */
+                  || nUtf32 == 0xFFFA /* INTERLINEAR ANNOTATION SEPARATOR */
+                  || nUtf32 == 0xFFFB /* INTERLINEAR ANNOTATION TERMINATOR */
+                  || nUtf32 == 0x1D173 /* MUSICAL SYMBOL BEGIN BEAM */
+                  || nUtf32 == 0x1D174 /* MUSICAL SYMBOL END BEAM */
+                  || nUtf32 == 0x1D175 /* MUSICAL SYMBOL BEGIN TIE */
+                  || nUtf32 == 0x1D176 /* MUSICAL SYMBOL END TIE */
+                  || nUtf32 == 0x1D177 /* MUSICAL SYMBOL BEGIN SLUR */
+                  || nUtf32 == 0x1D178 /* MUSICAL SYMBOL END SLUR */
+                  || nUtf32 == 0x1D179 /* MUSICAL SYMBOL BEGIN PHRASE */
+                  || nUtf32 == 0x1D17A /* MUSICAL SYMBOL END PHRASE */
+                  || nUtf32 == 0xE0001 /* LANGUAGE TAG */
+                  || (nUtf32 >= 0xE0020 && nUtf32 <= 0xE007F);
 }
 
 int ImplIsHighSurrogate(sal_uInt32 nUtf32)
 {
-    /* All code points that are high-surrogates, as of Unicode 3.1.1. */
-    return nUtf32 >= 0xD800 && nUtf32 <= 0xDBFF;
+       /* All code points that are high-surrogates, as of Unicode 3.1.1. */
+       return nUtf32 >= 0xD800 && nUtf32 <= 0xDBFF;
 }
 
 int ImplIsLowSurrogate(sal_uInt32 nUtf32)
 {
-    /* All code points that are low-surrogates, as of Unicode 3.1.1. */
-    return nUtf32 >= 0xDC00 && nUtf32 <= 0xDFFF;
+       /* All code points that are low-surrogates, as of Unicode 3.1.1. */
+       return nUtf32 >= 0xDC00 && nUtf32 <= 0xDFFF;
 }
 
 int ImplIsPrivateUse(sal_uInt32 nUtf32)
 {
-    /* All code points of <http://www.unicode.org/Public/UNIDATA/
-       UnicodeData.txt>, Version 3.1.1, that have a General Category of Co
-       (Other, Private Use).
-     */
-    return (nUtf32 >= 0xE000 && nUtf32 <= 0xF8FF)
-           || (nUtf32 >= 0xF0000 && nUtf32 <= 0xFFFFD)
-           || (nUtf32 >= 0x100000 && nUtf32 <= 0x10FFFD);
+       /* All code points of <http://www.unicode.org/Public/UNIDATA/
+          UnicodeData.txt>, Version 3.1.1, that have a General Category of Co
+          (Other, Private Use).
+        */
+       return (nUtf32 >= 0xE000 && nUtf32 <= 0xF8FF)
+                  || (nUtf32 >= 0xF0000 && nUtf32 <= 0xFFFFD)
+                  || (nUtf32 >= 0x100000 && nUtf32 <= 0x10FFFD);
 }
 
 int ImplIsZeroWidth(sal_uInt32 nUtf32)
 {
-    /* All code points of <http://www.unicode.org/Public/UNIDATA/
-       UnicodeData.txt>, Version 3.1.1, that have "ZERO WIDTH" in their
-       Character name.
-     */
-    return nUtf32 == 0x200B /* ZERO WIDTH SPACE */
-           || nUtf32 == 0x200C /* ZERO WIDTH NON-JOINER */
-           || nUtf32 == 0x200D /* ZERO WIDTH JOINER */
-           || nUtf32 == 0xFEFF; /* ZEOR WIDTH NO-BREAK SPACE */
+       /* All code points of <http://www.unicode.org/Public/UNIDATA/
+          UnicodeData.txt>, Version 3.1.1, that have "ZERO WIDTH" in their
+          Character name.
+        */
+       return nUtf32 == 0x200B /* ZERO WIDTH SPACE */
+                  || nUtf32 == 0x200C /* ZERO WIDTH NON-JOINER */
+                  || nUtf32 == 0x200D /* ZERO WIDTH JOINER */
+                  || nUtf32 == 0xFEFF; /* ZERO WIDTH NO-BREAK SPACE */
 }
 
 sal_uInt32 ImplGetHighSurrogate(sal_uInt32 nUtf32)
 {
-    OSL_ENSURE(nUtf32 >= 0x10000, "specification violation");
-    return ((nUtf32 - 0x10000) >> 10) | 0xD800;
+       OSL_ENSURE(nUtf32 >= 0x10000, "specification violation");
+       return ((nUtf32 - 0x10000) >> 10) | 0xD800;
 }
 
 sal_uInt32 ImplGetLowSurrogate(sal_uInt32 nUtf32)
 {
-    OSL_ENSURE(nUtf32 >= 0x10000, "specification violation");
-    return ((nUtf32 - 0x10000) & 0x3FF) | 0xDC00;
+       OSL_ENSURE(nUtf32 >= 0x10000, "specification violation");
+       return ((nUtf32 - 0x10000) & 0x3FF) | 0xDC00;
 }
 
 sal_uInt32 ImplCombineSurrogates(sal_uInt32 nHigh, sal_uInt32 nLow)
 {
-    OSL_ENSURE(ImplIsHighSurrogate(nHigh) && ImplIsLowSurrogate(nLow),
-               "specification violation");
-    return (((nHigh & 0x3FF) << 10) | (nLow & 0x3FF)) + 0x10000;
+       OSL_ENSURE(ImplIsHighSurrogate(nHigh) && ImplIsLowSurrogate(nLow),
+                          "specification violation");
+       return (((nHigh & 0x3FF) << 10) | (nLow & 0x3FF)) + 0x10000;
 }
diff --git a/main/sw/source/core/doc/htmltbl.cxx 
b/main/sw/source/core/doc/htmltbl.cxx
index a836501400..3a67a9f0f7 100644
--- a/main/sw/source/core/doc/htmltbl.cxx
+++ b/main/sw/source/core/doc/htmltbl.cxx
@@ -19,8 +19,6 @@
  *
  *************************************************************/
 
-
-
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_sw.hxx"
 #include "hintids.hxx"
@@ -57,14 +55,13 @@ using namespace ::com::sun::star;
 #define COLFUZZY 20
 #define MAX_TABWIDTH (USHRT_MAX - 2001)
 
-
 class SwHTMLTableLayoutConstraints
 {
        sal_uInt16 nRow;                                        // Start-Zeile
        sal_uInt16 nCol;                                        // Start-Spalte
        sal_uInt16 nColSpan;                            // COLSPAN der Zelle
 
-       SwHTMLTableLayoutConstraints *pNext;            // die naechste 
Bedingung
+       SwHTMLTableLayoutConstraints *pNext;            // die nächste Bedingung
 
        sal_uLong nMinNoAlign, nMaxNoAlign;     // Zwischenergebnisse AL-Pass 1
 
@@ -241,13 +238,13 @@ SwHTMLTableLayout::~SwHTMLTableLayout()
        delete[] aCells;
 }
 
-// Die Breiten der Umrandung werden zunaechst wie in Netscape berechnet:
-// Aeussere Umrandung: BORDER + CELLSPACING + CELLPADDING
+// Die Breiten der Umrandung werden zunächst wie in Netscape berechnet:
+// Äußere Umrandung: BORDER + CELLSPACING + CELLPADDING
 // Innere Umrandung: CELLSPACING + CELLPADDING
 // Allerdings wird die Breite der Umrandung im SW trotzdem beachtet, wenn
-// bSwBorders gesetzt ist, damit nicht faellschlich umgebrochen wird.
-// MIB 27.6.97: Dabei muss auch der Abstand zum Inhalt beruecksichtigt werden,
-// und zwar auch dann, wenn wenn nur die gegenueberliegende Seite
+// bSwBorders gesetzt ist, damit nicht fälschlich umgebrochen wird.
+// MIB 27.6.97: Dabei muss auch der Abstand zum Inhalt berücksichtigt werden,
+// und zwar auch dann, wenn wenn nur die gegenüberliegende Seite
 // eine Umrandung hat.
 sal_uInt16 SwHTMLTableLayout::GetLeftCellSpace( sal_uInt16 nCol, sal_uInt16 
nColSpan,
                                                                                
        sal_Bool bSwBorders ) const
@@ -272,9 +269,9 @@ sal_uInt16 SwHTMLTableLayout::GetLeftCellSpace( sal_uInt16 
nCol, sal_uInt16 nCol
                                 nSpace < MIN_BORDER_DIST )
                {
                        ASSERT( !nCellPadding, "GetLeftCellSpace: 
CELLPADDING!=0" );
-                       // Wenn die Gegenueberliegende Seite umrandet ist 
muessen
+                       // Wenn die Gegenüberliegende Seite umrandet ist müssen
                        // wir zumindest den minimalen Abstand zum Inhalt
-                       // beruecksichtigen. (Koennte man zusaetzlich auch an
+                       // berücksichtigen. (Könnte man zusätzlich auch an
                        // nCellPadding festmachen.)
                        nSpace = MIN_BORDER_DIST;
                }
@@ -298,9 +295,9 @@ sal_uInt16 SwHTMLTableLayout::GetRightCellSpace( sal_uInt16 
nCol, sal_uInt16 nCo
                         nSpace < MIN_BORDER_DIST )
        {
                ASSERT( !nCellPadding, "GetRightCellSpace: CELLPADDING!=0" );
-               // Wenn die Gegenueberliegende Seite umrandet ist muessen
+               // Wenn die Gegenüberliegende Seite umrandet ist müssen
                // wir zumindest den minimalen Abstand zum Inhalt
-               // beruecksichtigen. (Koennte man zusaetzlich auch an
+               // berücksichtigen. (Könnte man zusätzlich auch an
                // nCellPadding festmachen.)
                nSpace = MIN_BORDER_DIST;
        }
@@ -391,7 +388,7 @@ sal_uInt16 SwHTMLTableLayout::GetBrowseWidthByTabFrm(
        {
                // Wenn die Tabelle in einem selbst angelegten Rahmen steht, 
dann ist
                // die Breite Ankers und nicht die Breite Rahmens von Bedeutung.
-               // Bei Absatz-gebundenen Rahmen werden Absatz-Einzuege nicht 
beachtet.
+               // Bei Absatz-gebundenen Rahmen werden Absatz-Einzüge nicht 
beachtet.
                const SwFrm *pAnchor = ((const SwFlyFrm 
*)pUpper)->GetAnchorFrm();
                if( pAnchor->IsTxtFrm() )
                        nWidth = pAnchor->Frm().Width();
@@ -476,7 +473,7 @@ static void lcl_GetMinMaxSize( sal_uLong& rMinNoAlignCnts, 
sal_uLong& rMaxNoAlig
        }
 
        // <NOBR> in der gesamten Zelle bezieht sich auf Text, aber nicht
-       // auf Tabellen. Netscape beruecksichtigt dies nur fuer Grafiken.
+       // auf Tabellen. Netscape berücksichtigt dies nur für Grafiken.
        if( (pColl && RES_POOLCOLL_HTML_PRE==pColl->GetPoolFmtId()) || bNoBreak 
)
        {
                rMinNoAlignCnts = rMaxNoAlignCnts;
@@ -509,16 +506,16 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                pColumn->ClearPass1Info( !HasColTags() );
                sal_uInt16 nMinColSpan = USHRT_MAX; // Spaltenzahl, auf die 
sich dir
                                                                                
// berechnete Breite bezieht
-               sal_uInt16 nColSkip = USHRT_MAX;        // Wie viele Spalten 
muessen
-                                                                               
// uebersprungen werden
+               sal_uInt16 nColSkip = USHRT_MAX;        // Wie viele Spalten 
müssen
+                                                                               
// übersprungen werden
 
                for( sal_uInt16 j=0; j<nRows; j++ )
                {
                        SwHTMLTableLayoutCell *pCell = GetCell(j,i);
                        SwHTMLTableLayoutCnts *pCnts = pCell->GetContents();
 
-                       // fix #31488#: Zum Ermitteln der naechsten zu 
berechnenden
-                       // Spalte muessen alle Zeilen herangezogen werden
+                       // fix #31488#: Zum Ermitteln der nächsten zu 
berechnenden
+                       // Spalte müssen alle Zeilen herangezogen werden
                        sal_uInt16 nColSpan = pCell->GetColSpan();
                        if( nColSpan < nColSkip )
                                nColSkip = nColSpan;
@@ -584,11 +581,11 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                                                                
sal_uLong nAbsMinTableCnts = pChild->nMin;
 
                                                                                
// Eine feste Tabellen-Breite wird als Minimum
-                                                                               
// und Maximum gleichzeitig uebernommen
+                                                                               
// und Maximum gleichzeitig übernommen
                                                                                
if( !pChild->bPrcWidthOption && pChild->nWidthOption )
                                                                                
{
                                                                                
        sal_uLong nTabWidth = pChild->nWidthOption;
-                                                                               
        if( nTabWidth >= nAbsMinTableCnts  )
+                                                                               
        if( nTabWidth >= nAbsMinTableCnts )
                                                                                
        {
                                                                                
                nMaxTableCnts = nTabWidth;
                                                                                
                nAbsMinTableCnts = nTabWidth;
@@ -619,11 +616,11 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                                sal_uLong nAbsMinTableCnts = 
pChild->nMin;
 
                                                // Eine feste Tabellen-Breite 
wird als Minimum
-                                               // und Maximum gleichzeitig 
uebernommen
+                                               // und Maximum gleichzeitig 
übernommen
                                                if( !pChild->bPrcWidthOption && 
pChild->nWidthOption )
                                                {
                                                        sal_uLong nTabWidth = 
pChild->nWidthOption;
-                                                       if( nTabWidth >= 
nAbsMinTableCnts  )
+                                                       if( nTabWidth >= 
nAbsMinTableCnts )
                                                        {
                                                                nMaxTableCnts = 
nTabWidth;
                                                                
nAbsMinTableCnts = nTabWidth;
@@ -643,9 +640,9 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                        pCnts = pCnts->GetNext();
                                }
 
-// War frueher hinter AddBorderWidth
+// War früher hinter AddBorderWidth
                                // Wenn die Breite einer Tabelle in der Zelle 
breiter ist als
-                               // das, was wir fuer sonstigen Inhalt berechnet 
haben, muessen
+                               // das, was wir für sonstigen Inhalt berechnet 
haben, müssen
                                // wir die Breite der Tabelle nutzen
                                if( nMaxTableCell > nMaxNoAlignCell )
                                        nMaxNoAlignCell = nMaxTableCell;
@@ -657,14 +654,14 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                        if( nMaxNoAlignCell < nMinNoAlignCell )
                                                nMaxNoAlignCell = 
nMinNoAlignCell;
                                }
-// War frueher hinter AddBorderWidth
+// War früher hinter AddBorderWidth
 
                                sal_Bool bRelWidth = pCell->IsPrcWidthOption();
                                sal_uInt16 nWidth = pCell->GetWidthOption();
 
                                // Eine NOWRAP-Option bezieht sich auf Text und 
auf
                                // Tabellen, wird aber bei fester Zellenbreite
-                               // nicht uebernommen. Stattdessen wirkt die 
angegebene
+                               // nicht übernommen. Stattdessen wirkt die 
angegebene
                                // Zellenbreite wie eine Mindestbreite.
                                if( pCell->HasNoWrapOption() )
                                {
@@ -689,10 +686,10 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                        // fixe Breite besitzt und gleichzeitig 
ein HR, wird
                                        // sie nie schmaler als die angegebene 
Breite.
                                        // (Genaugenomen scheint die Zelle nie 
schmaler zu werden
-                                       // als die HR-Linie, denn wenn man fuer 
die Linie eine
+                                       // als die HR-Linie, denn wenn man für 
die Linie eine
                                        // Breite angibt, die breiter ist als 
die der Zelle, dann
                                        // wird die Zelle so breit wie die 
Linie. Das bekommen wir
-                                       // natuerlich nicht hin.)
+                                       // natürlich nicht hin.)
                                        if( nWidth>nMinNoAlignCell )
                                                nMinNoAlignCell = nWidth;
                                        if( nWidth>nAbsMinNoAlignCell )
@@ -700,7 +697,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                }
 #endif
 
-                               // Mindestbreite fuer Inhalt einhalten
+                               // Mindestbreite für Inhalt einhalten
                                if( nMinNoAlignCell < MINLAY )
                                        nMinNoAlignCell = MINLAY;
                                if( nMaxNoAlignCell < MINLAY )
@@ -714,7 +711,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
 
                                if( 1==nColSpan )
                                {
-                                       // die Werte direkt uebernehmen
+                                       // die Werte direkt übernehmen
                                        pColumn->MergeMinMaxNoAlign( 
nMinNoAlignCell,
                                                                                
                 nMaxNoAlignCell,
                                                                                
                 nAbsMinNoAlignCell );
@@ -728,8 +725,8 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                        // die Angaben erst am Ende, und zwar 
zeilenweise von
                                        // links nach rechts bearbeiten
 
-                                       // Wann welche Werte wie uebernommen 
werden ist weiter
-                                       // unten erklaert.
+                                       // Wann welche Werte wie übernommen 
werden ist weiter
+                                       // unten erklärt.
                                        if( !HasColTags() && nWidth && 
!bRelWidth )
                                        {
                                                sal_uLong nAbsWidth = nWidth, 
nDummy = 0, nDummy2 = 0;
@@ -777,17 +774,17 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                        // es gibt Zellen mit COLSPAN 1 und demnach auch 
sinnvolle
                        // Werte in pColumn
 
-                       // Werte anhand folgender Tabelle (Netscape 4.0 pv 3) 
uebernehmen:
+                       // Werte anhand folgender Tabelle (Netscape 4.0 pv 3) 
übernehmen:
                        //
                        // WIDTH:                       kein COLS               
COLS
                        //
                        // keine                        min = min               
min = absmin
                        //                                      max = max       
        max = max
                        //
-                       // >= min                       min = min               
min = width
+                       // >= min                       min = min               
min = width
                        //                                      max = width     
        max = width
                        //
-                       // >= absmin            min = wdith(*)  min = width
+                       // >= absmin            min = width(*)  min = width
                        //                                      max = width     
        max = width
                        //
                        // < absmin                     min = absmin    min = 
absmin
@@ -800,7 +797,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                        if( pColumn->GetWidthOption() && 
!pColumn->IsRelWidthOption() )
                        {
                                // absolute Breiten als Minimal- und 
Maximalbreite
-                               // uebernehmen.
+                               // übernehmen.
                                sal_uLong nAbsWidth = pColumn->GetWidthOption();
                                sal_uLong nDummy = 0, nDummy2 = 0;
                                AddBorderWidth( nAbsWidth, nDummy, nDummy2, i, 
1, sal_False );
@@ -834,7 +831,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                        // angepasst wird.
                        pColumn->SetMinMax( MINLAY, MINLAY );
 
-                       // die naechsten Spalten muessen nicht bearbeitet werden
+                       // die nächsten Spalten müssen nicht bearbeitet werden
                        i += (nColSkip-1);
                }
 
@@ -854,7 +851,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                sal_uLong nConstrMin = pConstr->GetMinNoAlign();
                sal_uLong nConstrMax = pConstr->GetMaxNoAlign();
 
-               // jetzt holen wir uns die bisherige Breite der ueberspannten
+               // jetzt holen wir uns die bisherige Breite der überspannten
                // Spalten
                sal_uLong nColsMin = 0;
                sal_uLong nColsMax = 0;
@@ -951,12 +948,12 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                        // Zum Anpassen der relativen Breiten werden im 1. 
Schritt die
                        // Minimalbreiten aller anzupassenden Zellen jeweils 
mit der
                        // relativen Breite einer Spalte multipliziert. Dadurch 
stimmen
-                       // dann die Breitenverhaeltnisse der Spalten 
untereinander.
-                       // Ausserdem wird der Faktor berechnet, um den die 
Zelle dadurch
+                       // dann die Breitenverhältnisse der Spalten 
untereinander.
+                       // Außerdem wird der Faktor berechnet, um den die Zelle 
dadurch
                        // breiter geworden ist als die Minimalbreite.
                        // Im 2. Schritt werden dann die berechneten Breiten 
durch diesen
                        // Faktor geteilt. Dadurch bleibt die Breite (mind.) 
einer Zelle
-                       // erhalten und dient als Ausgangsbasis fuer die andern 
Breiten.
+                       // erhalten und dient als Ausgangsbasis für die andern 
Breiten.
                        // Es werden auch hier nur die Maximalbreiten 
beeinflusst!
 
                        sal_uLong nAbsMin = 0;  // absolute Min-Breite alter 
Spalten mit
@@ -1017,7 +1014,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                if( pColumn->IsRelWidthOption() && 
pColumn->GetWidthOption() )
                                {
                                        // Sicherstellen, dass die relativen 
breiten nicht
-                                       // ueber 100% landen
+                                       // über 100% landen
                                        sal_uInt16 nColWidth = 
pColumn->GetWidthOption();
                                        if( nRel+nColWidth > 100 )
                                        {
@@ -1030,7 +1027,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                }
                                else if( !pColumn->GetMin() )
                                {
-                                       // Die Spalte ist leer (wurde also 
ausschliesslich
+                                       // Die Spalte ist leer (wurde also 
ausschließlich
                                        // durch COLSPAN erzeugt) und darf 
deshalb auch
                                        // keine %-Breite zugewiesen bekommen.
                                        nRelCols++;
@@ -1039,10 +1036,10 @@ void SwHTMLTableLayout::AutoLayoutPass1()
 
                        // Eventuell noch vorhandene Prozente werden auf die 
Spalten ohne
                        // eine Breiten-Angabe verteilt. Wie in Netscape werden 
die
-                       // verbleibenden Prozente entsprechend der Verhaeltnisse
+                       // verbleibenden Prozente entsprechend der Verhältnisse
                        // der Maximalbreiten der in Frage kommenden Spalten
                        // untereinander verteilt.
-                       // ??? Wie beruecksichtigen bei den Maximalbreiten auch 
Spalten
+                       // ??? Wie berücksichtigen bei den Maximalbreiten auch 
Spalten
                        // mit fester Breite. Ist das richtig???
                        if( nRel < 100 && nRelCols < nCols )
                        {
@@ -1055,7 +1052,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
                                                !pColumn->GetWidthOption() &&
                                                pColumn->GetMin() )
                                        {
-                                               // den Rest bekommt die 
naechste Spalte
+                                               // den Rest bekommt die nächste 
Spalte
                                                sal_uInt16 nColWidth =
                                                        
(sal_uInt16)((pColumn->GetMax() * nRelLeft) / nFixMax);
                                                pColumn->SetWidthOption( 
nColWidth, sal_True, sal_False );
@@ -1122,39 +1119,39 @@ void SwHTMLTableLayout::AutoLayoutPass1()
        delete pConstraints;
 }
 
-// nAbsAvail ist der verfuegbare Platz in TWIPS.
-// nRelAvail ist der auf USHRT_MAX bezogene verfuegbare Platz oder 0
+// nAbsAvail ist der verfügbare Platz in TWIPS.
+// nRelAvail ist der auf USHRT_MAX bezogene verfügbare Platz oder 0
 // nAbsSpace ist der Anteil von nAbsAvail, der durch der umgebende Zelle
-//           fur die Umrandung und den Abstand zum Inhalt reserviert ist.
+//           für die Umrandung und den Abstand zum Inhalt reserviert ist.
 void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 nAbsAvail, sal_uInt16 
nRelAvail,
                                                                                
 sal_uInt16 nAbsLeftSpace,
                                                                                
 sal_uInt16 nAbsRightSpace,
                                                                                
 sal_uInt16 nParentInhAbsSpace )
 {
-       // Erstmal fuehren wie jede Menge Plausibilitaets-Test durch
+       // Erstmal führen wie jede Menge Plausibilitäts-Test durch
 
-       // Eine absolute zur Verfuegung stehende Breite muss immer uebergeben
+       // Eine absolute zur Verfügung stehende Breite muss immer übergeben
        // werden.
        ASSERT( nAbsAvail, "AutoLayout Pass 2: Keine absolute Breite gegeben" );
 
-       // Eine realtive zur Verfuegung stehende Breite darf nur und muss fuer
-       // Tabellen in Tabellen uebergeben
+       // Eine relative zur Verfügung stehende Breite darf nur und muss für
+       // Tabellen in Tabellen übergeben
        ASSERT( IsTopTable() == (nRelAvail==0),
                        "AutoLayout Pass 2: Rel. Breite bei Tab in Tab oder 
umgekehrt" );
 
-       // Die Minimalbreite der Tabelle darf natuerlich nie groesser sein
+       // Die Minimalbreite der Tabelle darf natürlich nie größer sein
        // als das die Maximalbreite.
        ASSERT( nMin<=nMax, "AutoLayout Pass2: nMin > nMax" );
 
-       // Die verfuegbare Breite, fuer die die Tabelle berechnet wurde, merken.
+       // Die verfügbare Breite, für die die Tabelle berechnet wurde, merken.
        // (Dies ist ein guter Ort, denn hier kommen wir bei der Erstberechnung
        // der Tabelle aus dem Parser und bei jedem _Resize-Aufruf vorbei.)
        nLastResizeAbsAvail = nAbsAvail;
 
-       // Schritt 1: Der verfuegbare Platz wird an linke/rechte Raender,
-       // vorhandene Filler-Zellen und Abstaende angepasst
+       // Schritt 1: Der verfügbare Platz wird an linke/rechte Ränder,
+       // vorhandene Filler-Zellen und Abstände angepasst
 
-       // Abstand zum Inhalt und Unrandung
+       // Abstand zum Inhalt und Umrandung
        sal_uInt16 nAbsLeftFill = 0, nAbsRightFill = 0;
        if( !IsTopTable() &&
                GetMin() + nAbsLeftSpace + nAbsRightSpace <= nAbsAvail )
@@ -1168,14 +1165,14 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
        {
                if( IsTopTable() )
                {
-                       // fuer die Top-Table beruecksichtigen wir die Raender 
immer,
-                       // den die Minimalbreite der Tabelle wird hier nie 
unterschritten
+                       // für die Top-Table berücksichtigen wir die Ränder 
immer,
+                       // denn die Minimalbreite der Tabelle wird hier nie 
unterschritten
                        nAbsAvail -= (nLeftMargin + nRightMargin);
                }
                else if( GetMin() + nLeftMargin + nRightMargin <= nAbsAvail )
                {
-                       // sonst beruecksichtigen wir die Raender nur, wenn 
auch Platz
-                       // fuer sie da ist (nMin ist hier bereits berechnet!)
+                       // sonst berücksichtigen wir die Ränder nur, wenn auch 
Platz
+                       // für sie da ist (nMin ist hier bereits berechnet!)
                        nAbsLeftFill = nAbsLeftFill + nLeftMargin;
                        nAbsRightFill = nAbsRightFill + nRightMargin;
                }
@@ -1190,7 +1187,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                        nAbsRightFill = MINLAY+nInhRightBorderWidth;
        }
 
-       // Anpassen des verfuegbaren Platzes.
+       // Anpassen des verfügbaren Platzes.
        nRelLeftFill = 0;
        nRelRightFill = 0;
        if( !IsTopTable() && (nAbsLeftFill>0 || nAbsRightFill) )
@@ -1213,23 +1210,23 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
        {
                if( bPrcWidthOption )
                {
-                       ASSERT( nWidthOption<=100, "Prozentangabe zu gross" );
+                       ASSERT( nWidthOption<=100, "Prozentangabe zu groß" );
                        if( nWidthOption > 100 )
                                nWidthOption = 100;
 
                        // Die absolute Breite entspricht den angegeben Prozent 
der
-                       // zur Verfuegung stehenden Breite.
+                       // zur Verfügung stehenden Breite.
                        // Top-Tabellen bekommen nur eine relative Breite, wenn 
der
-                       // verfuegbare Platz *echt groesser* ist als die 
Minimalbreite.
-                       // ACHTUNG: Das "echte groesser" ist noetig, weil der 
Wechsel
+                       // verfügbare Platz *echt größer* ist als die 
Minimalbreite.
+                       // ACHTUNG: Das "echte größer" ist nötig, weil der 
Wechsel
                        // von einer relativen Breite zu einer absoluten Breite 
durch
-                       // Resize sonst zu einer Endlosschleife fuehrt.
+                       // Resize sonst zu einer Endlosschleife führt.
                        // Weil bei Tabellen in Rahmen kein Resize aufgerufen 
wird,
-                       // wenn der Rahmen eine nicht-relative Breite besitzt, 
koennen
+                       // wenn der Rahmen eine nicht-relative Breite besitzt, 
können
                        // wir da solche Spielchen nicht spielen
                        // MIB 19.2.98: Wegen fix #47394# spielen wir solche 
Spielchen
                        // jetzt doch. Dort war eine Grafik in einer 1%-breiten
-                       // Tabelle und hat da natuerlich nicht hineingepasst.
+                       // Tabelle und hat da natürlich nicht hineingepasst.
                        nAbsTabWidth = (sal_uInt16)( ((sal_uLong)nAbsAvail * 
nWidthOption) / 100 );
                        if( IsTopTable() &&
                                ( /*MayBeInFlyFrame() ||*/ 
(sal_uLong)nAbsTabWidth > nMin ) )
@@ -1244,19 +1241,19 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                        if( nAbsTabWidth > MAX_TABWIDTH )
                                nAbsTabWidth = MAX_TABWIDTH;
 
-                       // Tabellen in Tabellen duerfen niemals breiter werden 
als der
-                       // verfuegbare Platz.
+                       // Tabellen in Tabellen dürfen niemals breiter werden 
als der
+                       // verfügbare Platz.
                        if( !IsTopTable() && nAbsTabWidth > nAbsAvail )
                                nAbsTabWidth = nAbsAvail;
                }
        }
 
        ASSERT( IsTopTable() || nAbsTabWidth<=nAbsAvail,
-                       "AutoLayout Pass2: nAbsTabWidth > nAbsAvail fuer Tab in 
Tab" );
+                       "AutoLayout Pass2: nAbsTabWidth > nAbsAvail für Tab in 
Tab" );
        ASSERT( !nRelAvail || nAbsTabWidth<=nAbsAvail,
-                       "AutoLayout Pass2: nAbsTabWidth > nAbsAvail fuer 
relative Breite" );
+                       "AutoLayout Pass2: nAbsTabWidth > nAbsAvail für 
relative Breite" );
 
-       // Catch fuer die beiden Asserts von oben (man weiss ja nie!)
+       // Catch für die beiden Asserts von oben (man weiß ja nie!)
        if( (!IsTopTable() || nRelAvail>0) && nAbsTabWidth>nAbsAvail )
                nAbsTabWidth = nAbsAvail;
 
@@ -1267,11 +1264,11 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                nMin > MAX_TABWIDTH )
        {
                // Wenn
-               // - das Minimum einer inneren Tabelle groesser ist als der
-               //   verfuegbare Platz, oder
-               // - das Minimum einer Top-Table groesser ist als USHRT_MAX
-               // muss die Tabelle an den verfuegbaren Platz bzw. USHRT_MAX
-               // abgepasst werden. Dabei bleiben die Verhaeltnisse der Breiten
+               // - das Minimum einer inneren Tabelle größer ist als der
+               //   verfügbare Platz, oder
+               // - das Minimum einer Top-Table größer ist als USHRT_MAX
+               // muss die Tabelle an den verfügbaren Platz bzw. USHRT_MAX
+               // abgepasst werden. Dabei bleiben die Verhältnisse der Breiten
                // untereinander erhalten.
 
                nAbsTabWidth = IsTopTable() ? MAX_TABWIDTH : nAbsAvail;
@@ -1365,16 +1362,16 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                // Wenn
                // - die Tabelle eine fixe Breite besitzt und das Maximum der
                //   Tabelle kleiner ist, oder
-               // - das Maximum kleiner ist als der verfuegbare Platz
-               // kann das Maximum direkt uebernommen werden bzw. die Tabelle 
nur
-               // unter Beruecksichtigung des Maximums an die fixe Breite
+               // - das Maximum kleiner ist als der verfügbare Platz
+               // kann das Maximum direkt übernommen werden bzw. die Tabelle 
nur
+               // unter Berücksichtigung des Maximums an die fixe Breite
                // angepasst werden.
 
                // Keine fixe Breite, dann das Maximum nehmen.
                if( !nAbsTabWidth )
                        nAbsTabWidth = (sal_uInt16)nMax;
 
-               // Eine Top-Table darf auch breiter werden als der verfuegbare 
Platz.
+               // Eine Top-Table darf auch breiter werden als der verfügbare 
Platz.
                if( nAbsTabWidth > nAbsAvail )
                {
                        ASSERT( IsTopTable(),
@@ -1382,8 +1379,8 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                        nAbsAvail = nAbsTabWidth;
                }
 
-               // Nur den Anteil der relativen Breite verwenden, der auch fuer
-               // die absolute Breite verwendet wuerde.
+               // Nur den Anteil der relativen Breite verwenden, der auch für
+               // die absolute Breite verwendet würde.
                sal_uLong nAbsTabWidthL = nAbsTabWidth;
                nRelTabWidth =
                        ( nRelAvail ? (sal_uInt16)((nAbsTabWidthL * nRelAvail) 
/ nAbsAvail)
@@ -1405,7 +1402,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
 
                        // In diesem (und nur in diesem) Fall gibt es Spalten,
                        // die ihre Maximalbreite genau einhalten, also weder
-                       // schmaler noch breiter werden. Beim zurueckrechnen der
+                       // schmaler noch breiter werden. Beim zurückrechnen der
                        // absoluten Breite aus der relativen Breite kann es
                        // zu Rundungsfehlern kommen (bug #45598#). Um die 
auszugleichen
                        // werden zuerst die fixen Breiten entsprechend 
korrigiert
@@ -1420,7 +1417,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                                SwHTMLTableLayoutColumn *pColumn = GetColumn( i 
);
                                if( !pColumn->IsRelWidthOption() || 
!pColumn->GetWidthOption() )
                                {
-                                       // Die Spalte behaelt ihre Breite bei.
+                                       // Die Spalte behält ihre Breite bei.
                                        nFixedCols++;
                                        sal_uLong nColMax = pColumn->GetMax();
                                        pColumn->SetAbsColWidth( 
(sal_uInt16)nColMax );
@@ -1442,8 +1439,8 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
 
                        // Zu verteilende Anteile des Maximums und der 
relativen und
                        // absoluten Breiten. nFixMax entspricht an dieser 
Stelle
-                       // nAbs, so dass man gleich nFixMax haette nehmen 
koennen.
-                       // Der Code ist so aber verstaendlicher.
+                       // nAbs, so dass man gleich nFixMax hätte nehmen können.
+                       // Der Code ist so aber verständlicher.
                        ASSERT( nFixMax == nAbs, "Zwei Schleifen, zwei Summen?" 
)
                        sal_uLong nDistMax = nMax - nFixMax;
                        sal_uInt16 nDistAbsTabWidth = nAbsTabWidth - nAbs;
@@ -1478,7 +1475,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                else
                {
                        // nein, dann den zu verteilenden Platz auf alle Spalten
-                       // gleichmaessig verteilen.
+                       // gleichmäßig verteilen.
                        for( sal_uInt16 i=0; i<nCols; i++ )
                        {
                                sal_uLong nColMax = GetColumn( i )->GetMax();
@@ -1491,7 +1488,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
        }
        else
        {
-               // den ueber die Minimalbreite herausgehenden Platz entsprechend
+               // den über die Minimalbreite herausgehenden Platz entsprechend
                // den einzelnen Spalten anteilig zuschlagen
                if( !nAbsTabWidth )
                        nAbsTabWidth = nAbsAvail;
@@ -1530,20 +1527,20 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
 
        }
 
-       // Schritt 4: Fuer Tabellen in Tabellen kann es links und/oder rechts
+       // Schritt 4: Für Tabellen in Tabellen kann es links und/oder rechts
        // noch Ausgleichzellen geben. Deren Breite wird jetzt berechnet.
        nInhAbsLeftSpace = 0;
        nInhAbsRightSpace = 0;
        if( !IsTopTable() && (nRelLeftFill>0 || nRelRightFill>0 ||
                                                  nAbsTabWidth<nAbsAvail) )
        {
-               // Die Breite von zusaetzlichen Zellen zur Ausrichtung der
+               // Die Breite von zusätzlichen Zellen zur Ausrichtung der
                // inneren Tabelle bestimmen
                sal_uInt16 nAbsDist = (sal_uInt16)(nAbsAvail-nAbsTabWidth);
                sal_uInt16 nRelDist = (sal_uInt16)(nRelAvail-nRelTabWidth);
                sal_uInt16 nParentInhAbsLeftSpace = 0, nParentInhAbsRightSpace 
= 0;
 
-               // Groesse und Position der zusaetzlichen Zellen bestimmen
+               // Größe und Position der zusätzlichen Zellen bestimmen
                switch( eTableAdjust )
                {
                case SVX_ADJUST_RIGHT:
@@ -1577,9 +1574,9 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 
nAbsAvail, sal_uInt16 nRelAv
                ASSERT( !pRightFillerBox || nRelRightFill>0,
                                "Fuer rechte Filler-Box ist keine Breite da!" );
 
-               // Filler-Breiten werden auf die aeusseren Spalten geschlagen, 
wenn
-               // es nach dem ersten Durchlauf keine Boxen fuer sie gibt 
(nWidth>0)
-               // oder ihre Breite zu klein wuerde oder wenn es COL-Tags gibt 
und
+               // Filler-Breiten werden auf die äußeren Spalten geschlagen, 
wenn
+               // es nach dem ersten Durchlauf keine Boxen für sie gibt 
(nWidth>0)
+               // oder ihre Breite zu klein würde oder wenn es COL-Tags gibt 
und
                // die Filler-Breite der Umrandung-Breite entspricht (dann 
haben wir
                // die Tabelle wahrscheinlich selbst exportiert)
                if( nRelLeftFill && !pLeftFillerBox &&
@@ -1650,11 +1647,11 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, 
sal_uInt16 nAbsAvail,
                                                                   sal_uInt16 
nAbsRightSpace,
                                                                   sal_uInt16 
nParentInhAbsSpace )
 {
-       // SetWidth muss am Ende einmal mehr fuer jede Zelle durchlaufen
+       // SetWidth muss am Ende einmal mehr für jede Zelle durchlaufen
        // worden sein.
        nWidthSet++;
 
-       // Schritt 0: Wenn noetig, wird hier noch der Pass2 des 
Layout-Algorithmus
+       // Schritt 0: Wenn nötig, wird hier noch der Pass2 des 
Layout-Algorithmus
        // aufgerufen.
        if( bCallPass2 )
                AutoLayoutPass2( nAbsAvail, nRelAvail, nAbsLeftSpace, 
nAbsRightSpace,
@@ -1662,7 +1659,7 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, 
sal_uInt16 nAbsAvail,
 
        // Schritt 1: Setzten der neuen Breite an allen Content-Boxen.
        // Da die Boxen nichts von der HTML-Tabellen-Struktur wissen, wird
-       // ueber die HTML-Tabellen-Struktur iteriert. Fuer Tabellen in Tabellen
+       // über die HTML-Tabellen-Struktur iteriert. Für Tabellen in Tabellen
        // in Tabellen wird rekursiv SetWidth aufgerufen.
        for( sal_uInt16 i=0; i<nRows; i++ )
        {
@@ -1703,9 +1700,9 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, 
sal_uInt16 nAbsAvail,
 
        // Schritt 2: Wenn eine Top-Tabelle vorliegt, werden jetzt die Formate
        // der Nicht-Content-Boxen angepasst. Da diese aufgrund der
-       // Garbage-Collection in der HTML-Tabelle nicht bekannt sind, muessen
-       // wir hier ueber die Tabelle iterieren. Bei der Gelegenheit wird auch
-       // das Tabellen-Frameformat angepasst. Fuer Tabellen in Tabellen werden
+       // Garbage-Collection in der HTML-Tabelle nicht bekannt sind, müssen
+       // wir hier über die Tabelle iterieren. Bei der Gelegenheit wird auch
+       // das Tabellen-Frameformat angepasst. Für Tabellen in Tabellen werden
        // stattdessen die Breiten der Filler-Zellen gesetzt.
        if( IsTopTable() )
        {
@@ -1713,10 +1710,10 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, 
sal_uInt16 nAbsAvail,
                ((SwTable *)pSwTable)->GetTabLines().ForEach( &lcl_ResizeLine,
                                                                                
                          &nCalcTabWidth );
                ASSERT( Abs( nRelTabWidth-nCalcTabWidth ) < COLFUZZY,
-                               "Tabellebreite stimmt nicht mit Zeilenbreite 
ueberein." );
+                               "Tabellenbreite stimmt nicht mit Zeilenbreite 
überein." );
 
                // Beim Anpassen des Tabellen-Formats dieses locken, weil sonst
-               // die Boxformate erneut angepasst werden. Ausserdem muss eine
+               // die Boxformate erneut angepasst werden. Außerdem muss eine
                // evtl. vorhandene %-Angabe in jedem Fall erhalten bleiben.
                SwFrmFmt *pFrmFmt = pSwTable->GetFrmFmt();
                ((SwTable *)pSwTable)->LockModify();
@@ -1740,7 +1737,7 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, 
sal_uInt16 nAbsAvail,
                                if( bUseRelWidth )
                                {
                                        // Bei %-Angaben wird die Breite auf 
das Minimum gesetzt.
-                                       aFlyFrmSize.SetWidth(  nMin > USHRT_MAX 
? USHRT_MAX
+                                       aFlyFrmSize.SetWidth( nMin > USHRT_MAX  
? USHRT_MAX
                                                                                
                                        : nMin );
                                        aFlyFrmSize.SetWidthPercent( 
(sal_uInt8)nWidthOption );
                                }
@@ -1756,7 +1753,7 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, 
sal_uInt16 nAbsAvail,
                        // checke doch mal ob die Tabellen korrekte Breiten 
haben
                        SwTwips nSize = 
pSwTable->GetFrmFmt()->GetFrmSize().GetWidth();
                        const SwTableLines& rLines = pSwTable->GetTabLines();
-                       for( sal_uInt16 n = 0; n < rLines.Count(); ++n  )
+                       for( sal_uInt16 n = 0; n < rLines.Count(); ++n )
                                _CheckBoxWidth( *rLines[ n ], nSize );
                }
 #endif
@@ -1780,7 +1777,7 @@ void SwHTMLTableLayout::SetWidths( sal_Bool bCallPass2, 
sal_uInt16 nAbsAvail,
 void SwHTMLTableLayout::_Resize( sal_uInt16 nAbsAvail, sal_Bool bRecalc )
 {
        // Wenn bRecalc gesetzt ist, hat sich am Inhalt der Tabelle etwas
-       // geaendert. Es muss dann der erste Pass noch einmal durchgefuehrt
+       // geändert. Es muss dann der erste Pass noch einmal durchgeführt
        // werden.
        if( bRecalc )
                AutoLayoutPass1();
@@ -1789,7 +1786,7 @@ void SwHTMLTableLayout::_Resize( sal_uInt16 nAbsAvail, 
sal_Bool bRecalc )
        if ( pRoot && pRoot->IsCallbackActionEnabled() )
                pRoot->StartAllAction();        //swmod 071108//swmod 071225
 
-       // Sonst koennen die Breiten gesetzt werden, wobei zuvor aber jeweils
+       // Sonst können die Breiten gesetzt werden, wobei zuvor aber jeweils
        // noch der Pass 2 laufen muss.
        SetWidths( sal_True, nAbsAvail );
 
@@ -1817,7 +1814,7 @@ sal_Bool SwHTMLTableLayout::Resize( sal_uInt16 nAbsAvail, 
sal_Bool bRecalc,
                return sal_False;
        ASSERT( IsTopTable(), "Resize darf nur an Top-Tabellen aufgerufen 
werden" );
 
-       // Darf die Tabelle ueberhaupt Resized werden oder soll sie es trotzdem?
+       // Darf die Tabelle überhaupt Resized werden oder soll sie es trotzdem?
        if( bMustNotResize && !bForce )
                return sal_False;
 
@@ -1827,9 +1824,9 @@ sal_Bool SwHTMLTableLayout::Resize( sal_uInt16 nAbsAvail, 
sal_Bool bRecalc,
 
        const SwDoc *pDoc = GetDoc();
 
-       // Wenn es ein Layout gibt, wurde evtl. die Groesse der Root-Frames
-       // und nicht die der VisArea uebergeben. Wenn wir nicht in einem Rahmen
-       // stehen, muss die Tabelle allerdings fuer die VisArea berechnet 
werden,
+       // Wenn es ein Layout gibt, wurde evtl. die Größe der Root-Frames
+       // und nicht die der VisArea übergeben. Wenn wir nicht in einem Rahmen
+       // stehen, muss die Tabelle allerdings für die VisArea berechnet werden,
        // weil sonst die Umschaltung von relativ nach absolut nicht 
funktioniert.
        if( pDoc->GetCurrentViewShell() && 
pDoc->GetCurrentViewShell()->GetViewOptions()->getBrowseMode() )
        {
@@ -1841,7 +1838,7 @@ sal_Bool SwHTMLTableLayout::Resize( sal_uInt16 nAbsAvail, 
sal_Bool bRecalc,
        if( nDelay==0 && aResizeTimer.IsActive() )
        {
                // Wenn beim Aufruf eines synchronen Resize noch ein asynchrones
-               // Resize aussteht, dann werden nur die neuen Werte uebernommen.
+               // Resize aussteht, dann werden nur die neuen Werte übernommen.
 
                bRecalc |= bDelayedResizeRecalc;
                nDelayedResizeAbsAvail = nAbsAvail;
@@ -1851,12 +1848,12 @@ sal_Bool SwHTMLTableLayout::Resize( sal_uInt16 
nAbsAvail, sal_Bool bRecalc,
        // Optimierung:
        // Wenn die Minima/Maxima nicht neu berechnet werden sollen und
        // - die Breite der Tabelle nie neu berechnet werden muss, oder
-       // - die Tabelle schon fuer die uebergebene Breite berechnet wurde, oder
-       // - der verfuegbare Platz kleiner oder gleich der Minimalbreite ist
+       // - die Tabelle schon für die übergebene Breite berechnet wurde, oder
+       // - der verfügbare Platz kleiner oder gleich der Minimalbreite ist
        //   und die Tabelle bereits die Minimalbreite besitzt, oder
-       // - der verfuegbare Platz groesser ist als die Maximalbreite und
+       // - der verfügbare Platz größer ist als die Maximalbreite und
        //   die Tabelle bereits die Maximalbreite besitzt
-       //   wird sich an der Tabelle nichts aendern.
+       //   wird sich an der Tabelle nichts ändern.
        if( !bRecalc && ( !bMustResize ||
                                          (nLastResizeAbsAvail==nAbsAvail) ||
                                          (nAbsAvail<=nMin && 
nRelTabWidth==nMin) ||
@@ -1893,3 +1890,5 @@ void SwHTMLTableLayout::BordersChanged( sal_uInt16 
nAbsAvail, sal_Bool bRecalc )
 
        Resize( nAbsAvail, bRecalc );
 }
+
+/* vim: set noet sw=4 ts=4: */
diff --git a/main/sw/source/ui/shells/langhelper.cxx 
b/main/sw/source/ui/shells/langhelper.cxx
index 5d4dec0467..6dd0a18cb4 100644
--- a/main/sw/source/ui/shells/langhelper.cxx
+++ b/main/sw/source/ui/shells/langhelper.cxx
@@ -1,5 +1,5 @@
 /**************************************************************
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,20 +7,18 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  *************************************************************/
 
-
-
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_sw.hxx"
 
@@ -63,27 +61,27 @@ using namespace ::com::sun::star;
 namespace SwLangHelper
 {
 
-    sal_uInt16 GetLanguageStatus( OutlinerView* pOLV, SfxItemSet& rSet )
+       sal_uInt16 GetLanguageStatus( OutlinerView* pOLV, SfxItemSet& rSet )
        {
                ESelection aSelection = pOLV->GetSelection();
                EditView& rEditView=pOLV->GetEditView();
                EditEngine* pEditEngine=rEditView.GetEditEngine();
 
                // the value of used script types
-               const sal_uInt16 nScriptType =pOLV->GetSelectedScriptType();    
+               const sal_uInt16 nScriptType =pOLV->GetSelectedScriptType();
                String aScriptTypesInUse( String::CreateFromInt32( nScriptType 
) );//pEditEngine->GetScriptType(aSelection)
 
                SvtLanguageTable aLangTable;
-               
+
                // get keyboard language
                String aKeyboardLang;
                LanguageType nLang = LANGUAGE_DONTKNOW;
-                
+
                Window* pWin = rEditView.GetWindow();
                if(pWin)
                        nLang = pWin->GetInputLanguage();
                if (nLang != LANGUAGE_DONTKNOW && nLang != LANGUAGE_SYSTEM)
-                       aKeyboardLang = aLangTable.GetString( nLang );  
+                       aKeyboardLang = aLangTable.GetString( nLang );
 
                // get the language that is in use
                const String aMultipleLanguages = String::CreateFromAscii("*");
@@ -92,22 +90,22 @@ namespace SwLangHelper
                nLang = SwLangHelper::GetCurrentLanguage( aSet,nScriptType );
                if (nLang != LANGUAGE_DONTKNOW)
                        aCurrentLang = aLangTable.GetString( nLang );
-                          
+
                // build sequence for status value
                uno::Sequence< ::rtl::OUString > aSeq( 4 );
                aSeq[0] = aCurrentLang;
                aSeq[1] = aScriptTypesInUse;
                aSeq[2] = aKeyboardLang;
                aSeq[3] = SwLangHelper::GetTextForLanguageGuessing( 
pEditEngine, aSelection );
-                
+
                // set sequence as status value
                SfxStringListItem aItem( SID_LANGUAGE_STATUS );
                aItem.SetStringList( aSeq );
                rSet.Put( aItem, SID_LANGUAGE_STATUS );
-        return 0;
+               return 0;
        }
 
-    bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView 
&rView, SwWrtShell &rSh )
+       bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView 
&rView, SwWrtShell &rSh )
        {
                bool bRestoreSelection = false;
                SfxItemSet aEditAttr(pOLV->GetAttribs());
@@ -117,7 +115,7 @@ namespace SwLangHelper
 
                // get the language
                String aNewLangTxt;
-            
+
                SFX_REQUEST_ARG( rReq, pItem, SfxStringItem, 
SID_LANGUAGE_STATUS , sal_False );
                if (pItem)
                        aNewLangTxt = pItem->GetValue();
@@ -126,79 +124,79 @@ namespace SwLangHelper
                //!! (call to GetView().GetViewFrame() will break if the
                //!! SwTextShell got destroyed meanwhile.)
                SfxViewFrame *pViewFrame = rView.GetViewFrame();
-            
-        if (aNewLangTxt.EqualsAscii( "*" ))
+
+               if (aNewLangTxt.EqualsAscii( "*" ))
                {
-            // open the dialog "Tools/Options/Language Settings - Language"
+                       // open the dialog "Tools/Options/Language Settings - 
Language"
                        SfxAbstractDialogFactory* pFact = 
SfxAbstractDialogFactory::Create();
                        if (pFact)
-                       {    
-                VclAbstractDialog* pDlg = pFact->CreateVclDialog( 
rView.GetWindow(), SID_LANGUAGE_OPTIONS ); 
-                               pDlg->Execute();    
+                       {
+                               VclAbstractDialog* pDlg = 
pFact->CreateVclDialog( rView.GetWindow(), SID_LANGUAGE_OPTIONS );
+                               pDlg->Execute();
                                delete pDlg;
                        }
                }
                else
                {
-            // setting the new language...
-            if (aNewLangTxt.Len() > 0)
+                       // setting the new language...
+                       if (aNewLangTxt.Len() > 0)
                        {
-                const String aSelectionLangPrefix( 
String::CreateFromAscii("Current_") );
-                const String aParagraphLangPrefix( 
String::CreateFromAscii("Paragraph_") );
-                const String aDocumentLangPrefix( 
String::CreateFromAscii("Default_") );
-                const String aStrNone( 
String::CreateFromAscii("LANGUAGE_NONE") );
+                               const String aSelectionLangPrefix( 
String::CreateFromAscii("Current_") );
+                               const String aParagraphLangPrefix( 
String::CreateFromAscii("Paragraph_") );
+                               const String aDocumentLangPrefix( 
String::CreateFromAscii("Default_") );
+                               const String aStrNone( 
String::CreateFromAscii("LANGUAGE_NONE") );
                                const String aStrResetLangs( 
String::CreateFromAscii("RESET_LANGUAGES") );
 
                                xub_StrLen nPos = 0;
-                bool bForSelection = true;
-                bool bForParagraph = false;
-                if (STRING_NOTFOUND != (nPos = aNewLangTxt.Search( 
aSelectionLangPrefix, 0 )))
-                {
-                    // ... for the current selection
-                    aNewLangTxt = aNewLangTxt.Erase( nPos, 
aSelectionLangPrefix.Len() );
-                    bForSelection = true;
+                               bool bForSelection = true;
+                               bool bForParagraph = false;
+                               if (STRING_NOTFOUND != (nPos = 
aNewLangTxt.Search( aSelectionLangPrefix, 0 )))
+                               {
+                                       // ... for the current selection
+                                       aNewLangTxt = aNewLangTxt.Erase( nPos, 
aSelectionLangPrefix.Len() );
+                                       bForSelection = true;
                                }
-                else if (STRING_NOTFOUND != (nPos = aNewLangTxt.Search( 
aParagraphLangPrefix , 0 )))
-                {
-                    // ... for the current paragraph language
-                    aNewLangTxt = aNewLangTxt.Erase( nPos, 
aParagraphLangPrefix.Len() );
-                    bForSelection = true;
-                    bForParagraph = true;
-                }
-                else if (STRING_NOTFOUND != (nPos = aNewLangTxt.Search( 
aDocumentLangPrefix , 0 )))
-                {
-                    // ... as default document language
-                    aNewLangTxt = aNewLangTxt.Erase( nPos, 
aDocumentLangPrefix.Len() );
-                    bForSelection = false;
+                               else if (STRING_NOTFOUND != (nPos = 
aNewLangTxt.Search( aParagraphLangPrefix , 0 )))
+                               {
+                                       // ... for the current paragraph 
language
+                                       aNewLangTxt = aNewLangTxt.Erase( nPos, 
aParagraphLangPrefix.Len() );
+                                       bForSelection = true;
+                                       bForParagraph = true;
+                               }
+                               else if (STRING_NOTFOUND != (nPos = 
aNewLangTxt.Search( aDocumentLangPrefix , 0 )))
+                               {
+                                       // ... as default document language
+                                       aNewLangTxt = aNewLangTxt.Erase( nPos, 
aDocumentLangPrefix.Len() );
+                                       bForSelection = false;
                                }
 
-                if (bForParagraph)
+                               if (bForParagraph)
                                {
                                        bRestoreSelection = true;
-                    SwLangHelper::SelectPara( rEditView, aSelection );
+                                       SwLangHelper::SelectPara( rEditView, 
aSelection );
                                        aSelection = pOLV->GetSelection();
                                }
-                if (!bForSelection) // document language to be changed...
-                {
-                    rSh.StartAction();
-                    rSh.LockView( sal_True );
-                    rSh.Push();
-                    
-                    // prepare to apply new language to all text in document
-                    rSh.SelAll();
+                               if (!bForSelection) // document language to be 
changed...
+                               {
+                                       rSh.StartAction();
+                                       rSh.LockView( sal_True );
+                                       rSh.Push();
+
+                                       // prepare to apply new language to all 
text in document
+                                       rSh.SelAll();
                                        rSh.ExtendedSelectAll();
-                }
-                
-                if (aNewLangTxt == aStrNone)
-                    SwLangHelper::SetLanguage_None( rSh, pOLV, aSelection, 
bForSelection, aEditAttr );
-                else if (aNewLangTxt == aStrResetLangs)
-                    SwLangHelper::ResetLanguages( rSh, pOLV, aSelection, 
bForSelection );
-                else
+                               }
+
+                               if (aNewLangTxt == aStrNone)
+                                       SwLangHelper::SetLanguage_None( rSh, 
pOLV, aSelection, bForSelection, aEditAttr );
+                               else if (aNewLangTxt == aStrResetLangs)
+                                       SwLangHelper::ResetLanguages( rSh, 
pOLV, aSelection, bForSelection );
+                               else
                                        SwLangHelper::SetLanguage( rSh, pOLV, 
aSelection, aNewLangTxt, bForSelection, aEditAttr );
-                
+
                                // ugly hack, as it seems that 
EditView/EditEngine does not update their spellchecking marks
                                // when setting a new language attribute
-                               if (bForSelection) 
+                               if (bForSelection)
                                {
                                        const SwViewOption* pVOpt = 
rView.GetWrtShellPtr()->GetViewOptions();
                                        sal_uLong nCntrl = 
pEditEngine->GetControlWord();
@@ -220,38 +218,38 @@ namespace SwLangHelper
                                        rEditView.Invalidate();
                                }
 
-                if (!bForSelection) 
-                {
-                    // need to release view and restore selection...
-                    rSh.Pop( sal_False );
-                    rSh.LockView( sal_False );
-                    rSh.EndAction();
-                }
+                               if (!bForSelection)
+                               {
+                                       // need to release view and restore 
selection...
+                                       rSh.Pop( sal_False );
+                                       rSh.LockView( sal_False );
+                                       rSh.EndAction();
+                               }
                        }
                }
-        
-        // invalidate slot to get the new language displayed
-        pViewFrame->GetBindings().Invalidate( rReq.GetSlot() );
-        
-        rReq.Done();
+
+               // invalidate slot to get the new language displayed
+               pViewFrame->GetBindings().Invalidate( rReq.GetSlot() );
+
+               rReq.Done();
                return bRestoreSelection;
        }
-       
 
-    void SetLanguage( SwWrtShell &rWrtSh, const String &rLangText, bool 
bIsForSelection, SfxItemSet &rCoreSet )
+
+       void SetLanguage( SwWrtShell &rWrtSh, const String &rLangText, bool 
bIsForSelection, SfxItemSet &rCoreSet )
        {
                SetLanguage( rWrtSh, 0 , ESelection(), rLangText, 
bIsForSelection, rCoreSet );
        }
 
-    void SetLanguage( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection 
aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet 
)
+       void SetLanguage( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection 
aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet 
)
        {
                const LanguageType nLang = SvtLanguageTable().GetType( 
rLangText );
                if (nLang != LANGUAGE_DONTKNOW)
                {
                        sal_uInt16 nScriptType = 
SvtLanguageOptions::GetScriptTypeOfLanguage( nLang );
-               
-            EditEngine* pEditEngine = pOLV ? 
pOLV->GetEditView().GetEditEngine() : NULL;
-            DBG_ASSERT( !pOLV || pEditEngine, "OutlinerView without 
EditEngine???" );
+
+                       EditEngine* pEditEngine = pOLV ? 
pOLV->GetEditView().GetEditEngine() : NULL;
+                       DBG_ASSERT( !pOLV || pEditEngine, "OutlinerView without 
EditEngine???" );
 
                        //get ScriptType
                        sal_uInt16 nLangWhichId = 0;
@@ -261,15 +259,15 @@ namespace SwLangHelper
                                case SCRIPTTYPE_LATIN :    nLangWhichId = 
pEditEngine ? EE_CHAR_LANGUAGE : RES_CHRATR_LANGUAGE; break;
                                case SCRIPTTYPE_ASIAN :    nLangWhichId = 
pEditEngine ? EE_CHAR_LANGUAGE_CJK : RES_CHRATR_CJK_LANGUAGE; break;
                                case SCRIPTTYPE_COMPLEX :  nLangWhichId = 
pEditEngine ? EE_CHAR_LANGUAGE_CTL : RES_CHRATR_CTL_LANGUAGE; break;
-                               default: 
+                               default:
                                        bIsSingleScriptType = false;
                                        DBG_ERROR( "unexpected case" );
                        }
                        if (bIsSingleScriptType)
                        {
-                // change language for selection or paragraph
-                // (for paragraph is handled by previosuly having set the 
selection to the
-                // whole paragraph)
+                               // change language for selection or paragraph
+                               // (for paragraph is handled by previosuly 
having set the selection to the
+                               // whole paragraph)
                                if (bIsForSelection)
                                {
                                        // apply language to current selection
@@ -295,7 +293,7 @@ namespace SwLangHelper
                                                 case EE_CHAR_LANGUAGE_CTL :  
nLangWhichId = RES_CHRATR_CTL_LANGUAGE; break;
                                        }
                                        rWrtSh.SetDefault( SvxLanguageItem( 
nLang, nLangWhichId ) );
-                   
+
                                        // #i102191: hard set respective 
language attribute in text document
                                        // (for all text in the document - 
which should be selected by now...)
                                        rWrtSh.SetAttrItem( SvxLanguageItem( 
nLang, nLangWhichId ) );
@@ -304,38 +302,38 @@ namespace SwLangHelper
                }
        }
 
-    void SetLanguage_None( SwWrtShell &rWrtSh, bool bIsForSelection, 
SfxItemSet &rCoreSet )
+       void SetLanguage_None( SwWrtShell &rWrtSh, bool bIsForSelection, 
SfxItemSet &rCoreSet )
        {
-        SetLanguage_None( rWrtSh,0,ESelection(),bIsForSelection,rCoreSet );
+               SetLanguage_None( 
rWrtSh,0,ESelection(),bIsForSelection,rCoreSet );
        }
 
-    void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection 
aSelection, bool bIsForSelection, SfxItemSet &rCoreSet )
+       void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView* pOLV, 
ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet )
        {
-           // EditEngine IDs
-           const sal_uInt16 aLangWhichId_EE[3] =
-           {
-                   EE_CHAR_LANGUAGE,
-                   EE_CHAR_LANGUAGE_CJK,
-                   EE_CHAR_LANGUAGE_CTL
-           };
-
-           // Writewr IDs
-           const sal_uInt16 aLangWhichId_Writer[3] =
-           {
-                   RES_CHRATR_LANGUAGE,
-                   RES_CHRATR_CJK_LANGUAGE,
-                   RES_CHRATR_CTL_LANGUAGE
-           };
+               // EditEngine IDs
+               const sal_uInt16 aLangWhichId_EE[3] =
+               {
+                       EE_CHAR_LANGUAGE,
+                       EE_CHAR_LANGUAGE_CJK,
+                       EE_CHAR_LANGUAGE_CTL
+               };
+
+               // Writer IDs
+               const sal_uInt16 aLangWhichId_Writer[3] =
+               {
+                       RES_CHRATR_LANGUAGE,
+                       RES_CHRATR_CJK_LANGUAGE,
+                       RES_CHRATR_CTL_LANGUAGE
+               };
 
                if (bIsForSelection)
                {
-            // change language for selection or paragraph
-            // (for paragraph is handled by previosuly having set the 
selection to the
-            // whole paragraph)
+                       // change language for selection or paragraph
+                       // (for paragraph is handled by previously having set 
the selection to the
+                       // whole paragraph)
 
-            EditEngine* pEditEngine = pOLV ? 
pOLV->GetEditView().GetEditEngine() : NULL;
-            DBG_ASSERT( !pOLV || pEditEngine, "OutlinerView without 
EditEngine???" );
-            if (pEditEngine)
+                       EditEngine* pEditEngine = pOLV ? 
pOLV->GetEditView().GetEditEngine() : NULL;
+                       DBG_ASSERT( !pOLV || pEditEngine, "OutlinerView without 
EditEngine???" );
+                       if (pEditEngine)
                        {
                                for (sal_uInt16 i = 0; i < 3; ++i)
                                        rCoreSet.Put( SvxLanguageItem( 
LANGUAGE_NONE, aLangWhichId_EE[i] ));
@@ -371,37 +369,37 @@ namespace SwLangHelper
 
        void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection 
aSelection, bool bIsForSelection )
        {
-        (void) bIsForSelection;
-        (void) aSelection;
+               (void) bIsForSelection;
+               (void) aSelection;
 
-        // reset language for current selection.
-        // The selection should already have been expanded to the whole 
paragraph or 
-        // to all text in the document if those are the ranges where to reset 
-        // the language attributes
+               // reset language for current selection.
+               // The selection should already have been expanded to the whole 
paragraph or
+               // to all text in the document if those are the ranges where to 
reset
+               // the language attributes
 
                if (pOLV)
                {
-            EditView &rEditView = pOLV->GetEditView();
-            rEditView.RemoveAttribs( true, EE_CHAR_LANGUAGE );
-            rEditView.RemoveAttribs( true, EE_CHAR_LANGUAGE_CJK );
-            rEditView.RemoveAttribs( true, EE_CHAR_LANGUAGE_CTL );
+                       EditView &rEditView = pOLV->GetEditView();
+                       rEditView.RemoveAttribs( true, EE_CHAR_LANGUAGE );
+                       rEditView.RemoveAttribs( true, EE_CHAR_LANGUAGE_CJK );
+                       rEditView.RemoveAttribs( true, EE_CHAR_LANGUAGE_CTL );
                }
                else
                {
-                   SvUShortsSort aAttribs;
-                   aAttribs.Insert( RES_CHRATR_LANGUAGE );
-                   aAttribs.Insert( RES_CHRATR_CJK_LANGUAGE );
-                   aAttribs.Insert( RES_CHRATR_CTL_LANGUAGE );
-                   rWrtSh.ResetAttr( &aAttribs );
+                       SvUShortsSort aAttribs;
+                       aAttribs.Insert( RES_CHRATR_LANGUAGE );
+                       aAttribs.Insert( RES_CHRATR_CJK_LANGUAGE );
+                       aAttribs.Insert( RES_CHRATR_CTL_LANGUAGE );
+                       rWrtSh.ResetAttr( &aAttribs );
                }
-    }
+       }
 
 
-       /// @returns : the language for the selected text that is set for the
-       ///     specified attribute (script type).
-       ///     If there are more than one languages used LANGUAGE_DONTKNOW 
will be returned.
-       /// @param nLangWhichId : one of
-       ///     RES_CHRATR_LANGUAGE, RES_CHRATR_CJK_LANGUAGE, 
RES_CHRATR_CTL_LANGUAGE,
+       // @returns : the language for the selected text that is set for the
+       //     specified attribute (script type).
+       //     If there are more than one languages used LANGUAGE_DONTKNOW will 
be returned.
+       // @param nLangWhichId : one of
+       //     RES_CHRATR_LANGUAGE, RES_CHRATR_CJK_LANGUAGE, 
RES_CHRATR_CTL_LANGUAGE,
        LanguageType GetLanguage( SwWrtShell &rSh, sal_uInt16 nLangWhichId )
        {
                SfxItemSet aSet( rSh.GetAttrPool(), nLangWhichId, nLangWhichId 
);
@@ -424,7 +422,7 @@ namespace SwLangHelper
                }
                else if (nState == SFX_ITEM_DEFAULT)
                {
-                       // since the attribute is not set: retrieve the default 
value 
+                       // since the attribute is not set: retrieve the default 
value
                        nLang = (dynamic_cast< const SvxLanguageItem& 
>(aSet.GetPool()->GetDefaultItem( nLangWhichId ))).GetLanguage();
                }
                else if (nState == SFX_ITEM_DONTCARE)
@@ -437,10 +435,10 @@ namespace SwLangHelper
                return nLang;
        }
 
-       /// @returns: the language in use for the selected text.
-       ///     'In use' means the language(s) matching the script type(s) of 
the
-       ///     selected text. Or in other words, the language a spell checker 
would use.
-       ///     If there is more than one language LANGUAGE_DONTKNOW will be 
returned.
+       // @returns: the language in use for the selected text.
+       //     'In use' means the language(s) matching the script type(s) of the
+       //     selected text. Or in other words, the language a spell checker 
would use.
+       //     If there is more than one language LANGUAGE_DONTKNOW will be 
returned.
        LanguageType GetCurrentLanguage( SwWrtShell &rSh )
        {
                // get all script types used in current selection
@@ -488,11 +486,11 @@ namespace SwLangHelper
                return nCurrentLang;
        }
 
-       /// @returns: the language in use for the selected text.
-       ///     'In use' means the language(s) matching the script type(s) of 
the
-       ///     selected text. Or in other words, the language a spell checker 
would use.
-       ///     If there is more than one language LANGUAGE_DONTKNOW will be 
returned.
-    LanguageType GetCurrentLanguage( SfxItemSet aSet, sal_uInt16 nScriptType )
+       // @returns: the language in use for the selected text.
+       //     'In use' means the language(s) matching the script type(s) of the
+       //     selected text. Or in other words, the language a spell checker 
would use.
+       //     If there is more than one language LANGUAGE_DONTKNOW will be 
returned.
+       LanguageType GetCurrentLanguage( SfxItemSet aSet, sal_uInt16 
nScriptType )
        {
                //set language attribute to use according to the script type
                sal_uInt16 nLangWhichId = 0;
@@ -504,7 +502,7 @@ namespace SwLangHelper
                         case SCRIPTTYPE_COMPLEX :  nLangWhichId = 
EE_CHAR_LANGUAGE_CTL; break;
                         default: bIsSingleScriptType = false;
                }
-           
+
                // get language according to the script type(s) in use
                LanguageType nCurrentLang = LANGUAGE_SYSTEM;
                if (bIsSingleScriptType)
@@ -528,7 +526,7 @@ namespace SwLangHelper
                                {
                                        nCurrentLang = LANGUAGE_DONTKNOW;
                                        break;
-                               }    
+                               }
                        }
                }
                DBG_ASSERT( nCurrentLang != LANGUAGE_SYSTEM, "failed to get the 
language?" );
@@ -559,11 +557,11 @@ namespace SwLangHelper
                return aText;
        }
 
-    String GetTextForLanguageGuessing( EditEngine* rEditEngine, ESelection 
aDocSelection )
+       String GetTextForLanguageGuessing( EditEngine* rEditEngine, ESelection 
aDocSelection )
        {
                // string for guessing language
                String aText;
-           
+
                aText = rEditEngine->GetText(aDocSelection);
                if (aText.Len() > 0)
                {
@@ -575,7 +573,7 @@ namespace SwLangHelper
                        nEnd = aText.Len() - nEnd > 100 ? nEnd + 100 : 
aText.Len();
                        aText = aText.Copy( nStt, nEnd - nStt );
                }
-           
+
                return aText;
        }
 
@@ -603,3 +601,5 @@ namespace SwLangHelper
        #endif
        }
 }
+
+/* vim: set noet sw=4 ts=4: */

Reply via email to