Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b90a19ce
Kaydet (Commit)
b90a19ce
authored
Nis 22, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc html export: cleanup htmlexp.hxx
Change-Id: Ia7dd944260b3de4085ff25597eef154fde256b54
üst
7ab34f41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
20 deletions
+41
-20
htmlexp.hxx
sc/source/filter/inc/htmlexp.hxx
+41
-20
No files found.
sc/source/filter/inc/htmlexp.hxx
Dosyayı görüntüle @
b90a19ce
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include "expbase.hxx"
#include "expbase.hxx"
class
ScDocument
;
class
ScDocument
;
class
SfxItemSet
;
class
SfxItemSet
;
class
SdrPage
;
class
SdrPage
;
...
@@ -50,17 +49,21 @@ struct ScHTMLStyle
...
@@ -50,17 +49,21 @@ struct ScHTMLStyle
sal_uInt8
nDefaultScriptType
;
// Font values are valid for the default script type
sal_uInt8
nDefaultScriptType
;
// Font values are valid for the default script type
bool
bInitialized
;
bool
bInitialized
;
ScHTMLStyle
()
:
nFontHeight
(
0
),
nFontSizeNumber
(
2
),
nDefaultScriptType
(
0
),
ScHTMLStyle
()
:
bInitialized
(
false
)
{}
nFontHeight
(
0
),
nFontSizeNumber
(
2
),
nDefaultScriptType
(),
bInitialized
(
false
)
{}
const
ScHTMLStyle
&
operator
=
(
const
ScHTMLStyle
&
r
)
const
ScHTMLStyle
&
operator
=
(
const
ScHTMLStyle
&
r
ScHTMLStyle
)
{
{
aBackgroundColor
=
r
.
aBackgroundColor
;
aBackgroundColor
=
rScHTMLStyle
.
aBackgroundColor
;
aFontFamilyName
=
r
.
aFontFamilyName
;
aFontFamilyName
=
rScHTMLStyle
.
aFontFamilyName
;
nFontHeight
=
r
.
nFontHeight
;
nFontHeight
=
rScHTMLStyle
.
nFontHeight
;
nFontSizeNumber
=
r
.
nFontSizeNumber
;
nFontSizeNumber
=
rScHTMLStyle
.
nFontSizeNumber
;
nDefaultScriptType
=
r
.
nDefaultScriptType
;
nDefaultScriptType
=
rScHTMLStyle
.
nDefaultScriptType
;
bInitialized
=
r
.
bInitialized
;
bInitialized
=
rScHTMLStyle
.
bInitialized
;
return
*
this
;
return
*
this
;
}
}
};
};
...
@@ -76,8 +79,13 @@ struct ScHTMLGraphEntry
...
@@ -76,8 +79,13 @@ struct ScHTMLGraphEntry
ScHTMLGraphEntry
(
SdrObject
*
pObj
,
const
ScRange
&
rRange
,
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
),
aRange
(
rRange
),
pObject
(
pObj
),
bInCell
(
bIn
),
bWritten
(
false
)
{}
aSize
(
rSize
),
aSpace
(
rSpace
),
pObject
(
pObj
),
bInCell
(
bIn
),
bWritten
(
false
)
{}
};
};
...
@@ -94,14 +102,17 @@ class ScHTMLExport : public ScExportBase
...
@@ -94,14 +102,17 @@ class ScHTMLExport : public ScExportBase
static
const
sal_uInt16
nCellSpacing
;
static
const
sal_uInt16
nCellSpacing
;
static
const
sal_Char
sIndentSource
[];
static
const
sal_Char
sIndentSource
[];
boost
::
ptr_vector
<
ScHTMLGraphEntry
>
aGraphList
;
typedef
boost
::
scoped_ptr
<
std
::
map
<
OUString
,
OUString
>>
FileNameMapPtr
;
typedef
boost
::
ptr_vector
<
ScHTMLGraphEntry
>
GraphEntryList
;
GraphEntryList
aGraphList
;
ScHTMLStyle
aHTMLStyle
;
ScHTMLStyle
aHTMLStyle
;
OUString
aBaseURL
;
OUString
aBaseURL
;
OUString
aStreamPath
;
OUString
aStreamPath
;
OUString
aFilterOptions
;
OUString
aFilterOptions
;
OUString
aCId
;
// Content-Id fuer Mail-Export
OUString
aCId
;
// Content-Id fuer Mail-Export
OutputDevice
*
pAppWin
;
// fuer Pixelei
OutputDevice
*
pAppWin
;
// fuer Pixelei
boost
::
scoped_ptr
<
std
::
map
<
OUString
,
OUString
>
>
pFileNameMap
;
// fuer CopyLocalFileToINet
FileNameMapPtr
pFileNameMap
;
// fuer CopyLocalFileToINet
OUString
aNonConvertibleChars
;
// collect nonconvertible characters
OUString
aNonConvertibleChars
;
// collect nonconvertible characters
rtl_TextEncoding
eDestEnc
;
rtl_TextEncoding
eDestEnc
;
SCTAB
nUsedTables
;
SCTAB
nUsedTables
;
...
@@ -132,27 +143,35 @@ class ScHTMLExport : public ScExportBase
...
@@ -132,27 +143,35 @@ 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
bool
CopyLocalFileToINet
(
OUString
&
rFileNm
,
bool
CopyLocalFileToINet
(
OUString
&
rFileNm
,
const
OUString
&
rTargetNm
,
bool
bFileToFile
=
false
);
const
OUString
&
rTargetNm
,
bool
bFileToFile
=
false
);
bool
HasCId
()
bool
HasCId
()
{
return
!
aCId
.
isEmpty
();
}
{
return
!
aCId
.
isEmpty
();
}
void
MakeCIdURL
(
OUString
&
rURL
);
void
MakeCIdURL
(
OUString
&
rURL
);
void
PrepareGraphics
(
ScDrawLayer
*
,
SCTAB
nTab
,
void
PrepareGraphics
(
ScDrawLayer
*
,
SCTAB
nTab
,
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
);
SCCOL
nEndCol
,
SCROW
nEndRow
);
void
FillGraphList
(
const
SdrPage
*
,
SCTAB
nTab
,
void
FillGraphList
(
const
SdrPage
*
,
SCTAB
nTab
,
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
);
SCCOL
nEndCol
,
SCROW
nEndRow
);
OString
BorderToStyle
(
const
char
*
pBorderName
,
OString
BorderToStyle
(
const
char
*
pBorderName
,
const
::
editeng
::
SvxBorderLine
*
pLine
,
bool
&
bInsertSemicolon
);
const
editeng
::
SvxBorderLine
*
pLine
,
bool
&
bInsertSemicolon
);
sal_uInt16
GetFontSizeNumber
(
sal_uInt16
nHeight
);
sal_uInt16
GetFontSizeNumber
(
sal_uInt16
nHeight
);
const
char
*
GetFontSizeCss
(
sal_uInt16
nHeight
);
const
char
*
GetFontSizeCss
(
sal_uInt16
nHeight
);
sal_uInt16
ToPixel
(
sal_uInt16
nTwips
);
sal_uInt16
ToPixel
(
sal_uInt16
nTwips
);
Size
MMToPixel
(
const
Size
&
r100thMMSize
);
Size
MMToPixel
(
const
Size
&
r100thMMSize
);
void
IncIndent
(
short
nVal
);
void
IncIndent
(
short
nVal
);
const
sal_Char
*
GetIndentStr
()
{
return
sIndent
;
}
const
sal_Char
*
GetIndentStr
()
{
return
sIndent
;
}
public
:
public
:
ScHTMLExport
(
SvStream
&
,
const
OUString
&
,
ScDocument
*
,
const
ScRange
&
,
ScHTMLExport
(
SvStream
&
,
const
OUString
&
,
ScDocument
*
,
const
ScRange
&
,
...
@@ -160,7 +179,9 @@ public:
...
@@ -160,7 +179,9 @@ public:
virtual
~
ScHTMLExport
();
virtual
~
ScHTMLExport
();
sal_uLong
Write
();
sal_uLong
Write
();
const
OUString
&
GetNonConvertibleChars
()
const
const
OUString
&
GetNonConvertibleChars
()
const
{
return
aNonConvertibleChars
;
}
{
return
aNonConvertibleChars
;
}
};
};
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment