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
cc15d898
Kaydet (Commit)
cc15d898
authored
Ara 22, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SwFmtHoriOrient::dumpAsXml() from nodedump
Change-Id: I63ec35abcd7e69147ff4f98b1989875967c470fe
üst
f0b4b944
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
fmtornt.hxx
sw/inc/fmtornt.hxx
+2
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+3
-7
atrfrm.cxx
sw/source/core/layout/atrfrm.cxx
+11
-0
No files found.
sw/inc/fmtornt.hxx
Dosyayı görüntüle @
cc15d898
...
@@ -99,6 +99,8 @@ public:
...
@@ -99,6 +99,8 @@ public:
bool
IsPosToggle
()
const
{
return
bPosToggle
;
}
bool
IsPosToggle
()
const
{
return
bPosToggle
;
}
void
SetPosToggle
(
bool
bNew
)
{
bPosToggle
=
bNew
;
}
void
SetPosToggle
(
bool
bNew
)
{
bPosToggle
=
bNew
;
}
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
};
inline
SwFmtVertOrient
&
SwFmtVertOrient
::
operator
=
(
const
SwFmtVertOrient
&
rCpy
)
inline
SwFmtVertOrient
&
SwFmtVertOrient
::
operator
=
(
const
SwFmtVertOrient
&
rCpy
)
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
cc15d898
...
@@ -432,6 +432,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -432,6 +432,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_VERT_ORIENT
:
case
RES_VERT_ORIENT
:
static_cast
<
const
SwFmtVertOrient
*>
(
pItem
)
->
dumpAsXml
(
writer
);
static_cast
<
const
SwFmtVertOrient
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
break
;
case
RES_HORI_ORIENT
:
static_cast
<
const
SwFmtHoriOrient
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
default
:
bDone
=
false
;
break
;
}
}
if
(
bDone
)
if
(
bDone
)
...
@@ -446,13 +449,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -446,13 +449,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
switch
(
pItem
->
Which
())
{
{
case
RES_HORI_ORIENT
:
{
pWhich
=
"frame horizontal orientation"
;
const
SwFmtHoriOrient
*
pOrient
=
static_cast
<
const
SwFmtHoriOrient
*>
(
pItem
);
oValue
=
"orient: "
+
OString
::
number
(
pOrient
->
GetHoriOrient
())
+
", relation: "
+
OString
::
number
(
pOrient
->
GetRelationOrient
())
+
", position: "
+
OString
::
number
(
pOrient
->
GetPos
());
break
;
}
case
RES_ANCHOR
:
case
RES_ANCHOR
:
{
{
pWhich
=
"frame anchor"
;
pWhich
=
"frame anchor"
;
...
...
sw/source/core/layout/atrfrm.cxx
Dosyayı görüntüle @
cc15d898
...
@@ -1454,6 +1454,17 @@ bool SwFmtHoriOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
...
@@ -1454,6 +1454,17 @@ bool SwFmtHoriOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
return
bRet
;
return
bRet
;
}
}
void
SwFmtHoriOrient
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swFmtHoriOrient"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nXPos"
),
BAD_CAST
(
OString
::
number
(
nXPos
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eOrient"
),
BAD_CAST
(
OString
::
number
(
eOrient
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eRelation"
),
BAD_CAST
(
OString
::
number
(
eRelation
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"bPosToggle"
),
BAD_CAST
(
OString
::
boolean
(
bPosToggle
).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// Partially implemented inline in hxx
// Partially implemented inline in hxx
SwFmtAnchor
::
SwFmtAnchor
(
RndStdIds
nRnd
,
sal_uInt16
nPage
)
SwFmtAnchor
::
SwFmtAnchor
(
RndStdIds
nRnd
,
sal_uInt16
nPage
)
:
SfxPoolItem
(
RES_ANCHOR
),
:
SfxPoolItem
(
RES_ANCHOR
),
...
...
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