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

sal_Bool->bool

Change-Id: Id93fd35fe2482c4b639c25c9dd0d1ce4b4c8aa75
üst 6968985d
...@@ -1315,7 +1315,7 @@ ConvErr ExcelToSc::ConvertExternName( const ScTokenArray*& /*rpArray*/, XclImpSt ...@@ -1315,7 +1315,7 @@ ConvErr ExcelToSc::ConvertExternName( const ScTokenArray*& /*rpArray*/, XclImpSt
return ConvErrNi; return ConvErrNi;
} }
sal_Bool ExcelToSc::GetAbsRefs( ScRangeList& rRangeList, XclImpStream& rStrm, sal_Size nLen ) bool ExcelToSc::GetAbsRefs( ScRangeList& rRangeList, XclImpStream& rStrm, sal_Size nLen )
{ {
OSL_ENSURE_BIFF( GetBiff() == EXC_BIFF5 ); OSL_ENSURE_BIFF( GetBiff() == EXC_BIFF5 );
if( GetBiff() != EXC_BIFF5 ) if( GetBiff() != EXC_BIFF5 )
...@@ -1600,7 +1600,7 @@ void ExcelToSc::DoMulArgs( DefTokenId eId, sal_uInt8 nAnz ) ...@@ -1600,7 +1600,7 @@ void ExcelToSc::DoMulArgs( DefTokenId eId, sal_uInt8 nAnz )
} }
void ExcelToSc::ExcRelToScRel( sal_uInt16 nRow, sal_uInt8 nCol, ScSingleRefData &rSRD, const sal_Bool bName ) void ExcelToSc::ExcRelToScRel( sal_uInt16 nRow, sal_uInt8 nCol, ScSingleRefData &rSRD, const bool bName )
{ {
if( bName ) if( bName )
{ {
......
...@@ -1401,7 +1401,7 @@ ConvErr ExcelToSc8::ConvertExternName( const ScTokenArray*& rpArray, XclImpStrea ...@@ -1401,7 +1401,7 @@ ConvErr ExcelToSc8::ConvertExternName( const ScTokenArray*& rpArray, XclImpStrea
return eRet; return eRet;
} }
void ExcelToSc8::ExcRelToScRel8( sal_uInt16 nRow, sal_uInt16 nC, ScSingleRefData &rSRD, const sal_Bool bName ) void ExcelToSc8::ExcRelToScRel8( sal_uInt16 nRow, sal_uInt16 nC, ScSingleRefData &rSRD, const bool bName )
{ {
const bool bColRel = ( nC & 0x4000 ) != 0; const bool bColRel = ( nC & 0x4000 ) != 0;
const bool bRowRel = ( nC & 0x8000 ) != 0; const bool bRowRel = ( nC & 0x8000 ) != 0;
...@@ -1439,7 +1439,7 @@ void ExcelToSc8::ExcRelToScRel8( sal_uInt16 nRow, sal_uInt16 nC, ScSingleRefData ...@@ -1439,7 +1439,7 @@ void ExcelToSc8::ExcRelToScRel8( sal_uInt16 nRow, sal_uInt16 nC, ScSingleRefData
// stream seeks to first byte after <nLen> // stream seeks to first byte after <nLen>
sal_Bool ExcelToSc8::GetAbsRefs( ScRangeList& r, XclImpStream& aIn, sal_Size nLen ) bool ExcelToSc8::GetAbsRefs( ScRangeList& r, XclImpStream& aIn, sal_Size nLen )
{ {
sal_uInt8 nOp; sal_uInt8 nOp;
sal_uInt16 nRow1, nRow2, nCol1, nCol2; sal_uInt16 nRow1, nRow2, nCol1, nCol2;
......
...@@ -36,7 +36,7 @@ protected: ...@@ -36,7 +36,7 @@ protected:
enum ExtensionType { EXTENSION_ARRAY, EXTENSION_NLR, EXTENSION_MEMAREA }; enum ExtensionType { EXTENSION_ARRAY, EXTENSION_NLR, EXTENSION_MEMAREA };
typedef ::std::vector< ExtensionType > ExtensionTypeVec; typedef ::std::vector< ExtensionType > ExtensionTypeVec;
sal_Bool bExternName; // wenn External Name gefunden wurde bool bExternName; // wenn External Name gefunden wurde
static const sal_uInt16 nRowMask; static const sal_uInt16 nRowMask;
static const sal_uInt16 nLastInd; // letzter Index fuer Excel->SC- static const sal_uInt16 nLastInd; // letzter Index fuer Excel->SC-
// Token Umsetzung // Token Umsetzung
...@@ -46,7 +46,7 @@ protected: ...@@ -46,7 +46,7 @@ protected:
// --------------------------------------------------------------- // ---------------------------------------------------------------
void DoMulArgs( DefTokenId eId, sal_uInt8 nNumArgs ); void DoMulArgs( DefTokenId eId, sal_uInt8 nNumArgs );
void ExcRelToScRel( sal_uInt16 nRow, sal_uInt8 nCol, ScSingleRefData&, const sal_Bool bName ); void ExcRelToScRel( sal_uInt16 nRow, sal_uInt8 nCol, ScSingleRefData&, const bool bName );
public: public:
ExcelToSc( const XclImpRoot& rRoot ); ExcelToSc( const XclImpRoot& rRoot );
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
virtual ConvErr ConvertExternName( const ScTokenArray*& rpArray, XclImpStream& rStrm, sal_Size nFormulaLen, virtual ConvErr ConvertExternName( const ScTokenArray*& rpArray, XclImpStream& rStrm, sal_Size nFormulaLen,
const OUString& rUrl, const ::std::vector<OUString>& rTabNames ); const OUString& rUrl, const ::std::vector<OUString>& rTabNames );
virtual sal_Bool GetAbsRefs( ScRangeList& rRangeList, XclImpStream& rStrm, sal_Size nLen ); virtual bool GetAbsRefs( ScRangeList& rRangeList, XclImpStream& rStrm, sal_Size nLen );
void GetDummy( const ScTokenArray*& ); void GetDummy( const ScTokenArray*& );
const ScTokenArray* GetBoolErr( XclBoolError ); const ScTokenArray* GetBoolErr( XclBoolError );
...@@ -69,8 +69,8 @@ public: ...@@ -69,8 +69,8 @@ public:
static void SetError( ScFormulaCell& rCell, const ConvErr eErr ); static void SetError( ScFormulaCell& rCell, const ConvErr eErr );
static inline sal_Bool IsComplColRange( const sal_uInt16 nCol1, const sal_uInt16 nCol2 ); static inline bool IsComplColRange( const sal_uInt16 nCol1, const sal_uInt16 nCol2 );
static inline sal_Bool IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 ); static inline bool IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 );
void SetComplCol( ScComplexRefData& ); void SetComplCol( ScComplexRefData& );
void SetComplRow( ScComplexRefData& ); void SetComplRow( ScComplexRefData& );
...@@ -84,13 +84,13 @@ public: ...@@ -84,13 +84,13 @@ public:
}; };
inline sal_Bool ExcelToSc::IsComplColRange( const sal_uInt16 nCol1, const sal_uInt16 nCol2 ) inline bool ExcelToSc::IsComplColRange( const sal_uInt16 nCol1, const sal_uInt16 nCol2 )
{ {
return ( nCol1 == 0x00 ) && ( nCol2 == 0xFF ); return ( nCol1 == 0x00 ) && ( nCol2 == 0xFF );
} }
inline sal_Bool ExcelToSc::IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 ) inline bool ExcelToSc::IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 )
{ {
return ( ( nRow1 & 0x3FFF ) == 0x0000 ) && ( ( nRow2 & 0x3FFF ) == 0x3FFF ); return ( ( nRow1 & 0x3FFF ) == 0x0000 ) && ( ( nRow2 & 0x3FFF ) == 0x3FFF );
} }
...@@ -118,7 +118,7 @@ private: ...@@ -118,7 +118,7 @@ private:
const XclImpLinkManager& rLinkMan; const XclImpLinkManager& rLinkMan;
void ExcRelToScRel8( sal_uInt16 nRow, sal_uInt16 nCol, ScSingleRefData&, void ExcRelToScRel8( sal_uInt16 nRow, sal_uInt16 nCol, ScSingleRefData&,
const sal_Bool bName ); const bool bName );
bool GetExternalFileIdFromXti( sal_uInt16 nIxti, sal_uInt16& rFileId ) const; bool GetExternalFileIdFromXti( sal_uInt16 nIxti, sal_uInt16& rFileId ) const;
...@@ -136,13 +136,13 @@ public: ...@@ -136,13 +136,13 @@ public:
virtual ConvErr ConvertExternName( const ScTokenArray*& rpArray, XclImpStream& rStrm, sal_Size nFormulaLen, virtual ConvErr ConvertExternName( const ScTokenArray*& rpArray, XclImpStream& rStrm, sal_Size nFormulaLen,
const OUString& rUrl, const ::std::vector<OUString>& rTabNames ); const OUString& rUrl, const ::std::vector<OUString>& rTabNames );
static inline sal_Bool IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 ); static inline bool IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 );
virtual sal_Bool GetAbsRefs( ScRangeList& rRangeList, XclImpStream& rStrm, sal_Size nLen ); virtual bool GetAbsRefs( ScRangeList& rRangeList, XclImpStream& rStrm, sal_Size nLen );
}; };
inline sal_Bool ExcelToSc8::IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 ) inline bool ExcelToSc8::IsComplRowRange( const sal_uInt16 nRow1, const sal_uInt16 nRow2 )
{ {
return ( nRow1 == 0x0000 ) && ( nRow2 == 0xFFFF ); return ( nRow1 == 0x0000 ) && ( nRow2 == 0xFFFF );
} }
......
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