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)
ScHTMLExport
::
ScHTMLExport
(
SvStream
&
rStrmP
,
const
OUString
&
rBaseURL
,
ScDocument
*
pDocP
,
const
ScRange
&
rRangeP
,
sal_B
ool
bAllP
,
const
OUString
&
rStreamPathP
)
:
b
ool
bAllP
,
const
OUString
&
rStreamPathP
)
:
ScExportBase
(
rStrmP
,
pDocP
,
rRangeP
),
aBaseURL
(
rBaseURL
),
aStreamPath
(
rStreamPathP
),
...
...
@@ -221,8 +221,8 @@ ScHTMLExport::ScHTMLExport( SvStream& rStrmP, const OUString& rBaseURL, ScDocume
bTabHasGraphics
(
false
),
bTabAlignedLeft
(
false
),
bCalcAsShown
(
pDocP
->
GetDocOptions
().
IsCalcAsShown
()
),
bTableDataWidth
(
sal_T
rue
),
bTableDataHeight
(
sal_T
rue
)
bTableDataWidth
(
t
rue
),
bTableDataHeight
(
t
rue
)
{
strcpy
(
sIndent
,
sIndentSource
);
sIndent
[
0
]
=
0
;
...
...
@@ -478,7 +478,7 @@ const SfxItemSet& ScHTMLExport::PageDefaults( SCTAB nTab )
{
const
SvxBrushItem
*
pBrushItem
=
(
const
SvxBrushItem
*
)
&
rSet
.
Get
(
ATTR_BACKGROUND
);
aHTMLStyle
.
aBackgroundColor
=
pBrushItem
->
GetColor
();
aHTMLStyle
.
bInitialized
=
sal_T
rue
;
aHTMLStyle
.
bInitialized
=
t
rue
;
}
return
rSet
;
}
...
...
@@ -770,7 +770,7 @@ void ScHTMLExport::WriteTables()
// 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
// <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
);
for
(
SCROW
nRow
=
nStartRow
;
nRow
<=
nEndRow
;
nRow
++
)
{
...
...
@@ -782,7 +782,7 @@ void ScHTMLExport::WriteTables()
}
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
++
)
{
if
(
pDoc
->
ColHidden
(
nCol2
,
nTab
)
)
...
...
@@ -1235,10 +1235,10 @@ bool ScHTMLExport::WriteFieldText( const EditTextObject* pData )
}
sal_B
ool
ScHTMLExport
::
CopyLocalFileToINet
(
OUString
&
rFileNm
,
const
OUString
&
rTargetNm
,
sal_B
ool
bFileToFile
)
b
ool
ScHTMLExport
::
CopyLocalFileToINet
(
OUString
&
rFileNm
,
const
OUString
&
rTargetNm
,
b
ool
bFileToFile
)
{
sal_B
ool
bRet
=
false
;
b
ool
bRet
=
false
;
INetURLObject
aFileUrl
,
aTargetUrl
;
aFileUrl
.
SetSmartURL
(
rFileNm
);
aTargetUrl
.
SetSmartURL
(
rTargetNm
);
...
...
@@ -1255,7 +1255,7 @@ sal_Bool ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
if
(
it
!=
pFileNameMap
->
end
()
)
{
rFileNm
=
it
->
second
;
return
sal_T
rue
;
return
t
rue
;
}
}
else
...
...
sc/source/filter/html/htmlexp2.cxx
Dosyayı görüntüle @
cd96c954
...
...
@@ -58,7 +58,7 @@ void ScHTMLExport::PrepareGraphics( ScDrawLayer* pDrawLayer, SCTAB nTab,
ScHTMLGraphEntry
*
pE
=
&
aGraphList
[
i
];
if
(
!
pE
->
bInCell
)
{
// not all cells: table next to some
bTabAlignedLeft
=
sal_T
rue
;
bTabAlignedLeft
=
t
rue
;
break
;
}
}
...
...
@@ -155,7 +155,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE )
if
(
pSGO
->
IsLinkedGraphic
()
)
aLinkName
=
pSGO
->
GetFileName
();
WriteImage
(
aLinkName
,
pSGO
->
GetGraphic
(),
aOpt
,
nXOutFlags
);
pE
->
bWritten
=
sal_T
rue
;
pE
->
bWritten
=
t
rue
;
}
break
;
case
OBJ_OLE2
:
...
...
@@ -165,7 +165,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE )
{
OUString
aLinkName
;
WriteImage
(
aLinkName
,
*
pGraphic
,
aOpt
);
pE
->
bWritten
=
sal_T
rue
;
pE
->
bWritten
=
t
rue
;
}
}
break
;
...
...
@@ -175,7 +175,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE )
pDoc
->
GetDrawLayer
(),
pObject
)
);
OUString
aLinkName
;
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
{
// Defaults aus StyleSheet
Color
aBackgroundColor
;
OUString
aFontFamilyName
;
sal_uInt32
nFontHeight
;
// Item-Value
sal_uInt16
nFontSizeNumber
;
// HTML value 1-7
sal_uInt8
nDefaultScriptType
;
// Font values are valid for the default script type
sal_B
ool
bInitialized
;
sal_uInt32
nFontHeight
;
// Item-Value
sal_uInt16
nFontSizeNumber
;
// HTML value 1-7
sal_uInt8
nDefaultScriptType
;
// Font values are valid for the default script type
b
ool
bInitialized
;
ScHTMLStyle
()
:
nFontHeight
(
0
),
nFontSizeNumber
(
2
),
nDefaultScriptType
(
0
),
bInitialized
(
0
)
{}
bInitialized
(
false
)
{}
const
ScHTMLStyle
&
operator
=
(
const
ScHTMLStyle
&
r
)
{
...
...
@@ -71,11 +71,11 @@ struct ScHTMLGraphEntry
Size
aSize
;
// Groesse in Pixeln
Size
aSpace
;
// Spacing in Pixeln
SdrObject
*
pObject
;
sal_B
ool
bInCell
;
// ob in Zelle ausgegeben wird
sal_B
ool
bWritten
;
b
ool
bInCell
;
// ob in Zelle ausgegeben wird
b
ool
bWritten
;
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
),
pObject
(
pObj
),
bInCell
(
bIn
),
bWritten
(
false
)
{}
};
...
...
@@ -106,13 +106,13 @@ class ScHTMLExport : public ScExportBase
SCTAB
nUsedTables
;
short
nIndent
;
sal_Char
sIndent
[
nIndentMax
+
1
];
sal_B
ool
bAll
;
// ganzes Dokument
sal_B
ool
bTabHasGraphics
;
sal_B
ool
bTabAlignedLeft
;
sal_B
ool
bCalcAsShown
;
sal_B
ool
bCopyLocalFileToINet
;
sal_B
ool
bTableDataWidth
;
sal_B
ool
bTableDataHeight
;
b
ool
bAll
;
// ganzes Dokument
b
ool
bTabHasGraphics
;
b
ool
bTabAlignedLeft
;
b
ool
bCalcAsShown
;
b
ool
bCopyLocalFileToINet
;
b
ool
bTableDataWidth
;
b
ool
bTableDataHeight
;
const
SfxItemSet
&
PageDefaults
(
SCTAB
nTab
);
...
...
@@ -131,9 +131,9 @@ class ScHTMLExport : public ScExportBase
bool
WriteFieldText
(
const
EditTextObject
*
pData
);
// kopiere ggfs. eine lokale Datei ins Internet
sal_B
ool
CopyLocalFileToINet
(
OUString
&
rFileNm
,
const
OUString
&
rTargetNm
,
sal_B
ool
bFileToFile
=
false
);
sal_B
ool
HasCId
()
{
return
!
aCId
.
isEmpty
();
}
b
ool
CopyLocalFileToINet
(
OUString
&
rFileNm
,
const
OUString
&
rTargetNm
,
b
ool
bFileToFile
=
false
);
b
ool
HasCId
()
{
return
!
aCId
.
isEmpty
();
}
void
MakeCIdURL
(
OUString
&
rURL
);
void
PrepareGraphics
(
ScDrawLayer
*
,
SCTAB
nTab
,
...
...
@@ -155,7 +155,7 @@ class ScHTMLExport : public ScExportBase
public
:
ScHTMLExport
(
SvStream
&
,
const
OUString
&
,
ScDocument
*
,
const
ScRange
&
,
sal_B
ool
bAll
,
const
OUString
&
aStreamPath
);
b
ool
bAll
,
const
OUString
&
aStreamPath
);
virtual
~
ScHTMLExport
();
sal_uLong
Write
();
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