summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/htmlexp.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/inc/htmlexp.hxx')
-rw-r--r--sc/source/filter/inc/htmlexp.hxx110
1 files changed, 55 insertions, 55 deletions
diff --git a/sc/source/filter/inc/htmlexp.hxx b/sc/source/filter/inc/htmlexp.hxx
index 4a7e8f3f32b9..3cc00e39e4de 100644
--- a/sc/source/filter/inc/htmlexp.hxx
+++ b/sc/source/filter/inc/htmlexp.hxx
@@ -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
@@ -49,10 +49,10 @@ class ScEditCell;
class SvxBorderLine;
struct ScHTMLStyle
-{ // Defaults aus StyleSheet
- Color aBackgroundColor;
- String aFontFamilyName;
- UINT32 nFontHeight; // Item-Value
+{ // Defaults aus StyleSheet
+ Color aBackgroundColor;
+ String aFontFamilyName;
+ UINT32 nFontHeight; // Item-Value
USHORT nFontSizeNumber; // HTML value 1-7
BYTE nDefaultScriptType; // Font values are valid for the default script type
BOOL bInitialized;
@@ -62,9 +62,9 @@ struct ScHTMLStyle
const ScHTMLStyle& operator=( const ScHTMLStyle& r )
{
- aBackgroundColor = r.aBackgroundColor;
- aFontFamilyName = r.aFontFamilyName;
- nFontHeight = r.nFontHeight;
+ aBackgroundColor = r.aBackgroundColor;
+ aFontFamilyName = r.aFontFamilyName;
+ nFontHeight = r.nFontHeight;
nFontSizeNumber = r.nFontSizeNumber;
nDefaultScriptType = r.nDefaultScriptType;
bInitialized = r.bInitialized;
@@ -74,15 +74,15 @@ struct ScHTMLStyle
struct ScHTMLGraphEntry
{
- ScRange aRange; // ueberlagerter Zellbereich
- Size aSize; // Groesse in Pixeln
- Size aSpace; // Spacing in Pixeln
- SdrObject* pObject;
- BOOL bInCell; // ob in Zelle ausgegeben wird
- BOOL bWritten;
+ ScRange aRange; // ueberlagerter Zellbereich
+ Size aSize; // Groesse in Pixeln
+ Size aSpace; // Spacing in Pixeln
+ SdrObject* pObject;
+ BOOL bInCell; // ob in Zelle ausgegeben wird
+ BOOL bWritten;
ScHTMLGraphEntry( SdrObject* pObj, const ScRange& rRange,
- const Size& rSize, BOOL bIn, const Size& rSpace ) :
+ const Size& rSize, BOOL bIn, const Size& rSpace ) :
aRange( rRange ), aSize( rSize ), aSpace( rSpace ),
pObject( pObj ), bInCell( bIn ), bWritten( FALSE ) {}
};
@@ -95,77 +95,77 @@ const short nIndentMax = 23;
class ScHTMLExport : public ScExportBase
{
// default HtmlFontSz[1-7]
- static const USHORT nDefaultFontSize[SC_HTML_FONTSIZES];
+ static const USHORT nDefaultFontSize[SC_HTML_FONTSIZES];
// HtmlFontSz[1-7] in s*3.ini [user]
- static USHORT nFontSize[SC_HTML_FONTSIZES];
- static const char* pFontSizeCss[SC_HTML_FONTSIZES];
- static const USHORT nCellSpacing;
+ static USHORT nFontSize[SC_HTML_FONTSIZES];
+ static const char* pFontSizeCss[SC_HTML_FONTSIZES];
+ static const USHORT nCellSpacing;
static const sal_Char __FAR_DATA sIndentSource[];
- ScHTMLGraphList aGraphList;
- ScHTMLStyle aHTMLStyle;
+ ScHTMLGraphList aGraphList;
+ ScHTMLStyle aHTMLStyle;
String aBaseURL;
- String aStreamPath;
- String aCId; // Content-Id fuer Mail-Export
- OutputDevice* pAppWin; // fuer Pixelei
- SvStringsSortDtor* pSrcArr; // fuer CopyLocalFileToINet
- SvStringsSortDtor* pDestArr;
+ String aStreamPath;
+ String aCId; // Content-Id fuer Mail-Export
+ OutputDevice* pAppWin; // fuer Pixelei
+ SvStringsSortDtor* pSrcArr; // fuer CopyLocalFileToINet
+ SvStringsSortDtor* pDestArr;
String aNonConvertibleChars; // collect nonconvertible characters
- rtl_TextEncoding eDestEnc;
- SCTAB nUsedTables;
- short nIndent;
- sal_Char sIndent[nIndentMax+1];
- BOOL bAll; // ganzes Dokument
- BOOL bTabHasGraphics;
- BOOL bTabAlignedLeft;
- BOOL bCalcAsShown;
- BOOL bCopyLocalFileToINet;
+ rtl_TextEncoding eDestEnc;
+ SCTAB nUsedTables;
+ short nIndent;
+ sal_Char sIndent[nIndentMax+1];
+ BOOL bAll; // ganzes Dokument
+ BOOL bTabHasGraphics;
+ BOOL bTabAlignedLeft;
+ BOOL bCalcAsShown;
+ BOOL bCopyLocalFileToINet;
BOOL bTableDataWidth;
BOOL bTableDataHeight;
- const SfxItemSet& PageDefaults( SCTAB nTab );
+ const SfxItemSet& PageDefaults( SCTAB nTab );
void WriteBody();
- void WriteHeader();
- void WriteOverview();
- void WriteTables();
- void WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab );
- void WriteGraphEntry( ScHTMLGraphEntry* );
+ void WriteHeader();
+ void WriteOverview();
+ void WriteTables();
+ void WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab );
+ void WriteGraphEntry( ScHTMLGraphEntry* );
void WriteImage( String& rLinkName,
const Graphic&, const ByteString& rImgOptions,
ULONG nXOutFlags = 0 );
// nXOutFlags fuer XOutBitmap::WriteGraphic
// write to stream if and only if URL fields in edit cell
- BOOL WriteFieldText( const ScEditCell* pCell );
+ BOOL WriteFieldText( const ScEditCell* pCell );
// kopiere ggfs. eine lokale Datei ins Internet
- BOOL CopyLocalFileToINet( String& rFileNm,
+ BOOL CopyLocalFileToINet( String& rFileNm,
const String& rTargetNm, BOOL bFileToFile = FALSE );
- BOOL HasCId() { return aCId.Len() > 0; }
- void MakeCIdURL( String& rURL );
+ BOOL HasCId() { return aCId.Len() > 0; }
+ void MakeCIdURL( String& rURL );
- void PrepareGraphics( ScDrawLayer*, SCTAB nTab,
+ void PrepareGraphics( ScDrawLayer*, SCTAB nTab,
SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow );
- void FillGraphList( const SdrPage*, SCTAB nTab,
+ void FillGraphList( const SdrPage*, SCTAB nTab,
SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow );
- void BorderToStyle( ByteString& rOut, const char* pBorderName,
+ void BorderToStyle( ByteString& rOut, const char* pBorderName,
const SvxBorderLine* pLine, bool& bInsertSemicolon );
- USHORT GetFontSizeNumber( USHORT nHeight );
- const char* GetFontSizeCss( USHORT nHeight );
- USHORT ToPixel( USHORT nTwips );
- Size MMToPixel( const Size& r100thMMSize );
- void IncIndent( short nVal );
- const sal_Char* GetIndentStr() { return sIndent; }
+ USHORT GetFontSizeNumber( USHORT nHeight );
+ const char* GetFontSizeCss( USHORT nHeight );
+ USHORT ToPixel( USHORT nTwips );
+ Size MMToPixel( const Size& r100thMMSize );
+ void IncIndent( short nVal );
+ const sal_Char* GetIndentStr() { return sIndent; }
public:
ScHTMLExport( SvStream&, const String&, ScDocument*, const ScRange&,
BOOL bAll, const String& aStreamPath );
- virtual ~ScHTMLExport();
+ virtual ~ScHTMLExport();
ULONG Write();
const String& GetNonConvertibleChars() const
{ return aNonConvertibleChars; }