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
562c39d7
Kaydet (Commit)
562c39d7
authored
Tem 11, 2013
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix HTML export of linked image bullets
Change-Id: I14ade42adfff9beb0e40eb0d7e5569cbef0ced06
üst
5e75084c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
68 deletions
+51
-68
htmlatr.cxx
sw/source/filter/html/htmlatr.cxx
+0
-1
htmlfly.cxx
sw/source/filter/html/htmlfly.cxx
+50
-65
htmlnum.cxx
sw/source/filter/html/htmlnum.cxx
+0
-1
wrthtml.hxx
sw/source/filter/html/wrthtml.hxx
+1
-1
No files found.
sw/source/filter/html/htmlatr.cxx
Dosyayı görüntüle @
562c39d7
...
...
@@ -978,7 +978,6 @@ void OutHTML_SwFmt( Writer& rWrt, const SwFmt& rFmt,
OSL_ENSURE
(
nBulletGrfLvl
<
MAXLEVEL
,
"So viele Ebenen gibt's nicht"
);
const
SwNumFmt
&
rNumFmt
=
aNumInfo
.
GetNumRule
()
->
Get
(
nBulletGrfLvl
);
OutHTML_BulletImage
(
rWrt
,
OOO_STRING_SVTOOLS_HTML_image
,
rNumFmt
.
GetBrush
(),
rHWrt
.
aBulletGrfs
[
nBulletGrfLvl
],
rNumFmt
.
GetGraphicSize
(),
rNumFmt
.
GetGraphicOrientation
()
);
}
...
...
sw/source/filter/html/htmlfly.cxx
Dosyayı görüntüle @
562c39d7
...
...
@@ -1199,33 +1199,21 @@ Writer& OutHTML_Image( Writer& rWrt, const SwFrmFmt &rFrmFmt,
Writer
&
OutHTML_BulletImage
(
Writer
&
rWrt
,
const
sal_Char
*
pTag
,
const
SvxBrushItem
*
pBrush
,
String
&
rGrfName
,
const
Size
&
rSize
,
const
SwFmtVertOrient
*
pVertOrient
)
{
SwHTMLWriter
&
rHTMLWrt
=
(
SwHTMLWriter
&
)
rWrt
;
//Wenn es ein BrushItem gibt, muss die Grafiknoch exportiert werden
const
String
*
pLink
=
0
;
OUString
aGraphicInBase64
;
if
(
pBrush
)
{
pLink
=
pBrush
->
GetGraphicLink
();
//embeddete Grafik -> WriteEmbedded schreiben
if
(
!
pLink
)
const
Graphic
*
pGrf
=
pBrush
->
GetGraphic
();
if
(
pGrf
)
{
const
Graphic
*
pGrf
=
pBrush
->
GetGraphic
(
);
if
(
pGrf
)
sal_uLong
nErr
=
XOutBitmap
::
GraphicToBase64
(
*
pGrf
,
aGraphicInBase64
);
if
(
nErr
)
{
sal_uLong
nErr
=
XOutBitmap
::
GraphicToBase64
(
*
pGrf
,
aGraphicInBase64
);
if
(
nErr
)
{
rHTMLWrt
.
nWarn
=
WARN_SWG_POOR_LOAD
|
WARN_SW_WRITE_BASE
;
}
if
(
rHTMLWrt
.
GetOrigFileName
()
)
rGrfName
=
*
rHTMLWrt
.
GetOrigFileName
();
pLink
=
&
rGrfName
;
rHTMLWrt
.
nWarn
=
WARN_SWG_POOR_LOAD
|
WARN_SW_WRITE_BASE
;
}
}
}
...
...
@@ -1234,61 +1222,58 @@ Writer& OutHTML_BulletImage( Writer& rWrt,
if
(
pTag
)
sOut
.
append
(
'<'
).
append
(
pTag
);
if
(
pLink
)
sOut
.
append
(
' '
);
sOut
.
append
(
OOO_STRING_SVTOOLS_HTML_O_src
).
append
(
"=
\"
"
).
append
(
OOO_STRING_SVTOOLS_HTML_O_data
).
append
(
":"
);
rWrt
.
Strm
()
<<
sOut
.
makeStringAndClear
().
getStr
();
HTMLOutFuncs
::
Out_String
(
rWrt
.
Strm
(),
aGraphicInBase64
,
rHTMLWrt
.
eDestEnc
,
&
rHTMLWrt
.
aNonConvertableCharacters
);
sOut
.
append
(
'\"'
);
// Groesse des Objekts Twips ohne Raender
Size
aPixelSz
(
0
,
0
);
if
(
(
rSize
.
Width
()
||
rSize
.
Height
())
&&
Application
::
GetDefaultDevice
()
)
{
sOut
.
append
(
' '
);
sOut
.
append
(
OOO_STRING_SVTOOLS_HTML_O_src
).
append
(
"=
\"
"
).
append
(
OOO_STRING_SVTOOLS_HTML_O_data
).
append
(
":"
);
rWrt
.
Strm
()
<<
sOut
.
makeStringAndClear
().
getStr
();
HTMLOutFuncs
::
Out_String
(
rWrt
.
Strm
(),
aGraphicInBase64
,
rHTMLWrt
.
eDestEnc
,
&
rHTMLWrt
.
aNonConvertableCharacters
);
sOut
.
append
(
'\"'
);
aPixelSz
=
Application
::
GetDefaultDevice
()
->
LogicToPixel
(
rSize
,
MapMode
(
MAP_TWIP
)
);
if
(
!
aPixelSz
.
Width
()
&&
rSize
.
Width
()
)
aPixelSz
.
Width
()
=
1
;
if
(
!
aPixelSz
.
Height
()
&&
rSize
.
Height
()
)
aPixelSz
.
Height
()
=
1
;
}
// Groesse des Objekts Twips ohne Raender
Size
aPixelSz
(
0
,
0
);
if
(
(
rSize
.
Width
()
||
rSize
.
Height
())
&&
Application
::
GetDefaultDevice
()
)
{
aPixelSz
=
Application
::
GetDefaultDevice
()
->
LogicToPixel
(
rSize
,
MapMode
(
MAP_TWIP
)
);
if
(
!
aPixelSz
.
Width
()
&&
rSize
.
Width
()
)
aPixelSz
.
Width
()
=
1
;
if
(
!
aPixelSz
.
Height
()
&&
rSize
.
Height
()
)
aPixelSz
.
Height
()
=
1
;
}
if
(
aPixelSz
.
Width
()
)
{
sOut
.
append
(
' '
).
append
(
OOO_STRING_SVTOOLS_HTML_O_width
).
append
(
'='
).
append
(
static_cast
<
sal_Int32
>
(
aPixelSz
.
Width
()));
}
if
(
aPixelSz
.
Width
()
)
{
sOut
.
append
(
' '
).
append
(
OOO_STRING_SVTOOLS_HTML_O_width
).
append
(
'='
).
append
(
static_cast
<
sal_Int32
>
(
aPixelSz
.
Width
()));
}
if
(
aPixelSz
.
Height
()
)
{
sOut
.
append
(
' '
).
append
(
OOO_STRING_SVTOOLS_HTML_O_height
).
append
(
'='
).
append
(
static_cast
<
sal_Int32
>
(
aPixelSz
.
Height
()));
}
if
(
aPixelSz
.
Height
()
)
if
(
pVertOrient
)
{
const
sal_Char
*
pStr
=
0
;
switch
(
pVertOrient
->
GetVertOrient
()
)
{
sOut
.
append
(
' '
).
append
(
OOO_STRING_SVTOOLS_HTML_O_height
).
append
(
'='
).
append
(
static_cast
<
sal_Int32
>
(
aPixelSz
.
Height
()));
case
text
:
:
VertOrientation
::
LINE_TOP
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_top
;
break
;
case
text
:
:
VertOrientation
::
CHAR_TOP
:
case
text
:
:
VertOrientation
::
BOTTOM
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_texttop
;
break
;
// geht nicht
case
text
:
:
VertOrientation
::
LINE_CENTER
:
case
text
:
:
VertOrientation
::
CHAR_CENTER
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_absmiddle
;
break
;
// geht nicht
case
text
:
:
VertOrientation
::
CENTER
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_middle
;
break
;
case
text
:
:
VertOrientation
::
LINE_BOTTOM
:
case
text
:
:
VertOrientation
::
CHAR_BOTTOM
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_absbottom
;
break
;
// geht nicht
case
text
:
:
VertOrientation
::
TOP
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_bottom
;
break
;
case
text
:
:
VertOrientation
::
NONE
:
break
;
}
if
(
pVertOrient
)
if
(
pStr
)
{
const
sal_Char
*
pStr
=
0
;
switch
(
pVertOrient
->
GetVertOrient
()
)
{
case
text
:
:
VertOrientation
::
LINE_TOP
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_top
;
break
;
case
text
:
:
VertOrientation
::
CHAR_TOP
:
case
text
:
:
VertOrientation
::
BOTTOM
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_texttop
;
break
;
// geht nicht
case
text
:
:
VertOrientation
::
LINE_CENTER
:
case
text
:
:
VertOrientation
::
CHAR_CENTER
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_absmiddle
;
break
;
// geht nicht
case
text
:
:
VertOrientation
::
CENTER
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_middle
;
break
;
case
text
:
:
VertOrientation
::
LINE_BOTTOM
:
case
text
:
:
VertOrientation
::
CHAR_BOTTOM
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_absbottom
;
break
;
// geht nicht
case
text
:
:
VertOrientation
::
TOP
:
pStr
=
OOO_STRING_SVTOOLS_HTML_VA_bottom
;
break
;
case
text
:
:
VertOrientation
::
NONE
:
break
;
}
if
(
pStr
)
{
sOut
.
append
(
' '
).
append
(
OOO_STRING_SVTOOLS_HTML_O_align
).
append
(
'='
).
append
(
pStr
);
}
sOut
.
append
(
' '
).
append
(
OOO_STRING_SVTOOLS_HTML_O_align
).
append
(
'='
).
append
(
pStr
);
}
}
...
...
sw/source/filter/html/htmlnum.cxx
Dosyayı görüntüle @
562c39d7
...
...
@@ -827,7 +827,6 @@ Writer& OutHTML_NumBulListStart( SwHTMLWriter& rWrt,
OutHTML_BulletImage
(
rWrt
,
0
,
rNumFmt
.
GetBrush
(),
rWrt
.
aBulletGrfs
[
i
],
rNumFmt
.
GetGraphicSize
(),
rNumFmt
.
GetGraphicOrientation
()
);
}
...
...
sw/source/filter/html/wrthtml.hxx
Dosyayı görüntüle @
562c39d7
...
...
@@ -636,7 +636,7 @@ Writer& OutHTML_Image( Writer&, const SwFrmFmt& rFmt,
const
ImageMap
*
pGenImgMap
=
0
);
Writer
&
OutHTML_BulletImage
(
Writer
&
rWrt
,
const
sal_Char
*
pTag
,
const
SvxBrushItem
*
pBrush
,
String
&
rGrfName
,
const
SvxBrushItem
*
pBrush
,
const
Size
&
rSize
,
const
SwFmtVertOrient
*
pVertOrient
);
...
...
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