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
28d84e1b
Kaydet (Commit)
28d84e1b
authored
Agu 12, 2011
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
placeholder for writing math to .docx
üst
ece27b6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
4 deletions
+36
-4
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+33
-3
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+3
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
28d84e1b
...
@@ -113,6 +113,7 @@
...
@@ -113,6 +113,7 @@
#include <htmltbl.hxx>
#include <htmltbl.hxx>
#include <lineinfo.hxx>
#include <lineinfo.hxx>
#include <ndgrf.hxx>
#include <ndgrf.hxx>
#include <ndole.hxx>
#include <ndtxt.hxx>
#include <ndtxt.hxx>
#include <node.hxx>
#include <node.hxx>
#include <pagedesc.hxx>
#include <pagedesc.hxx>
...
@@ -2207,7 +2208,15 @@ void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode& rGrfNode, const Size
...
@@ -2207,7 +2208,15 @@ void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode& rGrfNode, const Size
m_pSerializer
->
endElementNS
(
XML_w
,
XML_drawing
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_drawing
);
}
}
void
DocxAttributeOutput
::
WriteOLE2Obj
(
const
SdrObject
*
pSdrObj
,
const
Size
&
rSize
)
void
DocxAttributeOutput
::
WriteOLE2Obj
(
const
SdrObject
*
pSdrObj
,
const
SwOLENode
&
rOLENode
,
const
Size
&
rSize
)
{
if
(
WriteOLEChart
(
pSdrObj
,
rSize
))
return
;
if
(
WriteOLEMath
(
pSdrObj
,
rOLENode
,
rSize
))
return
;
}
bool
DocxAttributeOutput
::
WriteOLEChart
(
const
SdrObject
*
pSdrObj
,
const
Size
&
rSize
)
{
{
uno
::
Reference
<
chart2
::
XChartDocument
>
xChartDoc
;
uno
::
Reference
<
chart2
::
XChartDocument
>
xChartDoc
;
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
((
SdrObject
*
)
pSdrObj
)
->
getUnoShape
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
((
SdrObject
*
)
pSdrObj
)
->
getUnoShape
(),
uno
::
UNO_QUERY
);
...
@@ -2277,7 +2286,23 @@ void DocxAttributeOutput::WriteOLE2Obj( const SdrObject* pSdrObj, const Size& rS
...
@@ -2277,7 +2286,23 @@ void DocxAttributeOutput::WriteOLE2Obj( const SdrObject* pSdrObj, const Size& rS
m_pSerializer
->
endElementNS
(
XML_a
,
XML_graphic
);
m_pSerializer
->
endElementNS
(
XML_a
,
XML_graphic
);
m_pSerializer
->
endElementNS
(
XML_wp
,
XML_inline
);
m_pSerializer
->
endElementNS
(
XML_wp
,
XML_inline
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_drawing
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_drawing
);
return
true
;
}
}
return
false
;
}
bool
DocxAttributeOutput
::
WriteOLEMath
(
const
SdrObject
*
,
const
SwOLENode
&
rOLENode
,
const
Size
&
)
{
uno
::
Reference
<
embed
::
XEmbeddedObject
>
xObj
(
const_cast
<
SwOLENode
&>
(
rOLENode
).
GetOLEObj
().
GetOleRef
());
sal_Int64
nAspect
=
rOLENode
.
GetAspect
();
svt
::
EmbeddedObjectRef
aObjRef
(
xObj
,
nAspect
);
SvGlobalName
aObjName
(
aObjRef
->
getClassID
());
if
(
!
SotExchange
::
IsMath
(
aObjName
)
)
return
false
;
// TODO
return
true
;
}
}
void
DocxAttributeOutput
::
OutputFlyFrame_Impl
(
const
sw
::
Frame
&
rFrame
,
const
Point
&
/*rNdTopLeft*/
)
void
DocxAttributeOutput
::
OutputFlyFrame_Impl
(
const
sw
::
Frame
&
rFrame
,
const
Point
&
/*rNdTopLeft*/
)
...
@@ -2339,9 +2364,14 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po
...
@@ -2339,9 +2364,14 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po
break
;
break
;
case
sw
:
:
Frame
::
eOle
:
case
sw
:
:
Frame
::
eOle
:
{
{
const
SdrObject
*
pSdrObj
=
rFrame
.
GetFrmFmt
().
FindRealSdrObject
();
const
SwFrmFmt
&
rFrmFmt
=
rFrame
.
GetFrmFmt
();
const
SdrObject
*
pSdrObj
=
rFrmFmt
.
FindRealSdrObject
();
if
(
pSdrObj
)
if
(
pSdrObj
)
WriteOLE2Obj
(
pSdrObj
,
rFrame
.
GetLayoutSize
()
);
{
SwNodeIndex
aIdx
(
*
rFrmFmt
.
GetCntnt
().
GetCntntIdx
(),
1
);
SwOLENode
&
rOLENd
=
*
aIdx
.
GetNode
().
GetOLENode
();
WriteOLE2Obj
(
pSdrObj
,
rOLENd
,
rFrame
.
GetLayoutSize
()
);
}
}
}
break
;
break
;
default
:
default
:
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
28d84e1b
...
@@ -301,7 +301,9 @@ private:
...
@@ -301,7 +301,9 @@ private:
/// Output graphic fly frames.
/// Output graphic fly frames.
void
FlyFrameGraphic
(
const
SwGrfNode
&
rGrfNode
,
const
Size
&
rSize
);
void
FlyFrameGraphic
(
const
SwGrfNode
&
rGrfNode
,
const
Size
&
rSize
);
void
WriteOLE2Obj
(
const
SdrObject
*
pSdrObj
,
const
Size
&
rSize
);
void
WriteOLE2Obj
(
const
SdrObject
*
pSdrObj
,
const
SwOLENode
&
rNode
,
const
Size
&
rSize
);
bool
WriteOLEChart
(
const
SdrObject
*
pSdrObj
,
const
Size
&
rSize
);
bool
WriteOLEMath
(
const
SdrObject
*
pSdrObj
,
const
SwOLENode
&
rNode
,
const
Size
&
rSize
);
void
InitTableHelper
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
void
InitTableHelper
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
void
StartTable
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
void
StartTable
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pTableTextNodeInfoInner
);
...
...
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