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
f0b4b944
Kaydet (Commit)
f0b4b944
authored
Ara 22, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SwFmtVertOrient::dumpAsXml() from nodedump
Change-Id: Ic1008f0879f121abf3786d7eda282cce189c461a
üst
fe5527f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-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
+10
-0
No files found.
sw/inc/fmtornt.hxx
Dosyayı görüntüle @
f0b4b944
...
@@ -62,6 +62,8 @@ public:
...
@@ -62,6 +62,8 @@ public:
SwTwips
GetPos
()
const
{
return
m_nYPos
;
}
SwTwips
GetPos
()
const
{
return
m_nYPos
;
}
void
SetPos
(
SwTwips
nNew
)
{
m_nYPos
=
nNew
;
}
void
SetPos
(
SwTwips
nNew
)
{
m_nYPos
=
nNew
;
}
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
};
class
SW_DLLPUBLIC
SwFmtHoriOrient
:
public
SfxPoolItem
class
SW_DLLPUBLIC
SwFmtHoriOrient
:
public
SfxPoolItem
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
f0b4b944
...
@@ -429,6 +429,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -429,6 +429,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_FRM_SIZE
:
case
RES_FRM_SIZE
:
static_cast
<
const
SwFmtFrmSize
*>
(
pItem
)
->
dumpAsXml
(
writer
);
static_cast
<
const
SwFmtFrmSize
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
break
;
case
RES_VERT_ORIENT
:
static_cast
<
const
SwFmtVertOrient
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
default
:
bDone
=
false
;
break
;
}
}
if
(
bDone
)
if
(
bDone
)
...
@@ -443,13 +446,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -443,13 +446,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_VERT_ORIENT
:
{
pWhich
=
"frame vertical orientation"
;
const
SwFmtVertOrient
*
pOrient
=
static_cast
<
const
SwFmtVertOrient
*>
(
pItem
);
oValue
=
"orient: "
+
OString
::
number
(
pOrient
->
GetVertOrient
())
+
", relation: "
+
OString
::
number
(
pOrient
->
GetRelationOrient
())
+
", position: "
+
OString
::
number
(
pOrient
->
GetPos
());
break
;
}
case
RES_HORI_ORIENT
:
case
RES_HORI_ORIENT
:
{
{
pWhich
=
"frame horizontal orientation"
;
pWhich
=
"frame horizontal orientation"
;
...
...
sw/source/core/layout/atrfrm.cxx
Dosyayı görüntüle @
f0b4b944
...
@@ -1353,6 +1353,16 @@ bool SwFmtVertOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
...
@@ -1353,6 +1353,16 @@ bool SwFmtVertOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
return
bRet
;
return
bRet
;
}
}
void
SwFmtVertOrient
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swFmtVertOrient"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nYPos"
),
BAD_CAST
(
OString
::
number
(
m_nYPos
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eOrient"
),
BAD_CAST
(
OString
::
number
(
m_eOrient
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eRelation"
),
BAD_CAST
(
OString
::
number
(
m_eRelation
).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// Partially implemented inline in hxx
// Partially implemented inline in hxx
SwFmtHoriOrient
::
SwFmtHoriOrient
(
SwTwips
nX
,
sal_Int16
eHori
,
SwFmtHoriOrient
::
SwFmtHoriOrient
(
SwTwips
nX
,
sal_Int16
eHori
,
sal_Int16
eRel
,
bool
bPos
)
sal_Int16
eRel
,
bool
bPos
)
...
...
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