sw/source/filter/html/wrthtml.hxx | 209 ++++++++++++++++++-------------------- sw/source/uibase/app/docstyle.cxx | 6 - sw/source/uibase/inc/unotxvw.hxx | 2 sw/source/uibase/web/wview.cxx | 2 4 files changed, 109 insertions(+), 110 deletions(-)
New commits: commit 4edfbf752cf5591a80f308c30556416828e95a0b Author: Jens Carl <j.car...@gmx.de> Date: Sat Apr 15 05:15:26 2017 +0000 tdf#39468 Translate German comments in sw Translate German comments and terms in sw Change-Id: Ia74a75ae28b1e5ed855dcd9e6e09b9fd53e98450 Reviewed-on: https://gerrit.libreoffice.org/36558 Reviewed-by: Michael Stahl <mst...@redhat.com> Tested-by: Michael Stahl <mst...@redhat.com> diff --git a/sw/source/filter/html/wrthtml.hxx b/sw/source/filter/html/wrthtml.hxx index 0fd82ff92a9b..51a32bb2fc29 100644 --- a/sw/source/filter/html/wrthtml.hxx +++ b/sw/source/filter/html/wrthtml.hxx @@ -36,7 +36,7 @@ #include "wrt_fn.hxx" #include "htmlfly.hxx" -// einige Forward Deklarationen +// some forward declarations class Color; class SwFrameFormat; class SwFlyFrameFormat; @@ -65,10 +65,10 @@ extern SwAttrFnTab aHTMLAttrFnTab; #define HTML_PARSPACE (MM50) -// Flags fuer die Ausgabe von Rahmen aller Art -// BORDER geht nur bei OutHTML_Image -// ANYSIZE gibt an, ob auch VAR_SIZE und MIN_SIZE angaben exportiert werden -// ABSSIZE gibt an, ob Abstand und Umrandung ignoriert werden sollen +// flags for the output of any kind of frames +// BORDER only possible if OutHTML_Image +// ANYSIZE indicates, if also VAR_SIZE and MIN_SIZE values should be exported +// ABSSIZE indicates, if spacing and framing should be ignored enum class HtmlFrmOpts { NONE = 0, Align = 1<<0, @@ -129,8 +129,8 @@ namespace o3tl { #define CSS1_FMT_CMPREF (USHRT_MAX-1) #define CSS1_FMT_SPECIAL (USHRT_MAX-1) -// Die folgenden Flags bestimmen nur, welche Descriptoren, Tags, Optionen etc. -// ausgegeben werden ... +// the following flags only specify which descriptors, tags, options, +// and so on should be outputted // bit 0,1,2 #define CSS1_OUTMODE_SPAN_NO_ON 0x0000U #define CSS1_OUTMODE_SPAN_TAG_ON 0x0001U @@ -152,7 +152,7 @@ namespace o3tl { #define CSS1_OUTMODE_STYLE_OPT CSS1_OUTMODE_ONOFF(STYLE_OPT) #define CSS1_OUTMODE_RULE CSS1_OUTMODE_ONOFF(RULE) -// Die folgenden Flags legen fest, was ausgegeben wird +// the following flags specify what should be outputted // bit 6,7,8,9 #define CSS1_OUTMODE_TEMPLATE 0x0000U #define CSS1_OUTMODE_BODY ((sal_uInt16)(0x0001U << 6)) @@ -181,18 +181,18 @@ namespace o3tl { #define CSS1_OUTMODE_NO_SCRIPT ((sal_uInt16)(0x0004U << 11)) #define CSS1_OUTMODE_SCRIPT ((sal_uInt16)(0x0007U << 11)) -// der HTML-Writer +// the HTML writer struct HTMLControl { - // die Form, zu der das Control gehoert + // the form to which the control belongs css::uno::Reference<css::container::XIndexContainer> xFormComps; - sal_uLong nNdIdx; // der Node, in dem es verankert ist - sal_Int32 nCount; // wie viele Controls sind in dem Node + sal_uLong nNdIdx; // the node in which it's anchored + sal_Int32 nCount; // how many controls are on the node HTMLControl( const css::uno::Reference<css::container::XIndexContainer>& rForm, sal_uInt32 nIdx ); ~HTMLControl(); - // operatoren fuer das Sort-Array + // operators for the sort array bool operator<( const HTMLControl& rCtrl ) const { return nNdIdx < rCtrl.nNdIdx; @@ -207,15 +207,15 @@ public: struct SwHTMLFormatInfo { - const SwFormat *pFormat; // das Format selbst + const SwFormat *pFormat; // the format itself - OString aToken; // das auszugebende Token - OUString aClass; // die auszugebende Klasse + OString aToken; // the token to output + OUString aClass; // the class to output - std::unique_ptr<SfxItemSet> pItemSet; // der auszugebende Attribut-Set + std::unique_ptr<SfxItemSet> pItemSet; // the attribute set to output - sal_Int32 nLeftMargin; // ein par default-Werte fuer - sal_Int32 nRightMargin; // Absatz-Vorlagen + sal_Int32 nLeftMargin; // some default values for + sal_Int32 nRightMargin; // paragraph styles short nFirstLineIndent; sal_uInt16 nTopMargin; @@ -223,7 +223,7 @@ struct SwHTMLFormatInfo bool bScriptDependent; - // Konstruktor fuer einen Dummy zum Suchen + // ctor for a dummy to search explicit SwHTMLFormatInfo( const SwFormat *pF ) : pFormat( pF ), pItemSet( nullptr ), @@ -235,7 +235,7 @@ struct SwHTMLFormatInfo bScriptDependent(false) {} - // Konstruktor zum Erstellen der Format-Info + // ctor for creating of the format information SwHTMLFormatInfo( const SwFormat *pFormat, SwDoc *pDoc, SwDoc *pTemlate, bool bOutStyles, LanguageType eDfltLang=LANGUAGE_DONTKNOW, sal_uInt16 nScript=CSS1_OUTMODE_ANY_SCRIPT ); @@ -257,9 +257,9 @@ class IDocumentStylePoolAccess; class SwHTMLWriter : public Writer { SwHTMLPosFlyFrames *m_pHTMLPosFlyFrames; - std::unique_ptr<SwHTMLNumRuleInfo> m_pNumRuleInfo;// aktuelle Numerierung + std::unique_ptr<SwHTMLNumRuleInfo> m_pNumRuleInfo;// current numbering SwHTMLNumRuleInfo *m_pNextNumRuleInfo; - sal_uInt32 m_nHTMLMode; // Beschreibung der Export-Konfiguration + sal_uInt32 m_nHTMLMode; // description of export configuration FieldUnit m_eCSS1Unit; @@ -275,53 +275,53 @@ protected: void SetupFilterOptions(SfxMedium& rMedium) override; public: - std::vector<OUString> m_aImgMapNames; // geschriebene Image Maps - std::set<OUString> m_aImplicitMarks;// implizite Stprungmarken - std::set<OUString> m_aNumRuleNames;// Names of exported num rules - std::set<OUString> m_aScriptParaStyles;// script dependent para styles - std::set<OUString> m_aScriptTextStyles;// script dependent text styles + std::vector<OUString> m_aImgMapNames; // written image maps + std::set<OUString> m_aImplicitMarks; // implicit jump marks + std::set<OUString> m_aNumRuleNames; // names of exported num rules + std::set<OUString> m_aScriptParaStyles; // script dependent para styles + std::set<OUString> m_aScriptTextStyles; // script dependent text styles std::vector<OUString> m_aOutlineMarks; std::vector<sal_uInt32> m_aOutlineMarkPoss; - HTMLControls m_aHTMLControls; // die zu schreibenden Forms + HTMLControls m_aHTMLControls; // the forms to be written SwHTMLFormatInfos m_CharFormatInfos; SwHTMLFormatInfos m_TextCollInfos; - std::vector<SwFormatINetFormat*> m_aINetFormats; // die "offenen" INet-Attribute + std::vector<SwFormatINetFormat*> m_aINetFormats; // the "open" INet attributes SwHTMLTextFootnotes *m_pFootEndNotes; - OUString m_aCSS1Selector; // der Selektor eines Styles + OUString m_aCSS1Selector; // style selector OUString m_aNonConvertableCharacters; - OUString m_aBulletGrfs[MAXLEVEL]; // die Grafiken fuer Listen + OUString m_aBulletGrfs[MAXLEVEL]; // list graphics - css::uno::Reference<css::container::XIndexContainer> mxFormComps; // die aktuelle Form + css::uno::Reference<css::container::XIndexContainer> mxFormComps; // current form - rtl::Reference<SwDoc> m_xTemplate; // die HTML-Vorlage - Color *m_pDfltColor; // default Farbe - SwNodeIndex *m_pStartNdIdx; // Index des ersten Absatz - const SwPageDesc *m_pCurrPageDesc;// Die aktuelle Seiten-Vorlage + rtl::Reference<SwDoc> m_xTemplate; // HTML template + Color *m_pDfltColor; // default colour + SwNodeIndex *m_pStartNdIdx; // index of first paragraph + const SwPageDesc *m_pCurrPageDesc;// current page style const SwFormatFootnote *m_pFormatFootnote; - sal_uInt32 m_aFontHeights[7]; // die Font-Hoehen 1-7 + sal_uInt32 m_aFontHeights[7]; // font heights 1-7 - sal_uInt32 m_nWarn; // Result-Code fuer Warnungen - sal_uInt32 m_nLastLFPos; // letzte Position eines LF + sal_uInt32 m_nWarn; // warning code + sal_uInt32 m_nLastLFPos; // last position of LF - sal_uInt16 m_nLastParaToken; // fuers Absaetze zusammenhalten - sal_Int32 m_nBkmkTabPos; // akt. Position in der Bookmark-Tabelle - sal_uInt16 m_nImgMapCnt; // zum eindeutig + sal_uInt16 m_nLastParaToken; // to hold paragraphs together + sal_Int32 m_nBkmkTabPos; // current position in bookmark table + sal_uInt16 m_nImgMapCnt; sal_uInt16 m_nFormCntrlCnt; sal_uInt16 m_nEndNote; sal_uInt16 m_nFootNote; - sal_Int32 m_nLeftMargin; // linker Einzug (z.B. aus Listen) - sal_Int32 m_nDfltLeftMargin; // die defaults, der nicht geschrieben - sal_Int32 m_nDfltRightMargin; // werden muessen (aus der Vorlage) - short m_nFirstLineIndent; // Erstzeilen-Einzug (aus Listen) - short m_nDfltFirstLineIndent; // nicht zu schreibender default - sal_uInt16 m_nDfltTopMargin; // die defaults, der nicht geschrieben - sal_uInt16 m_nDfltBottomMargin; // werden muessen (aus der Vorlage) - sal_uInt16 m_nIndentLvl; // wie weit ist eingerueckt? - sal_Int32 m_nWhishLineLen; // wie lang darf eine Zeile werden? - sal_uInt16 m_nDefListLvl; // welcher DL-Level existiert gerade - sal_Int32 m_nDefListMargin; // Wie weit wird in DL eingerueckt + sal_Int32 m_nLeftMargin; // left indent (e.g. from lists) + sal_Int32 m_nDfltLeftMargin; // defaults which doesn't have to be + sal_Int32 m_nDfltRightMargin; // written (from template) + short m_nFirstLineIndent; // first line indent (from lists) + short m_nDfltFirstLineIndent; // not to write default + sal_uInt16 m_nDfltTopMargin; // defaults which doesn't have to be + sal_uInt16 m_nDfltBottomMargin; // written (from template) + sal_uInt16 m_nIndentLvl; // How far is it indented? + sal_Int32 m_nWhishLineLen; // How long can a line be? + sal_uInt16 m_nDefListLvl; // which DL level exists now + sal_Int32 m_nDefListMargin; // How far is the indentation in DL sal_uInt16 m_nHeaderFooterSpace; sal_uInt16 m_nTextAttrsToIgnore; sal_uInt16 m_nExportMode; @@ -333,57 +333,56 @@ public: rtl_TextEncoding m_eDestEnc; LanguageType m_eLang; - // Beschreibung der Export-Konfiguration + // description of the export configuration // 0 - bool m_bCfgOutStyles : 1; // Styles exportieren - bool m_bCfgPreferStyles : 1; // Styles herkoemmlichen Tags vorziehen - bool m_bCfgFormFeed : 1; // Form-Feeds exportieren - bool m_bCfgStarBasic : 1; // StarBasic exportieren + bool m_bCfgOutStyles : 1; // export styles + bool m_bCfgPreferStyles : 1; // prefer styles instead of usual tags + bool m_bCfgFormFeed : 1; // export form feeds + bool m_bCfgStarBasic : 1; // export StarBasic bool m_bCfgCpyLinkedGrfs : 1; - // Beschreibung dessen, was exportiert wird + // description of what will be exported - bool m_bFirstLine : 1; // wird die 1. Zeile ausgegeben ? - bool m_bTagOn : 1; // Tag an oder aus/Attr-Start oder -Ende + bool m_bFirstLine : 1; // is the first line outputted? + bool m_bTagOn : 1; // tag on or off i.e. Attr-Start or Attr-End - // Die folgenden beiden Flags geben an, wir Attribute exportiert werden: + // The following two flags specify how attributes are exported: // bTextAttr bOutOpts - // 0 0 Style-Sheets - // 1 0 Hints: Jedes Attribut wird als eignes Tag - // geschrieben und es gibt ein End-Tag - // 0 1 (Absatz-)Attribute: Das Attribut wird als Option - // eines bereits geschrieben Tags exportiert. Es - // gibt kein End-Tag. + // 0 0 style sheets + // 1 0 Hints: Every attribute will be written as its own tag + // and an end tag exists + // 0 1 (paragraph)attribute: The Attribute will be exported as option + // of an already written tag. There is no end tag. bool m_bTextAttr : 1; // 8 bool m_bOutOpts : 1; - bool m_bOutTable : 1; // wird der Tabelleninhalt geschrieben? + bool m_bOutTable : 1; // Will the table content be written? bool m_bOutHeader : 1; bool m_bOutFooter : 1; bool m_bOutFlyFrame : 1; - // Flags fuer Style-Export + // flags for style export + + bool m_bFirstCSS1Rule : 1; // was a property already written + bool m_bFirstCSS1Property : 1; // was a property already written + bool m_bPoolCollTextModified : 1; // the text body style was modified - bool m_bFirstCSS1Rule : 1; // wurde schon eine Property ausgegeben - bool m_bFirstCSS1Property : 1; // wurde schon eine Property ausgegeben - bool m_bPoolCollTextModified : 1; // die Textkoerper-Vorlage wurde - // modifiziert. // 16 bool m_bCSS1IgnoreFirstPageDesc : 1; - // was muss/kann/darf nicht ausgegeben werden? + // what must/can/may not be written? - bool m_bNoAlign : 1; // HTML-Tag erlaubt kein ALIGN=... - bool m_bClearLeft : 1; // <BR CLEAR=LEFT> am Absatz-Ende ausg. - bool m_bClearRight : 1; // <BR CLEAR=RIGHT> am Absatz-Ende ausg. - bool m_bLFPossible : 1; // ein Zeilenumbruch darf eingef. werden + bool m_bNoAlign : 1; // HTML tag doesn't allow ALIGN=... + bool m_bClearLeft : 1; // <BR CLEAR=LEFT> write at end of paragraph + bool m_bClearRight : 1; // <BR CLEAR=RIGHT> write at end of paragraph + bool m_bLFPossible : 1; // a line break can be inserted - // sonstiges + // others - bool m_bPreserveForm : 1; // die aktuelle Form beibehalten + bool m_bPreserveForm : 1; // preserve the current form - bool m_bCfgNetscape4 : 1; // Netscape4 Hacks + bool m_bCfgNetscape4 : 1; // Netscape4 hacks bool mbSkipImages : 1; /// If HTML header and footer should be written as well, or just the content itself. @@ -398,9 +397,9 @@ public: explicit SwHTMLWriter( const OUString& rBaseURL ); virtual ~SwHTMLWriter() override; - void Out_SwDoc( SwPaM* ); // schreibe den makierten Bereich + void Out_SwDoc( SwPaM* ); // write the marked range - // gebe alle an in aktuellen Ansatz stehenden Bookmarks aus + // output all bookmarks of current paragraph void OutAnchor( const OUString& rName ); void OutBookmarks(); void OutPointFieldmarks( const SwPosition& rPos ); @@ -410,7 +409,7 @@ public: void OutHyperlinkHRefValue( const OUString& rURL ); - // gebe die evt. an der akt. Position stehenden FlyFrame aus. + // output the FlyFrame anchored at current position bool OutFlyFrame( sal_uLong nNdIdx, sal_Int32 nContentIdx, HtmlPosition nPos, HTMLOutContext *pContext = nullptr ); void OutFrameFormat( AllHtmlFlags nType, const SwFrameFormat& rFormat, @@ -448,10 +447,10 @@ public: void OutCSS1_PixelProperty( const sal_Char *pProp, long nVal, bool bVert ); void OutCSS1_SfxItemSet( const SfxItemSet& rItemSet, bool bDeep=true ); - // BODY-Tag-Events aus der SFX-Konfigaurion + // events of BODY tag from SFX configuration void OutBasicBodyEvents(); - // BACKGROUND/BGCOLOR-Option + // BACKGROUND/BGCOLOR option void OutBackground( const SvxBrushItem *pBrushItem, bool bGraphic ); void OutBackground( const SfxItemSet& rItemSet, bool bGraphic ); @@ -461,9 +460,9 @@ public: void OutDirection( SvxFrameDirection nDir ); static OString convertDirection(SvxFrameDirection nDirection); - // ALT/ALIGN/WIDTH/HEIGHT/HSPACE/VSPACE-Optionen des aktuellen - // Frame-Formats ausgeben und ggf. ein <BR CLEAR=...> vorne an - // rEndTags anhaengen + // ALT/ALIGN/WIDTH/HEIGHT/HSPACE/VSPACE option of current + // frame format output and maybe add a <BR CLEAR=...> at the + // beginning of rEndTags OString OutFrameFormatOptions( const SwFrameFormat& rFrameFormat, const OUString& rAltText, HtmlFrmOpts nFrameOpts ); @@ -495,7 +494,7 @@ public: } void OutNewLine( bool bCheck=false ); - // fuer HTMLSaveData + // for HTMLSaveData SwPaM* GetEndPaM() { return pOrigPam; } void SetEndPaM( SwPaM* pPam ) { pOrigPam = pPam; } @@ -509,20 +508,20 @@ public: sal_uInt16 GetHTMLFontSize( sal_uInt32 nFontHeight ) const; - // Die aktuelle Numerierungs-Information holen. + // Fetch current numbering information. SwHTMLNumRuleInfo& GetNumInfo() { return *m_pNumRuleInfo; } - // Die Numerierungs-Information des naechsten Absatz holen. Sie - // muss noch nicht vorhanden sein! + // Fetch current numbering information of next paragraph. They + // don't have to exist yet! SwHTMLNumRuleInfo *GetNextNumInfo() { return m_pNextNumRuleInfo; } - // Die Numerierungs-Information des naechsten Absatz setzen. + // Set the numbering information of next paragraph. void SetNextNumInfo( SwHTMLNumRuleInfo *pNxt ) { m_pNextNumRuleInfo=pNxt; } - // Die Numerierungs-Information des naeschten Absatz fuellen. + // Fill the numbering information of next paragraph. void FillNextNumInfo(); - // Die Numerierungs-Information des naeschten Absatz loeschen. + // Clear numbering information of next paragraph. void ClearNextNumInfo(); static const SdrObject* GetHTMLControl( const SwDrawFrameFormat& rFormat ); @@ -600,12 +599,12 @@ inline void SwHTMLWriter::OutCSS1_Property( const sal_Char *pProp, OutCSS1_Property( pProp, nullptr, &rVal ); } -// Struktur speichert die aktuellen Daten des Writers zwischen, um -// einen anderen Dokument-Teil auszugeben, wie z.B. Header/Footer -// Mit den beiden USHORTs im CTOR wird ein neuer PaM erzeugt und auf -// die Position im Dokument gesetzt. -// Im Destructor werden alle Daten wieder restauriert und der angelegte -// Pam wieder geloescht. + +// Structure caches the current data of the writer to output +// another part of the document, like e.g. header/footer +// With the two USHORTs in the ctor a new PaM is created and sets the +// positions in the document. +// In dtor all data is restored and the created PaM is deleted again. struct HTMLSaveData { @@ -626,7 +625,7 @@ struct HTMLSaveData ~HTMLSaveData(); }; -// einige Funktions-Deklarationen +// some function prototypes Writer& OutHTML_FrameFormatOLENode( Writer& rWrt, const SwFrameFormat& rFormat, bool bInCntnr ); Writer& OutHTML_FrameFormatOLENodeGrf( Writer& rWrt, const SwFrameFormat& rFormat, diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx index 65ced01aa5fa..d8cbf183d675 100644 --- a/sw/source/uibase/app/docstyle.cxx +++ b/sw/source/uibase/app/docstyle.cxx @@ -2186,7 +2186,7 @@ const SwNumRule * SwDocStyleSheet::GetNumRule() void SwDocStyleSheet::SetNumRule(const SwNumRule& rRule) { - OSL_ENSURE(pNumRule, "Wo ist die NumRule"); + OSL_ENSURE(pNumRule, "Where is the NumRule"); rDoc.ChgNumRuleFormats( rRule ); } @@ -2429,14 +2429,14 @@ SfxStyleSheetBase& SwDocStyleSheetPool::Make( const OUString& rName, SfxStyleSheetBase* SwDocStyleSheetPool::Create( const SfxStyleSheetBase& /*rOrg*/) { - OSL_ENSURE(false , "Create im SW-Stylesheet-Pool geht nicht" ); + OSL_ENSURE(false , "Create in SW-Stylesheet-Pool not possible" ); return nullptr; } SfxStyleSheetBase* SwDocStyleSheetPool::Create( const OUString &, SfxStyleFamily, sal_uInt16 ) { - OSL_ENSURE( false, "Create im SW-Stylesheet-Pool geht nicht" ); + OSL_ENSURE( false, "Create in SW-Stylesheet-Pool not possible" ); return nullptr; } diff --git a/sw/source/uibase/inc/unotxvw.hxx b/sw/source/uibase/inc/unotxvw.hxx index fe2d2676cc6d..f298503944ba 100644 --- a/sw/source/uibase/inc/unotxvw.hxx +++ b/sw/source/uibase/inc/unotxvw.hxx @@ -170,7 +170,7 @@ public: virtual void SAL_CALL setVisible(sal_Bool bVisible) override; virtual css::awt::Point SAL_CALL getPosition() override; - //XTextCursor - neu + //XTextCursor - new virtual void SAL_CALL collapseToStart() override; virtual void SAL_CALL collapseToEnd() override; virtual sal_Bool SAL_CALL isCollapsed() override; diff --git a/sw/source/uibase/web/wview.cxx b/sw/source/uibase/web/wview.cxx index 51e20e6e2f62..fd9cac6c8743 100644 --- a/sw/source/uibase/web/wview.cxx +++ b/sw/source/uibase/web/wview.cxx @@ -143,7 +143,7 @@ void SwWebView::SelectShell() if (i) { pSfxShell = rDispatcher.GetShell( --i ); - OSL_ENSURE( pSfxShell, "My Shell ist lost in space" ); + OSL_ENSURE( pSfxShell, "My Shell is lost in space" ); rDispatcher.Pop( *pSfxShell, SfxDispatcherPopFlags::POP_UNTIL | SfxDispatcherPopFlags::POP_DELETE); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits