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
4aec6c9e
Kaydet (Commit)
4aec6c9e
authored
Nis 05, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
html: "IgnoreImages" Option, which ignores images at export
Change-Id: I7ff6e83fabbc9f58e16b2617207a37e8dd0061d9
üst
5f230bce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
htmlflywriter.cxx
sw/source/filter/html/htmlflywriter.cxx
+3
-0
wrthtml.cxx
sw/source/filter/html/wrthtml.cxx
+21
-1
wrthtml.hxx
sw/source/filter/html/wrthtml.hxx
+4
-0
No files found.
sw/source/filter/html/htmlflywriter.cxx
Dosyayı görüntüle @
4aec6c9e
...
@@ -811,6 +811,9 @@ Writer& OutHTML_Image( Writer& rWrt, const SwFrmFmt &rFrmFmt,
...
@@ -811,6 +811,9 @@ Writer& OutHTML_Image( Writer& rWrt, const SwFrmFmt &rFrmFmt,
{
{
SwHTMLWriter
&
rHTMLWrt
=
(
SwHTMLWriter
&
)
rWrt
;
SwHTMLWriter
&
rHTMLWrt
=
(
SwHTMLWriter
&
)
rWrt
;
if
(
rHTMLWrt
.
mbSkipImages
)
return
rHTMLWrt
;
// ggf. ein noch offenes Attribut voruebergehend beenden
// ggf. ein noch offenes Attribut voruebergehend beenden
if
(
!
rHTMLWrt
.
aINetFmts
.
empty
()
)
if
(
!
rHTMLWrt
.
aINetFmts
.
empty
()
)
{
{
...
...
sw/source/filter/html/wrthtml.cxx
Dosyayı görüntüle @
4aec6c9e
...
@@ -80,6 +80,8 @@
...
@@ -80,6 +80,8 @@
#define MAX_INDENT_LEVEL 20
#define MAX_INDENT_LEVEL 20
using
namespace
css
;
static
sal_Char
sIndentTabs
[
MAX_INDENT_LEVEL
+
2
]
=
static
sal_Char
sIndentTabs
[
MAX_INDENT_LEVEL
+
2
]
=
"
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
"
;
"
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
"
;
...
@@ -129,6 +131,24 @@ SwHTMLWriter::~SwHTMLWriter()
...
@@ -129,6 +131,24 @@ SwHTMLWriter::~SwHTMLWriter()
delete
pNumRuleInfo
;
delete
pNumRuleInfo
;
}
}
void
SwHTMLWriter
::
SetupFilterOptions
(
SfxMedium
&
rMedium
)
{
const
SfxItemSet
*
pSet
=
rMedium
.
GetItemSet
();
if
(
pSet
==
NULL
)
return
;
const
SfxPoolItem
*
pItem
;
if
(
pSet
->
GetItemState
(
SID_FILE_FILTEROPTIONS
,
true
,
&
pItem
)
!=
SFX_ITEM_SET
)
return
;
OUString
sFilterOptions
=
((
const
SfxStringItem
*
)
pItem
)
->
GetValue
();
if
(
sFilterOptions
==
"IgnoreImages"
)
{
mbSkipImages
=
true
;
}
}
sal_uLong
SwHTMLWriter
::
WriteStream
()
sal_uLong
SwHTMLWriter
::
WriteStream
()
{
{
SvxHtmlOptions
&
rHtmlOptions
=
SvxHtmlOptions
::
Get
();
SvxHtmlOptions
&
rHtmlOptions
=
SvxHtmlOptions
::
Get
();
...
@@ -893,7 +913,7 @@ const SwPageDesc *SwHTMLWriter::MakeHeader( sal_uInt16 &rHeaderAttrs )
...
@@ -893,7 +913,7 @@ const SwPageDesc *SwHTMLWriter::MakeHeader( sal_uInt16 &rHeaderAttrs )
// DokumentInfo
// DokumentInfo
OString
sIndent
=
GetIndentString
();
OString
sIndent
=
GetIndentString
();
using
namespace
::
com
::
sun
::
star
;
uno
::
Reference
<
document
::
XDocumentProperties
>
xDocProps
;
uno
::
Reference
<
document
::
XDocumentProperties
>
xDocProps
;
SwDocShell
*
pDocShell
(
pDoc
->
GetDocShell
());
SwDocShell
*
pDocShell
(
pDoc
->
GetDocShell
());
if
(
pDocShell
)
if
(
pDocShell
)
...
...
sw/source/filter/html/wrthtml.hxx
Dosyayı görüntüle @
4aec6c9e
...
@@ -281,6 +281,7 @@ class SwHTMLWriter : public Writer
...
@@ -281,6 +281,7 @@ class SwHTMLWriter : public Writer
protected
:
protected
:
sal_uLong
WriteStream
()
SAL_OVERRIDE
;
sal_uLong
WriteStream
()
SAL_OVERRIDE
;
void
SetupFilterOptions
(
SfxMedium
&
rMedium
)
SAL_OVERRIDE
;
public
:
public
:
std
::
vector
<
OUString
>
aImgMapNames
;
// geschriebene Image Maps
std
::
vector
<
OUString
>
aImgMapNames
;
// geschriebene Image Maps
...
@@ -392,6 +393,9 @@ public:
...
@@ -392,6 +393,9 @@ public:
sal_Bool
bPreserveForm
:
1
;
// die aktuelle Form beibehalten
sal_Bool
bPreserveForm
:
1
;
// die aktuelle Form beibehalten
sal_Bool
bCfgNetscape4
:
1
;
// Netscape4 Hacks
sal_Bool
bCfgNetscape4
:
1
;
// Netscape4 Hacks
sal_Bool
mbSkipImages
:
1
;
// 23
// 23
SwHTMLWriter
(
const
OUString
&
rBaseURL
);
SwHTMLWriter
(
const
OUString
&
rBaseURL
);
...
...
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