summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-07-22 15:02:30 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-07-22 22:06:26 -0400
commit4709572e4a42dcff7c98abae73eb68a239c22e9d (patch)
treeca9f063ef1f9993712230a0b7ab71bf3a14064a8 /svtools/inc
parente30b26a7c2fc9fe313c2cb5a76f3fd79c90cea5e (diff)
sal_Bool to bool.
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/svtools/parhtml.hxx94
1 files changed, 47 insertions, 47 deletions
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; // <INPUT TYPE=...>
@@ -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 <SCRIPT>
- sal_Bool bReadStyle : 1; // Lesen von <STYLE>
- sal_Bool bEndTokenFound : 1; // </SCRIPT> oder </STYLE> 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 <SCRIPT>
+ bool bReadStyle : 1; // Lesen von <STYLE>
+ bool bEndTokenFound : 1; // </SCRIPT> oder </STYLE> 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 <SCRIPT> aufgerufen werden
- void EndScanScript() { bReadScript = sal_False; }
+ void EndScanScript() { bReadScript = false; }
void ReadRawData( const sal_Char *pEndToken ) { aEndToken.AssignAscii(pEndToken); }
@@ -254,11 +254,11 @@ public:
// Ist der uebergebene 0-terminierte String (vermutlich) der Anfang
// eines HTML-Files? Er sollte mind. 80 Zeichen lang sein.
- // Mit Ausnahme des Falls, dass SwitchToUCS2==sal_False und
+ // Mit Ausnahme des Falls, dass SwitchToUCS2==false und
// SVPAR_CS_DONTKNOW uebergeben wird muss der String mit zwei(!)
// 0-Bytes an einer geraden(!) Position terminiert sein.
static bool IsHTMLFormat( const sal_Char* pHeader,
- sal_Bool bSwitchToUCS2 = sal_False,
+ bool bSwitchToUCS2 = false,
rtl_TextEncoding eEnc=RTL_TEXTENCODING_DONTKNOW );
sal_Bool ParseScriptOptions( String& rLangString, const String&, HTMLScriptLanguage& rLang,
@@ -269,28 +269,28 @@ public:
// entfernt (fuer JavaSript)
static void RemoveSGMLComment( String &rString, sal_Bool bFull );
- static sal_Bool InternalImgToPrivateURL( String& rURL );
+ static bool InternalImgToPrivateURL( String& rURL );
static rtl_TextEncoding GetEncodingByHttpHeader( SvKeyValueIterator *pHTTPHeader );
- sal_Bool SetEncodingByHTTPHeader( SvKeyValueIterator *pHTTPHeader );
+ bool SetEncodingByHTTPHeader( SvKeyValueIterator *pHTTPHeader );
};
-inline void HTMLParser::StartPRE( sal_Bool bRestart )
+inline void HTMLParser::StartPRE( bool bRestart )
{
- bReadPRE = sal_True;
+ bReadPRE = true;
bPre_IgnoreNewPara = !bRestart;
nPre_LinePos = 0UL;
}
-inline void HTMLParser::StartListing( sal_Bool bRestart )
+inline void HTMLParser::StartListing( bool bRestart )
{
- bReadListing = sal_True;
+ bReadListing = true;
bPre_IgnoreNewPara = !bRestart;
nPre_LinePos = 0UL;
}
-inline void HTMLParser::StartXMP( sal_Bool bRestart )
+inline void HTMLParser::StartXMP( bool bRestart )
{
- bReadXMP = sal_True;
+ bReadXMP = true;
bPre_IgnoreNewPara = !bRestart;
nPre_LinePos = 0UL;
}