Kaydet (Commit) cd96c954 authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: I7009519bdf68459f53423720d411c3e6d0ac3d73
üst 536033fa
...@@ -210,7 +210,7 @@ static OString lcl_makeHTMLColorTriplet(const Color& rColor) ...@@ -210,7 +210,7 @@ static OString lcl_makeHTMLColorTriplet(const Color& rColor)
ScHTMLExport::ScHTMLExport( SvStream& rStrmP, const OUString& rBaseURL, ScDocument* pDocP, ScHTMLExport::ScHTMLExport( SvStream& rStrmP, const OUString& rBaseURL, ScDocument* pDocP,
const ScRange& rRangeP, const ScRange& rRangeP,
sal_Bool bAllP, const OUString& rStreamPathP ) : bool bAllP, const OUString& rStreamPathP ) :
ScExportBase( rStrmP, pDocP, rRangeP ), ScExportBase( rStrmP, pDocP, rRangeP ),
aBaseURL( rBaseURL ), aBaseURL( rBaseURL ),
aStreamPath( rStreamPathP ), aStreamPath( rStreamPathP ),
...@@ -221,8 +221,8 @@ ScHTMLExport::ScHTMLExport( SvStream& rStrmP, const OUString& rBaseURL, ScDocume ...@@ -221,8 +221,8 @@ ScHTMLExport::ScHTMLExport( SvStream& rStrmP, const OUString& rBaseURL, ScDocume
bTabHasGraphics( false ), bTabHasGraphics( false ),
bTabAlignedLeft( false ), bTabAlignedLeft( false ),
bCalcAsShown( pDocP->GetDocOptions().IsCalcAsShown() ), bCalcAsShown( pDocP->GetDocOptions().IsCalcAsShown() ),
bTableDataWidth( sal_True ), bTableDataWidth( true ),
bTableDataHeight( sal_True ) bTableDataHeight( true )
{ {
strcpy( sIndent, sIndentSource ); strcpy( sIndent, sIndentSource );
sIndent[0] = 0; sIndent[0] = 0;
...@@ -478,7 +478,7 @@ const SfxItemSet& ScHTMLExport::PageDefaults( SCTAB nTab ) ...@@ -478,7 +478,7 @@ const SfxItemSet& ScHTMLExport::PageDefaults( SCTAB nTab )
{ {
const SvxBrushItem* pBrushItem = (const SvxBrushItem*)&rSet.Get( ATTR_BACKGROUND ); const SvxBrushItem* pBrushItem = (const SvxBrushItem*)&rSet.Get( ATTR_BACKGROUND );
aHTMLStyle.aBackgroundColor = pBrushItem->GetColor(); aHTMLStyle.aBackgroundColor = pBrushItem->GetColor();
aHTMLStyle.bInitialized = sal_True; aHTMLStyle.bInitialized = true;
} }
return rSet; return rSet;
} }
...@@ -770,7 +770,7 @@ void ScHTMLExport::WriteTables() ...@@ -770,7 +770,7 @@ void ScHTMLExport::WriteTables()
// IncIndent(1); TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_tbody ); // IncIndent(1); TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_tbody );
// At least old (3.x, 4.x?) Netscape doesn't follow <TABLE COLS=n> and // At least old (3.x, 4.x?) Netscape doesn't follow <TABLE COLS=n> and
// <COL WIDTH=x> specified, but needs a width at every column. // <COL WIDTH=x> specified, but needs a width at every column.
bTableDataWidth = sal_True; // widths in first row bTableDataWidth = true; // widths in first row
bool bHasHiddenRows = pDoc->HasHiddenRows(nStartRow, nEndRow, nTab); bool bHasHiddenRows = pDoc->HasHiddenRows(nStartRow, nEndRow, nTab);
for ( SCROW nRow=nStartRow; nRow<=nEndRow; nRow++ ) for ( SCROW nRow=nStartRow; nRow<=nEndRow; nRow++ )
{ {
...@@ -782,7 +782,7 @@ void ScHTMLExport::WriteTables() ...@@ -782,7 +782,7 @@ void ScHTMLExport::WriteTables()
} }
IncIndent(1); TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_tablerow ); IncIndent(1); TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_tablerow );
bTableDataHeight = sal_True; // height at every first cell of each row bTableDataHeight = true; // height at every first cell of each row
for ( SCCOL nCol2=nStartCol; nCol2<=nEndCol; nCol2++ ) for ( SCCOL nCol2=nStartCol; nCol2<=nEndCol; nCol2++ )
{ {
if ( pDoc->ColHidden(nCol2, nTab) ) if ( pDoc->ColHidden(nCol2, nTab) )
...@@ -1235,10 +1235,10 @@ bool ScHTMLExport::WriteFieldText( const EditTextObject* pData ) ...@@ -1235,10 +1235,10 @@ bool ScHTMLExport::WriteFieldText( const EditTextObject* pData )
} }
sal_Bool ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm, bool ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
const OUString& rTargetNm, sal_Bool bFileToFile ) const OUString& rTargetNm, bool bFileToFile )
{ {
sal_Bool bRet = false; bool bRet = false;
INetURLObject aFileUrl, aTargetUrl; INetURLObject aFileUrl, aTargetUrl;
aFileUrl.SetSmartURL( rFileNm ); aFileUrl.SetSmartURL( rFileNm );
aTargetUrl.SetSmartURL( rTargetNm ); aTargetUrl.SetSmartURL( rTargetNm );
...@@ -1255,7 +1255,7 @@ sal_Bool ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm, ...@@ -1255,7 +1255,7 @@ sal_Bool ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
if( it != pFileNameMap->end() ) if( it != pFileNameMap->end() )
{ {
rFileNm = it->second; rFileNm = it->second;
return sal_True; return true;
} }
} }
else else
......
...@@ -58,7 +58,7 @@ void ScHTMLExport::PrepareGraphics( ScDrawLayer* pDrawLayer, SCTAB nTab, ...@@ -58,7 +58,7 @@ void ScHTMLExport::PrepareGraphics( ScDrawLayer* pDrawLayer, SCTAB nTab,
ScHTMLGraphEntry* pE = &aGraphList[ i ]; ScHTMLGraphEntry* pE = &aGraphList[ i ];
if ( !pE->bInCell ) if ( !pE->bInCell )
{ // not all cells: table next to some { // not all cells: table next to some
bTabAlignedLeft = sal_True; bTabAlignedLeft = true;
break; break;
} }
} }
...@@ -155,7 +155,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE ) ...@@ -155,7 +155,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE )
if ( pSGO->IsLinkedGraphic() ) if ( pSGO->IsLinkedGraphic() )
aLinkName = pSGO->GetFileName(); aLinkName = pSGO->GetFileName();
WriteImage( aLinkName, pSGO->GetGraphic(), aOpt, nXOutFlags ); WriteImage( aLinkName, pSGO->GetGraphic(), aOpt, nXOutFlags );
pE->bWritten = sal_True; pE->bWritten = true;
} }
break; break;
case OBJ_OLE2: case OBJ_OLE2:
...@@ -165,7 +165,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE ) ...@@ -165,7 +165,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE )
{ {
OUString aLinkName; OUString aLinkName;
WriteImage( aLinkName, *pGraphic, aOpt ); WriteImage( aLinkName, *pGraphic, aOpt );
pE->bWritten = sal_True; pE->bWritten = true;
} }
} }
break; break;
...@@ -175,7 +175,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE ) ...@@ -175,7 +175,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE )
pDoc->GetDrawLayer(), pObject ) ); pDoc->GetDrawLayer(), pObject ) );
OUString aLinkName; OUString aLinkName;
WriteImage( aLinkName, aGraph, aOpt ); WriteImage( aLinkName, aGraph, aOpt );
pE->bWritten = sal_True; pE->bWritten = true;
} }
} }
} }
......
...@@ -45,13 +45,13 @@ struct ScHTMLStyle ...@@ -45,13 +45,13 @@ struct ScHTMLStyle
{ // Defaults aus StyleSheet { // Defaults aus StyleSheet
Color aBackgroundColor; Color aBackgroundColor;
OUString aFontFamilyName; OUString aFontFamilyName;
sal_uInt32 nFontHeight; // Item-Value sal_uInt32 nFontHeight; // Item-Value
sal_uInt16 nFontSizeNumber; // HTML value 1-7 sal_uInt16 nFontSizeNumber; // HTML value 1-7
sal_uInt8 nDefaultScriptType; // Font values are valid for the default script type sal_uInt8 nDefaultScriptType; // Font values are valid for the default script type
sal_Bool bInitialized; bool bInitialized;
ScHTMLStyle() : nFontHeight(0), nFontSizeNumber(2), nDefaultScriptType(0), ScHTMLStyle() : nFontHeight(0), nFontSizeNumber(2), nDefaultScriptType(0),
bInitialized(0) {} bInitialized(false) {}
const ScHTMLStyle& operator=( const ScHTMLStyle& r ) const ScHTMLStyle& operator=( const ScHTMLStyle& r )
{ {
...@@ -71,11 +71,11 @@ struct ScHTMLGraphEntry ...@@ -71,11 +71,11 @@ struct ScHTMLGraphEntry
Size aSize; // Groesse in Pixeln Size aSize; // Groesse in Pixeln
Size aSpace; // Spacing in Pixeln Size aSpace; // Spacing in Pixeln
SdrObject* pObject; SdrObject* pObject;
sal_Bool bInCell; // ob in Zelle ausgegeben wird bool bInCell; // ob in Zelle ausgegeben wird
sal_Bool bWritten; bool bWritten;
ScHTMLGraphEntry( SdrObject* pObj, const ScRange& rRange, ScHTMLGraphEntry( SdrObject* pObj, const ScRange& rRange,
const Size& rSize, sal_Bool bIn, const Size& rSpace ) : const Size& rSize, bool bIn, const Size& rSpace ) :
aRange( rRange ), aSize( rSize ), aSpace( rSpace ), aRange( rRange ), aSize( rSize ), aSpace( rSpace ),
pObject( pObj ), bInCell( bIn ), bWritten( false ) {} pObject( pObj ), bInCell( bIn ), bWritten( false ) {}
}; };
...@@ -106,13 +106,13 @@ class ScHTMLExport : public ScExportBase ...@@ -106,13 +106,13 @@ class ScHTMLExport : public ScExportBase
SCTAB nUsedTables; SCTAB nUsedTables;
short nIndent; short nIndent;
sal_Char sIndent[nIndentMax+1]; sal_Char sIndent[nIndentMax+1];
sal_Bool bAll; // ganzes Dokument bool bAll; // ganzes Dokument
sal_Bool bTabHasGraphics; bool bTabHasGraphics;
sal_Bool bTabAlignedLeft; bool bTabAlignedLeft;
sal_Bool bCalcAsShown; bool bCalcAsShown;
sal_Bool bCopyLocalFileToINet; bool bCopyLocalFileToINet;
sal_Bool bTableDataWidth; bool bTableDataWidth;
sal_Bool bTableDataHeight; bool bTableDataHeight;
const SfxItemSet& PageDefaults( SCTAB nTab ); const SfxItemSet& PageDefaults( SCTAB nTab );
...@@ -131,9 +131,9 @@ class ScHTMLExport : public ScExportBase ...@@ -131,9 +131,9 @@ class ScHTMLExport : public ScExportBase
bool WriteFieldText( const EditTextObject* pData ); bool WriteFieldText( const EditTextObject* pData );
// kopiere ggfs. eine lokale Datei ins Internet // kopiere ggfs. eine lokale Datei ins Internet
sal_Bool CopyLocalFileToINet( OUString& rFileNm, bool CopyLocalFileToINet( OUString& rFileNm,
const OUString& rTargetNm, sal_Bool bFileToFile = false ); const OUString& rTargetNm, bool bFileToFile = false );
sal_Bool HasCId() { return !aCId.isEmpty(); } bool HasCId() { return !aCId.isEmpty(); }
void MakeCIdURL( OUString& rURL ); void MakeCIdURL( OUString& rURL );
void PrepareGraphics( ScDrawLayer*, SCTAB nTab, void PrepareGraphics( ScDrawLayer*, SCTAB nTab,
...@@ -155,7 +155,7 @@ class ScHTMLExport : public ScExportBase ...@@ -155,7 +155,7 @@ class ScHTMLExport : public ScExportBase
public: public:
ScHTMLExport( SvStream&, const OUString&, ScDocument*, const ScRange&, ScHTMLExport( SvStream&, const OUString&, ScDocument*, const ScRange&,
sal_Bool bAll, const OUString& aStreamPath ); bool bAll, const OUString& aStreamPath );
virtual ~ScHTMLExport(); virtual ~ScHTMLExport();
sal_uLong Write(); sal_uLong Write();
const OUString& GetNonConvertibleChars() const const OUString& GetNonConvertibleChars() const
......
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