From 4709572e4a42dcff7c98abae73eb68a239c22e9d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 22 Jul 2011 15:02:30 -0400 Subject: sal_Bool to bool. --- svtools/inc/svtools/parhtml.hxx | 94 +++++++-------- svtools/source/svhtml/parhtml.cxx | 235 +++++++++++++++++++------------------- 2 files changed, 164 insertions(+), 165 deletions(-) (limited to 'svtools') diff --git a/svtools/inc/svtools/parhtml.hxx b/svtools/inc/svtools/parhtml.hxx index 20e15990e538..bc5e5ccc0313 100644 --- a/svtools/inc/svtools/parhtml.hxx +++ b/svtools/inc/svtools/parhtml.hxx @@ -115,13 +115,13 @@ public: sal_uInt32 GetNumber() const; // ... als Zahl sal_Int32 GetSNumber() const; // ... als Zahl void GetNumbers( SvULongs &rLongs, // ... als Zahlen - sal_Bool bSpaceDelim=sal_False ) const; + bool bSpaceDelim=false ) const; void GetColor( Color& ) const; // ... als Farbe // ... als Enum pOptEnums ist ein HTMLOptionEnum-Array sal_uInt16 GetEnum( const HTMLOptionEnum *pOptEnums, sal_uInt16 nDflt=0 ) const; - sal_Bool GetEnum( sal_uInt16 &rEnum, const HTMLOptionEnum *pOptEnums ) const; + bool GetEnum( sal_uInt16 &rEnum, const HTMLOptionEnum *pOptEnums ) const; // ... und als ein par spezielle Enums HTMLInputType GetInputType() const; // @@ -135,20 +135,20 @@ SV_DECL_PTRARR(HTMLOptions,HTMLOptionPtr,16,16) class SVT_DLLPUBLIC HTMLParser : public SvParser { - sal_Bool bNewDoc : 1; // neues Doc lesen ? - sal_Bool bIsInHeader : 1; // scanne Header-Bereich - sal_Bool bIsInBody : 1; // scanne Body-Bereich - sal_Bool bReadListing : 1; // Lese Listings - sal_Bool bReadXMP : 1; // Lese XMP - sal_Bool bReadPRE : 1; // Lese preformatted Text - sal_Bool bReadTextArea : 1; // Lese TEXTAREA - sal_Bool bReadScript : 1; // Lesen von oder gefunden - - sal_Bool bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen - sal_Bool bReadNextChar : 1; // sal_True: NextChar nochmals lesen (JavaScript!) - sal_Bool bReadComment : 1; // sal_True: NextChar nochmals lesen (JavaScript!) + bool bNewDoc : 1; // neues Doc lesen ? + bool bIsInHeader : 1; // scanne Header-Bereich + bool bIsInBody : 1; // scanne Body-Bereich + bool bReadListing : 1; // Lese Listings + bool bReadXMP : 1; // Lese XMP + bool bReadPRE : 1; // Lese preformatted Text + bool bReadTextArea : 1; // Lese TEXTAREA + bool bReadScript : 1; // Lesen von oder gefunden + + bool bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen + bool bReadNextChar : 1; // true: NextChar nochmals lesen (JavaScript!) + bool bReadComment : 1; // true: NextChar nochmals lesen (JavaScript!) sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag @@ -167,43 +167,43 @@ protected: virtual ~HTMLParser(); - void FinishHeader( sal_Bool bBody ) { bIsInHeader = sal_False; bIsInBody = bBody; } + void FinishHeader( bool bBody ) { bIsInHeader = false; bIsInBody = bBody; } public: - HTMLParser( SvStream& rIn, int bReadNewDoc = sal_True ); + HTMLParser( SvStream& rIn, bool bReadNewDoc = true ); virtual SvParserState CallParser(); // Aufruf des Parsers - sal_Bool IsNewDoc() const { return bNewDoc; } - sal_Bool IsInHeader() const { return bIsInHeader; } - sal_Bool IsInBody() const { return bIsInBody; } - sal_Bool IsValidSyntax() const { return sal_True; } - sal_Bool IsReadListing() const { return bReadListing; } - sal_Bool IsReadXMP() const { return bReadXMP; } - sal_Bool IsReadPRE() const { return bReadPRE; } - sal_Bool IsReadScript() const { return bReadScript; } - sal_Bool IsReadStyle() const { return bReadStyle; } + bool IsNewDoc() const { return bNewDoc; } + bool IsInHeader() const { return bIsInHeader; } + bool IsInBody() const { return bIsInBody; } + bool IsValidSyntax() const { return true; } + bool IsReadListing() const { return bReadListing; } + bool IsReadXMP() const { return bReadXMP; } + bool IsReadPRE() const { return bReadPRE; } + bool IsReadScript() const { return bReadScript; } + bool IsReadStyle() const { return bReadStyle; } - void SetReadNextChar() { bReadNextChar = sal_True; } + void SetReadNextChar() { bReadNextChar = true; } // PRE-/LISTING oder XMP-Modus starten/beenden oder Tags entsprechend // filtern - inline void StartPRE( sal_Bool bRestart=sal_False ); - void FinishPRE() { bReadPRE = sal_False; } + inline void StartPRE( bool bRestart=false ); + void FinishPRE() { bReadPRE = false; } int FilterPRE( int nToken ); - inline void StartListing( sal_Bool bRestart=sal_False ); - void FinishListing() { bReadListing = sal_False; } + inline void StartListing( bool bRestart=false ); + void FinishListing() { bReadListing = false; } int FilterListing( int nToken ); - inline void StartXMP( sal_Bool bRestart=sal_False ); - void FinishXMP() { bReadXMP = sal_False; } + inline void StartXMP( bool bRestart=false ); + void FinishXMP() { bReadXMP = false; } int FilterXMP( int nToken ); - void FinishTextArea() { bReadTextArea = sal_False; } + void FinishTextArea() { bReadTextArea = false; } // PRE-/LSITING- und XMP-Modus beenden - void FinishPREListingXMP() { bReadPRE = bReadListing = bReadXMP = sal_False; } + void FinishPREListingXMP() { bReadPRE = bReadListing = bReadXMP = false; } // Das aktuelle Token dem aktuellen Modus (PRE, XMP, ...) entsprechend // Filtern und die Flags setzen. Wird von Continue aufgerufen, bevor @@ -213,7 +213,7 @@ public: // Scannen eines Scripts beenden (sollte nur unmittelbar nach dem // Lesen eines