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
d5ac1754
Kaydet (Commit)
d5ac1754
authored
Ara 28, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SwFmtFollowTextFlow::dumpAsXml() from core
Change-Id: Iafd2db5d878857c517e79f84b8c9c6a806ccfe4b
üst
e9d0ad43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
fmtfollowtextflow.hxx
sw/inc/fmtfollowtextflow.hxx
+2
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+4
-5
attrdesc.cxx
sw/source/uibase/utlui/attrdesc.cxx
+9
-0
No files found.
sw/inc/fmtfollowtextflow.hxx
Dosyayı görüntüle @
d5ac1754
...
...
@@ -41,6 +41,8 @@ public:
SfxMapUnit
ePresMetric
,
OUString
&
rText
,
const
IntlWrapper
*
pIntl
=
0
)
const
SAL_OVERRIDE
;
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
inline
const
SwFmtFollowTextFlow
&
SwAttrSet
::
GetFollowTextFlow
(
bool
bInP
)
const
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
d5ac1754
...
...
@@ -36,6 +36,7 @@
#include "fmtpdsc.hxx"
#include "pagedesc.hxx"
#include "fchrfmt.hxx"
#include "fmtfollowtextflow.hxx"
#include <swmodule.hxx>
#include <svl/itemiter.hxx>
#include <svl/intitem.hxx>
...
...
@@ -441,6 +442,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_SURROUND
:
static_cast
<
const
SwFmtSurround
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
case
RES_FOLLOW_TEXT_FLOW
:
static_cast
<
const
SwFmtFollowTextFlow
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
}
if
(
bDone
)
...
...
@@ -455,11 +459,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
{
case
RES_FOLLOW_TEXT_FLOW
:
{
pWhich
=
"frame follow text flow"
;
break
;
}
case
RES_WRAP_INFLUENCE_ON_OBJPOS
:
{
pWhich
=
"frame wrap influence on object position"
;
...
...
sw/source/uibase/utlui/attrdesc.cxx
Dosyayı görüntüle @
d5ac1754
...
...
@@ -55,6 +55,7 @@
#include <attrdesc.hrc>
#include <fmtftntx.hxx>
#include <fmtfollowtextflow.hxx>
#include <libxml/xmlwriter.h>
using
namespace
com
::
sun
::
star
;
...
...
@@ -834,4 +835,12 @@ bool SwFmtFollowTextFlow::GetPresentation( SfxItemPresentation ePres,
return
true
;
}
void
SwFmtFollowTextFlow
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swFmtFollowTextFlow"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"value"
),
BAD_CAST
(
OString
::
boolean
(
GetValue
()).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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