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
b7de0431
Kaydet (Commit)
b7de0431
authored
Ock 30, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
initial DOCX export of Writer textframe gradients
Change-Id: I0b0a623c58ca398bb556fc9fcd2cdecb4e789d0a
üst
23515e81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+36
-2
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+5
-0
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
b7de0431
...
...
@@ -70,6 +70,8 @@
#include <editeng/editobj.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdobj.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflgrit.hxx>
#include <sfx2/sfxbasemodel.hxx>
#include <anchoredobject.hxx>
...
...
@@ -315,6 +317,12 @@ void DocxAttributeOutput::EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pT
m_pSerializer
->
startElementNS
(
XML_w
,
XML_pict
,
FSEND
);
m_pSerializer
->
startElementNS
(
XML_v
,
XML_rect
,
xFlyAttrList
);
lcl_TextFrameShadow
(
m_pSerializer
,
rFrmFmt
);
if
(
m_pFlyFillAttrList
)
{
XFastAttributeListRef
xFlyFillAttrList
(
m_pFlyFillAttrList
);
m_pFlyFillAttrList
=
NULL
;
m_pSerializer
->
singleElementNS
(
XML_v
,
XML_fill
,
xFlyFillAttrList
);
}
m_pSerializer
->
startElementNS
(
XML_v
,
XML_textbox
,
FSEND
);
m_pSerializer
->
startElementNS
(
XML_w
,
XML_txbxContent
,
FSEND
);
m_rExport
.
WriteText
(
);
...
...
@@ -4547,12 +4555,37 @@ void DocxAttributeOutput::FormatBackground( const SvxBrushItem& rBrush )
}
}
void
DocxAttributeOutput
::
FormatFillStyle
(
const
XFillStyleItem
&
/*rFillStyle*/
)
void
DocxAttributeOutput
::
FormatFillStyle
(
const
XFillStyleItem
&
rFillStyle
)
{
m_oFillStyle
.
reset
(
rFillStyle
.
GetValue
());
}
void
DocxAttributeOutput
::
FormatFillGradient
(
const
XFillGradientItem
&
/*rFillGradient*/
)
void
DocxAttributeOutput
::
FormatFillGradient
(
const
XFillGradientItem
&
rFillGradient
)
{
if
(
*
m_oFillStyle
==
XFILL_GRADIENT
)
{
m_pFlyFillAttrList
=
m_pSerializer
->
createAttrList
();
m_pFlyFillAttrList
->
add
(
XML_type
,
"gradient"
);
const
XGradient
&
rGradient
=
rFillGradient
.
GetGradientValue
();
OString
sStartColor
=
impl_ConvertColor
(
rGradient
.
GetStartColor
());
m_pFlyFillAttrList
->
add
(
XML_color2
,
"#"
+
sStartColor
);
OString
sEndColor
=
impl_ConvertColor
(
rGradient
.
GetEndColor
());
m_pFlyAttrList
->
add
(
XML_fillcolor
,
"#"
+
sEndColor
);
switch
(
rGradient
.
GetGradientStyle
())
{
case
XGRAD_LINEAR
:
break
;
case
XGRAD_AXIAL
:
m_pFlyFillAttrList
->
add
(
XML_focus
,
"50%"
);
break
;
case
XGRAD_RADIAL
:
break
;
case
XGRAD_ELLIPTICAL
:
break
;
case
XGRAD_SQUARE
:
break
;
case
XGRAD_RECT
:
break
;
}
}
m_oFillStyle
.
reset
();
}
void
DocxAttributeOutput
::
FormatBox
(
const
SvxBoxItem
&
rBox
)
...
...
@@ -4743,6 +4776,7 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
m_pParagraphSpacingAttrList
(
NULL
),
m_pHyperlinkAttrList
(
NULL
),
m_pFlyAttrList
(
NULL
),
m_pFlyFillAttrList
(
NULL
),
m_pFootnotesList
(
new
::
docx
::
FootnotesList
()
),
m_pEndnotesList
(
new
::
docx
::
FootnotesList
()
),
m_footnoteEndnoteRefTag
(
0
),
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
b7de0431
...
...
@@ -28,11 +28,13 @@
#include <sax/fshelper.hxx>
#include <sax/fastattribs.hxx>
#include <vcl/vclenum.hxx>
#include <svx/xenum.hxx>
#include <fldbas.hxx>
#include <vector>
#include <boost/scoped_ptr.hpp>
#include <boost/optional.hpp>
#include <oox/export/vmlexport.hxx>
class
SwGrfNode
;
...
...
@@ -558,6 +560,7 @@ private:
::
sax_fastparser
::
FastAttributeList
*
m_pParagraphSpacingAttrList
;
::
sax_fastparser
::
FastAttributeList
*
m_pHyperlinkAttrList
;
::
sax_fastparser
::
FastAttributeList
*
m_pFlyAttrList
;
::
sax_fastparser
::
FastAttributeList
*
m_pFlyFillAttrList
;
::
docx
::
FootnotesList
*
m_pFootnotesList
;
::
docx
::
FootnotesList
*
m_pEndnotesList
;
...
...
@@ -630,6 +633,8 @@ private:
// Remember first cell (used for for default borders/margins) of each table
std
::
vector
<
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
>
tableFirstCells
;
boost
::
optional
<
XFillStyle
>
m_oFillStyle
;
public
:
DocxAttributeOutput
(
DocxExport
&
rExport
,
::
sax_fastparser
::
FSHelperPtr
pSerializer
,
oox
::
drawingml
::
DrawingML
*
pDrawingML
);
...
...
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