diff options
Diffstat (limited to 'sc/source/filter/inc/tool.h')
-rw-r--r-- | sc/source/filter/inc/tool.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/sc/source/filter/inc/tool.h b/sc/source/filter/inc/tool.h index c0c936798fa3..a5638c0cb91a 100644 --- a/sc/source/filter/inc/tool.h +++ b/sc/source/filter/inc/tool.h @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,18 +33,18 @@ #include <document.hxx> // Defaultwerte -const BYTE nDezStd = 0; // Dezimalstellen fuer Standard-Zellen -const BYTE nDezFloat = 2; // " " Float-Zellen +const BYTE nDezStd = 0; // Dezimalstellen fuer Standard-Zellen +const BYTE nDezFloat = 2; // " " Float-Zellen -void PutFormString( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Char *pString ); +void PutFormString( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Char *pString ); -void SetFormat( SCCOL nCol, SCROW nRow, SCTAB nTab, BYTE nFormat, BYTE nSt ); +void SetFormat( SCCOL nCol, SCROW nRow, SCTAB nTab, BYTE nFormat, BYTE nSt ); -void InitPage( void ); +void InitPage( void ); -String DosToSystem( sal_Char *pSource ); +String DosToSystem( sal_Char *pSource ); -double SnumToDouble( INT16 nVal ); +double SnumToDouble( INT16 nVal ); double Snum32ToDouble( UINT32 nValue ); @@ -57,8 +57,8 @@ typedef UINT16 StampTyp; class FormIdent { private: - StampTyp nStamp; // Identifikations-Schluessel - SfxUInt32Item* pAttr; // zugehoeriges Attribut + StampTyp nStamp; // Identifikations-Schluessel + SfxUInt32Item* pAttr; // zugehoeriges Attribut public: FormIdent( void ) { @@ -78,27 +78,27 @@ public: pAttr = NULL; } - BOOL operator ==( const FormIdent& rComp ) const + BOOL operator ==( const FormIdent& rComp ) const { return ( nStamp == rComp.nStamp ); } - BOOL operator ==( const StampTyp& rStamp ) const + BOOL operator ==( const StampTyp& rStamp ) const { return ( nStamp == rStamp ); } - StampTyp GetStamp( void ) const + StampTyp GetStamp( void ) const { return nStamp; } - SfxUInt32Item* GetAttr( void ) + SfxUInt32Item* GetAttr( void ) { return pAttr; } - void SetStamp( BYTE nFormat, BYTE nSt ) + void SetStamp( BYTE nFormat, BYTE nSt ) { nStamp = MAKE_STAMP( nFormat, nSt ); } @@ -113,21 +113,21 @@ public: class FormCache { private: - FormIdent aIdents[ __nSize ]; //gepufferte Formate - BOOL bValid[ __nSize ]; - FormIdent aCompareIdent; // zum Vergleichen - BYTE nDefaultFormat; // Defaultformat der Datei - SvNumberFormatter* pFormTable; // Value-Format-Table-Anker - StampTyp nIndex; - LanguageType eLanguage; // Systemsprache - - SfxUInt32Item* NewAttr( BYTE nFormat, BYTE nSt ); + FormIdent aIdents[ __nSize ]; //gepufferte Formate + BOOL bValid[ __nSize ]; + FormIdent aCompareIdent; // zum Vergleichen + BYTE nDefaultFormat; // Defaultformat der Datei + SvNumberFormatter* pFormTable; // Value-Format-Table-Anker + StampTyp nIndex; + LanguageType eLanguage; // Systemsprache + + SfxUInt32Item* NewAttr( BYTE nFormat, BYTE nSt ); public: FormCache( ScDocument*, BYTE nNewDefaultFormat = 0xFF ); ~FormCache(); - inline const SfxUInt32Item* GetAttr( BYTE nFormat, BYTE nSt ); - void SetDefaultFormat( BYTE nD = 0xFF ) + inline const SfxUInt32Item* GetAttr( BYTE nFormat, BYTE nSt ); + void SetDefaultFormat( BYTE nD = 0xFF ) { nDefaultFormat = nD; } @@ -136,11 +136,11 @@ public: inline const SfxUInt32Item* FormCache::GetAttr( BYTE nFormat, BYTE nSt ) { - // PREC: nFormat = Lotus-Format-Byte - // nSt = Stellenzahl - // POST: return = zu nFormat und nSt passendes SC-Format - SfxUInt32Item* pAttr; - SfxUInt32Item* pRet; + // PREC: nFormat = Lotus-Format-Byte + // nSt = Stellenzahl + // POST: return = zu nFormat und nSt passendes SC-Format + SfxUInt32Item* pAttr; + SfxUInt32Item* pRet; aCompareIdent.SetStamp( nFormat, nSt ); nIndex = aCompareIdent.GetStamp(); |