diff options
Diffstat (limited to 'sfx2/source/bastyp/frmhtml.cxx')
-rwxr-xr-x[-rw-r--r--] | sfx2/source/bastyp/frmhtml.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sfx2/source/bastyp/frmhtml.cxx b/sfx2/source/bastyp/frmhtml.cxx index f0f4d7994200..6ebd346e4e5e 100644..100755 --- a/sfx2/source/bastyp/frmhtml.cxx +++ b/sfx2/source/bastyp/frmhtml.cxx @@ -75,10 +75,10 @@ void SfxFrameHTMLParser::ParseFrameOptions( SfxFrameDescriptor *pFrame, const HT // do like that for now. Netscape does however not allow for a direct // seting to 0, while IE4.0 does // We will not mimic that bug ! - BOOL bMarginWidth = FALSE, bMarginHeight = FALSE; + sal_Bool bMarginWidth = sal_False, bMarginHeight = sal_False; - USHORT nArrLen = pOptions->Count(); - for ( USHORT i=0; i<nArrLen; i++ ) + sal_uInt16 nArrLen = pOptions->Count(); + for ( sal_uInt16 i=0; i<nArrLen; i++ ) { const HTMLOption *pOption = (*pOptions)[i]; switch( pOption->GetToken() ) @@ -104,14 +104,14 @@ void SfxFrameHTMLParser::ParseFrameOptions( SfxFrameDescriptor *pFrame, const HT if( !bMarginHeight ) aMargin.Height() = 0; - bMarginWidth = TRUE; + bMarginWidth = sal_True; break; case HTML_O_MARGINHEIGHT: aMargin.Height() = pOption->GetNumber(); if( !bMarginWidth ) aMargin.Width() = 0; - bMarginHeight = TRUE; + bMarginHeight = sal_True; break; case HTML_O_SCROLLING: pFrame->SetScrollingMode( @@ -121,33 +121,33 @@ void SfxFrameHTMLParser::ParseFrameOptions( SfxFrameDescriptor *pFrame, const HT case HTML_O_FRAMEBORDER: { String aStr = pOption->GetString(); - BOOL bBorder = TRUE; + sal_Bool bBorder = sal_True; if ( aStr.EqualsIgnoreCaseAscii("NO") || aStr.EqualsIgnoreCaseAscii("0") ) - bBorder = FALSE; + bBorder = sal_False; pFrame->SetFrameBorder( bBorder ); break; } case HTML_O_NORESIZE: - pFrame->SetResizable( FALSE ); + pFrame->SetResizable( sal_False ); break; default: if ( pOption->GetTokenString().EqualsIgnoreCaseAscii( HTML_O_READONLY ) ) { String aStr = pOption->GetString(); - BOOL bReadonly = TRUE; + sal_Bool bReadonly = sal_True; if ( aStr.EqualsIgnoreCaseAscii("FALSE") ) - bReadonly = FALSE; + bReadonly = sal_False; pFrame->SetReadOnly( bReadonly ); } else if ( pOption->GetTokenString().EqualsIgnoreCaseAscii( HTML_O_EDIT ) ) { String aStr = pOption->GetString(); - BOOL bEdit = TRUE; + sal_Bool bEdit = sal_True; if ( aStr.EqualsIgnoreCaseAscii("FALSE") ) - bEdit = FALSE; + bEdit = sal_False; pFrame->SetEditable( bEdit ); } |