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
cd96c954
Kaydet (Commit)
cd96c954
authored
Şub 12, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: I7009519bdf68459f53423720d411c3e6d0ac3d73
üst
536033fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
33 deletions
+33
-33
htmlexp.cxx
sc/source/filter/html/htmlexp.cxx
+10
-10
htmlexp2.cxx
sc/source/filter/html/htmlexp2.cxx
+4
-4
htmlexp.hxx
sc/source/filter/inc/htmlexp.hxx
+19
-19
No files found.
sc/source/filter/html/htmlexp.cxx
Dosyayı görüntüle @
cd96c954
...
@@ -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_B
ool
bAllP
,
const
OUString
&
rStreamPathP
)
:
b
ool
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_T
rue
),
bTableDataWidth
(
t
rue
),
bTableDataHeight
(
sal_T
rue
)
bTableDataHeight
(
t
rue
)
{
{
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_T
rue
;
aHTMLStyle
.
bInitialized
=
t
rue
;
}
}
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_T
rue
;
// widths in first row
bTableDataWidth
=
t
rue
;
// 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_T
rue
;
// height at every first cell of each row
bTableDataHeight
=
t
rue
;
// 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_B
ool
ScHTMLExport
::
CopyLocalFileToINet
(
OUString
&
rFileNm
,
b
ool
ScHTMLExport
::
CopyLocalFileToINet
(
OUString
&
rFileNm
,
const
OUString
&
rTargetNm
,
sal_B
ool
bFileToFile
)
const
OUString
&
rTargetNm
,
b
ool
bFileToFile
)
{
{
sal_B
ool
bRet
=
false
;
b
ool
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_T
rue
;
return
t
rue
;
}
}
}
}
else
else
...
...
sc/source/filter/html/htmlexp2.cxx
Dosyayı görüntüle @
cd96c954
...
@@ -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_T
rue
;
bTabAlignedLeft
=
t
rue
;
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_T
rue
;
pE
->
bWritten
=
t
rue
;
}
}
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_T
rue
;
pE
->
bWritten
=
t
rue
;
}
}
}
}
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_T
rue
;
pE
->
bWritten
=
t
rue
;
}
}
}
}
}
}
...
...
sc/source/filter/inc/htmlexp.hxx
Dosyayı görüntüle @
cd96c954
...
@@ -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_B
ool
bInitialized
;
b
ool
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_B
ool
bInCell
;
// ob in Zelle ausgegeben wird
b
ool
bInCell
;
// ob in Zelle ausgegeben wird
sal_B
ool
bWritten
;
b
ool
bWritten
;
ScHTMLGraphEntry
(
SdrObject
*
pObj
,
const
ScRange
&
rRange
,
ScHTMLGraphEntry
(
SdrObject
*
pObj
,
const
ScRange
&
rRange
,
const
Size
&
rSize
,
sal_B
ool
bIn
,
const
Size
&
rSpace
)
:
const
Size
&
rSize
,
b
ool
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_B
ool
bAll
;
// ganzes Dokument
b
ool
bAll
;
// ganzes Dokument
sal_B
ool
bTabHasGraphics
;
b
ool
bTabHasGraphics
;
sal_B
ool
bTabAlignedLeft
;
b
ool
bTabAlignedLeft
;
sal_B
ool
bCalcAsShown
;
b
ool
bCalcAsShown
;
sal_B
ool
bCopyLocalFileToINet
;
b
ool
bCopyLocalFileToINet
;
sal_B
ool
bTableDataWidth
;
b
ool
bTableDataWidth
;
sal_B
ool
bTableDataHeight
;
b
ool
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_B
ool
CopyLocalFileToINet
(
OUString
&
rFileNm
,
b
ool
CopyLocalFileToINet
(
OUString
&
rFileNm
,
const
OUString
&
rTargetNm
,
sal_B
ool
bFileToFile
=
false
);
const
OUString
&
rTargetNm
,
b
ool
bFileToFile
=
false
);
sal_B
ool
HasCId
()
{
return
!
aCId
.
isEmpty
();
}
b
ool
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_B
ool
bAll
,
const
OUString
&
aStreamPath
);
b
ool
bAll
,
const
OUString
&
aStreamPath
);
virtual
~
ScHTMLExport
();
virtual
~
ScHTMLExport
();
sal_uLong
Write
();
sal_uLong
Write
();
const
OUString
&
GetNonConvertibleChars
()
const
const
OUString
&
GetNonConvertibleChars
()
const
...
...
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