Kaydet (Commit) 1ac3ad77 authored tarafından Michael Weghorn's avatar Michael Weghorn Kaydeden (comit) Noel Grandin

fdo#39468 translate German comments

Change-Id: I36e3d7950d64a927ac6f081cf4b163fccd2f4786
Reviewed-on: https://gerrit.libreoffice.org/13549Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 8abd0022
...@@ -74,44 +74,44 @@ enum HTMLScriptLanguage ...@@ -74,44 +74,44 @@ enum HTMLScriptLanguage
struct HTMLOptionEnum struct HTMLOptionEnum
{ {
const sal_Char *pName; // Wert einer HTML-Option const sal_Char *pName; // value of an HTML option
sal_uInt16 nValue; // und der dazugehoerige Wert eines Enums sal_uInt16 nValue; // and corresponding value of an enum
}; };
// Repraesentation einer HTML-Option (=Atrribut in einem Start-Tag) /** Representation of an HTML option (=attribute in a start tag).
// Die Werte der Optionen werden immer als String gespeichert. * The values of the options are always stored as strings.
// Die Methoden GetNumber, ... duerfen nur aufgerufen werden, wenn * The methods GetNumber,... may only be called if the option
// die Option auch numerisch, ... ist. * is actually numerical,...
*/
class SVT_DLLPUBLIC HTMLOption class SVT_DLLPUBLIC HTMLOption
{ {
OUString aValue; // der Wert der Option (immer als String) OUString aValue; // value of the option (always as string)
OUString aToken; // der Name der Option als String OUString aToken; // name of the option as string
sal_uInt16 nToken; // und das entsprechende Token sal_uInt16 nToken; // and respective token
public: public:
HTMLOption( sal_uInt16 nTyp, const OUString& rToken, const OUString& rValue ); HTMLOption( sal_uInt16 nTyp, const OUString& rToken, const OUString& rValue );
// der Name der Option ... // name of the option...
sal_uInt16 GetToken() const { return nToken; } // ... als Enum sal_uInt16 GetToken() const { return nToken; } // ... as enum
const OUString& GetTokenString() const { return aToken; } // ... als String const OUString& GetTokenString() const { return aToken; } // ... as string
// der Wert der Option ... // value of the option ...
const OUString& GetString() const { return aValue; } // ... als String const OUString& GetString() const { return aValue; } // ... as string
sal_uInt32 GetNumber() const; // ... als Zahl sal_uInt32 GetNumber() const; // ... as number
sal_Int32 GetSNumber() const; // ... als Zahl sal_Int32 GetSNumber() const; // ... as number
void GetNumbers( std::vector<sal_uInt32> &rNumbers, // ... als Zahlen void GetNumbers( std::vector<sal_uInt32> &rNumbers, // ... as numbers
bool bSpaceDelim=false ) const; bool bSpaceDelim=false ) const;
void GetColor( Color& ) const; // ... als Farbe void GetColor( Color& ) const; // ... as color
// ... als Enum pOptEnums ist ein HTMLOptionEnum-Array // ... as enum; pOptEnums is an HTMLOptionEnum array
sal_uInt16 GetEnum( const HTMLOptionEnum *pOptEnums, sal_uInt16 GetEnum( const HTMLOptionEnum *pOptEnums,
sal_uInt16 nDflt=0 ) const; sal_uInt16 nDflt=0 ) const;
bool GetEnum( sal_uInt16 &rEnum, const HTMLOptionEnum *pOptEnums ) const; bool GetEnum( sal_uInt16 &rEnum, const HTMLOptionEnum *pOptEnums ) const;
// ... und als ein par spezielle Enums // ... and as a few special enums
HTMLInputType GetInputType() const; // <INPUT TYPE=...> HTMLInputType GetInputType() const; // <INPUT TYPE=...>
HTMLTableFrame GetTableFrame() const; // <TABLE FRAME=...> HTMLTableFrame GetTableFrame() const; // <TABLE FRAME=...>
HTMLTableRules GetTableRules() const; // <TABLE RULES=...> HTMLTableRules GetTableRules() const; // <TABLE RULES=...>
...@@ -123,37 +123,37 @@ typedef ::boost::ptr_vector<HTMLOption> HTMLOptions; ...@@ -123,37 +123,37 @@ typedef ::boost::ptr_vector<HTMLOption> HTMLOptions;
class SVT_DLLPUBLIC HTMLParser : public SvParser class SVT_DLLPUBLIC HTMLParser : public SvParser
{ {
private: private:
mutable HTMLOptions maOptions; // die Optionen des Start-Tags mutable HTMLOptions maOptions; // options of the start tag
bool bNewDoc : 1; // neues Doc lesen ? bool bNewDoc : 1; // read new Doc?
bool bIsInHeader : 1; // scanne Header-Bereich bool bIsInHeader : 1; // scan header section
bool bIsInBody : 1; // scanne Body-Bereich bool bIsInBody : 1; // scan body section
bool bReadListing : 1; // Lese Listings bool bReadListing : 1; // read listings
bool bReadXMP : 1; // Lese XMP bool bReadXMP : 1; // read XMP
bool bReadPRE : 1; // Lese preformatted Text bool bReadPRE : 1; // read preformatted text
bool bReadTextArea : 1; // Lese TEXTAREA bool bReadTextArea : 1; // read TEXTAREA
bool bReadScript : 1; // Lesen von <SCRIPT> bool bReadScript : 1; // read <SCRIPT>
bool bReadStyle : 1; // Lesen von <STYLE> bool bReadStyle : 1; // read <STYLE>
bool bEndTokenFound : 1; // </SCRIPT> oder </STYLE> gefunden bool bEndTokenFound : 1; // found </SCRIPT> or </STYLE>
bool bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen bool bPre_IgnoreNewPara : 1; // flags for reading of PRE paragraphs
bool bReadNextChar : 1; // true: NextChar nochmals lesen (JavaScript!) bool bReadNextChar : 1; // true: read NextChar again(JavaScript!)
bool bReadComment : 1; // true: NextChar nochmals lesen (JavaScript!) bool bReadComment : 1; // true: read NextChar again (JavaScript!)
sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag sal_uInt32 nPre_LinePos; // Pos in the line in the PRE-Tag
int mnPendingOffToken; ///< OFF token pending for a <XX.../> ON/OFF ON token int mnPendingOffToken; ///< OFF token pending for a <XX.../> ON/OFF ON token
OUString aEndToken; OUString aEndToken;
protected: protected:
OUString sSaveToken; // das gelesene Tag als String OUString sSaveToken; // the read tag as string
int ScanText( const sal_Unicode cBreak = 0U ); int ScanText( const sal_Unicode cBreak = 0U );
int _GetNextRawToken(); int _GetNextRawToken();
// scanne das naechste Token, // scan next token
virtual int _GetNextToken() SAL_OVERRIDE; virtual int _GetNextToken() SAL_OVERRIDE;
virtual ~HTMLParser(); virtual ~HTMLParser();
...@@ -163,7 +163,7 @@ protected: ...@@ -163,7 +163,7 @@ protected:
public: public:
HTMLParser( SvStream& rIn, bool bReadNewDoc = true ); HTMLParser( SvStream& rIn, bool bReadNewDoc = true );
virtual SvParserState CallParser() SAL_OVERRIDE; // Aufruf des Parsers virtual SvParserState CallParser() SAL_OVERRIDE;
bool IsNewDoc() const { return bNewDoc; } bool IsNewDoc() const { return bNewDoc; }
bool IsInHeader() const { return bIsInHeader; } bool IsInHeader() const { return bIsInHeader; }
...@@ -177,8 +177,7 @@ public: ...@@ -177,8 +177,7 @@ public:
void SetReadNextChar() { bReadNextChar = true; } void SetReadNextChar() { bReadNextChar = true; }
// PRE-/LISTING oder XMP-Modus starten/beenden oder Tags entsprechend // start PRE-/LISTING or XMP mode or filter tags respectively
// filtern
inline void StartPRE( bool bRestart=false ); inline void StartPRE( bool bRestart=false );
void FinishPRE() { bReadPRE = false; } void FinishPRE() { bReadPRE = false; }
int FilterPRE( int nToken ); int FilterPRE( int nToken );
...@@ -193,30 +192,30 @@ public: ...@@ -193,30 +192,30 @@ public:
void FinishTextArea() { bReadTextArea = false; } void FinishTextArea() { bReadTextArea = false; }
// PRE-/LSITING- und XMP-Modus beenden // finish PRE-/LISTING- and XMP mode
void FinishPREListingXMP() { bReadPRE = bReadListing = bReadXMP = false; } void FinishPREListingXMP() { bReadPRE = bReadListing = bReadXMP = false; }
// Das aktuelle Token dem aktuellen Modus (PRE, XMP, ...) entsprechend // Filter the current token according to the current mode
// Filtern und die Flags setzen. Wird von Continue aufgerufen, bevor // (PRE, XMP, ...) and set the flags. Is called by Continue before
// NextToken gerufen wird. Wer eigene Schleifen implementiert bzw. // NextToken is called. If you implement own loops or call
// selbst NextToken aufruft, sollte diese Methode vorher rufen. // NextToken yourself, you should call this method beforehand.
int FilterToken( int nToken ); int FilterToken( int nToken );
// Scannen eines Scripts beenden (sollte nur unmittelbar nach dem // end scanning of a script (should only be called right after
// Lesen eines <SCRIPT> aufgerufen werden // reading of a <SCRIPT>)
void EndScanScript() { bReadScript = false; } void EndScanScript() { bReadScript = false; }
void ReadRawData( const OUString &rEndToken ) { aEndToken = rEndToken; } void ReadRawData( const OUString &rEndToken ) { aEndToken = rEndToken; }
// Token ohne \-Sequenzen // Token without \-sequences
void UnescapeToken(); void UnescapeToken();
// Ermitteln der Optionen. pNoConvertToken ist das optionale Token // Determine the options. pNoConvertToken is the optional token
// einer Option, fuer die CR/LFs nicht aus dem Wert der Option // of an option, for which the CR/LFs are not deleted from the value
// geloescht werden. // of the option.
const HTMLOptions& GetOptions( sal_uInt16 *pNoConvertToken=0 ); const HTMLOptions& GetOptions( sal_uInt16 *pNoConvertToken=0 );
// fuers asynchrone lesen aus dem SvStream // for asynchronous reading from the SvStream
virtual void Continue( int nToken ) SAL_OVERRIDE; virtual void Continue( int nToken ) SAL_OVERRIDE;
...@@ -244,9 +243,9 @@ public: ...@@ -244,9 +243,9 @@ public:
bool ParseScriptOptions( OUString& rLangString, const OUString&, HTMLScriptLanguage& rLang, bool ParseScriptOptions( OUString& rLangString, const OUString&, HTMLScriptLanguage& rLang,
OUString& rSrc, OUString& rLibrary, OUString& rModule ); OUString& rSrc, OUString& rLibrary, OUString& rModule );
// Einen Kommentar um den Inhalt von <SCRIPT> oder <STYLE> entfernen // remove a comment around the content of <SCRIPT> or <STYLE>
// Bei 'bFull' wird ggf. die gesammte Zeile hinter einem "<!--" // In case of 'bFull', the whole line behind a "<!--" might
// entfernt (fuer JavaSript) // be deleted (for JavaSript)
static void RemoveSGMLComment( OUString &rString, bool bFull ); static void RemoveSGMLComment( OUString &rString, bool bFull );
static bool InternalImgToPrivateURL( OUString& rURL ); static bool InternalImgToPrivateURL( OUString& rURL );
......
...@@ -705,7 +705,7 @@ ...@@ -705,7 +705,7 @@
#define OOO_STRING_SVTOOLS_RTF_ZWJ "\\zwj" #define OOO_STRING_SVTOOLS_RTF_ZWJ "\\zwj"
#define OOO_STRING_SVTOOLS_RTF_ZWNJ "\\zwnj" #define OOO_STRING_SVTOOLS_RTF_ZWNJ "\\zwnj"
// neue Tokens zur 1.5 // new tokens for 1.5
#define OOO_STRING_SVTOOLS_RTF_ABSLOCK "\\abslock" #define OOO_STRING_SVTOOLS_RTF_ABSLOCK "\\abslock"
#define OOO_STRING_SVTOOLS_RTF_ADJUSTRIGHT "\\adjustright" #define OOO_STRING_SVTOOLS_RTF_ADJUSTRIGHT "\\adjustright"
#define OOO_STRING_SVTOOLS_RTF_AFTNNCHOSUNG "\\aftnnchosung" #define OOO_STRING_SVTOOLS_RTF_AFTNNCHOSUNG "\\aftnnchosung"
...@@ -1060,7 +1060,7 @@ ...@@ -1060,7 +1060,7 @@
#define OOO_STRING_SVTOOLS_RTF_NOOVERFLOW "\\nooverflow" #define OOO_STRING_SVTOOLS_RTF_NOOVERFLOW "\\nooverflow"
#define OOO_STRING_SVTOOLS_RTF_ASPALPHA "\\aspalpha" #define OOO_STRING_SVTOOLS_RTF_ASPALPHA "\\aspalpha"
// SWG spezifische Attribute // SWG-specific attributes
#define OOO_STRING_SVTOOLS_RTF_GRFALIGNV "\\grfalignv" #define OOO_STRING_SVTOOLS_RTF_GRFALIGNV "\\grfalignv"
#define OOO_STRING_SVTOOLS_RTF_GRFALIGNH "\\grfalignh" #define OOO_STRING_SVTOOLS_RTF_GRFALIGNH "\\grfalignh"
#define OOO_STRING_SVTOOLS_RTF_GRFMIRROR "\\grfmirror" #define OOO_STRING_SVTOOLS_RTF_GRFMIRROR "\\grfmirror"
...@@ -1077,7 +1077,7 @@ ...@@ -1077,7 +1077,7 @@
#define OOO_STRING_SVTOOLS_RTF_PRTDATA "\\prtdata" #define OOO_STRING_SVTOOLS_RTF_PRTDATA "\\prtdata"
#define OOO_STRING_SVTOOLS_RTF_BKMKKEY "\\bkmkkey" #define OOO_STRING_SVTOOLS_RTF_BKMKKEY "\\bkmkkey"
// Attribute fuer die freifliegenden Rahmen // attributes for free-flying frames
#define OOO_STRING_SVTOOLS_RTF_FLYPRINT "\\flyprint" #define OOO_STRING_SVTOOLS_RTF_FLYPRINT "\\flyprint"
#define OOO_STRING_SVTOOLS_RTF_FLYOPAQUE "\\flyopaque" #define OOO_STRING_SVTOOLS_RTF_FLYOPAQUE "\\flyopaque"
#define OOO_STRING_SVTOOLS_RTF_FLYPRTCTD "\\flyprtctd" #define OOO_STRING_SVTOOLS_RTF_FLYPRTCTD "\\flyprtctd"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment