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
c5d8c466
Kaydet (Commit)
c5d8c466
authored
Mar 03, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwFmtHoriOrient: rename member variables missing their prefixes
Change-Id: Ic245fe20e364be8c4110a52f5f91b611adb187db
üst
24a89b27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
33 deletions
+33
-33
fmtornt.hxx
sw/inc/fmtornt.hxx
+16
-16
atrfrm.cxx
sw/source/core/layout/atrfrm.cxx
+17
-17
No files found.
sw/inc/fmtornt.hxx
Dosyayı görüntüle @
c5d8c466
...
@@ -68,10 +68,10 @@ public:
...
@@ -68,10 +68,10 @@ public:
class
SW_DLLPUBLIC
SwFmtHoriOrient
:
public
SfxPoolItem
class
SW_DLLPUBLIC
SwFmtHoriOrient
:
public
SfxPoolItem
{
{
SwTwips
nXPos
;
///< Contains *always* the current RelPos.
SwTwips
m_
nXPos
;
///< Contains *always* the current RelPos.
sal_Int16
eOrient
;
sal_Int16
m_
eOrient
;
sal_Int16
eRelation
;
sal_Int16
m_
eRelation
;
bool
bPosToggle
:
1
;
///< Flip position on even pages.
bool
m_
bPosToggle
:
1
;
///< Flip position on even pages.
public
:
public
:
TYPEINFO_OVERRIDE
();
TYPEINFO_OVERRIDE
();
SwFmtHoriOrient
(
SwTwips
nX
=
0
,
sal_Int16
eHori
=
com
::
sun
::
star
::
text
::
HoriOrientation
::
NONE
,
SwFmtHoriOrient
(
SwTwips
nX
=
0
,
sal_Int16
eHori
=
com
::
sun
::
star
::
text
::
HoriOrientation
::
NONE
,
...
@@ -89,16 +89,16 @@ public:
...
@@ -89,16 +89,16 @@ public:
virtual
bool
QueryValue
(
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
)
const
SAL_OVERRIDE
;
virtual
bool
QueryValue
(
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
)
const
SAL_OVERRIDE
;
virtual
bool
PutValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
)
SAL_OVERRIDE
;
virtual
bool
PutValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
)
SAL_OVERRIDE
;
sal_Int16
GetHoriOrient
()
const
{
return
eOrient
;
}
sal_Int16
GetHoriOrient
()
const
{
return
m_
eOrient
;
}
sal_Int16
GetRelationOrient
()
const
{
return
eRelation
;
}
sal_Int16
GetRelationOrient
()
const
{
return
m_
eRelation
;
}
void
SetHoriOrient
(
sal_Int16
eNew
)
{
eOrient
=
eNew
;
}
void
SetHoriOrient
(
sal_Int16
eNew
)
{
m_
eOrient
=
eNew
;
}
void
SetRelationOrient
(
sal_Int16
eNew
)
{
eRelation
=
eNew
;
}
void
SetRelationOrient
(
sal_Int16
eNew
)
{
m_
eRelation
=
eNew
;
}
SwTwips
GetPos
()
const
{
return
nXPos
;
}
SwTwips
GetPos
()
const
{
return
m_
nXPos
;
}
void
SetPos
(
SwTwips
nNew
)
{
nXPos
=
nNew
;
}
void
SetPos
(
SwTwips
nNew
)
{
m_
nXPos
=
nNew
;
}
bool
IsPosToggle
()
const
{
return
bPosToggle
;
}
bool
IsPosToggle
()
const
{
return
m_
bPosToggle
;
}
void
SetPosToggle
(
bool
bNew
)
{
bPosToggle
=
bNew
;
}
void
SetPosToggle
(
bool
bNew
)
{
m_
bPosToggle
=
bNew
;
}
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
SAL_OVERRIDE
;
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
SAL_OVERRIDE
;
};
};
...
@@ -112,10 +112,10 @@ inline SwFmtVertOrient &SwFmtVertOrient::operator=( const SwFmtVertOrient &rCpy
...
@@ -112,10 +112,10 @@ inline SwFmtVertOrient &SwFmtVertOrient::operator=( const SwFmtVertOrient &rCpy
}
}
inline
SwFmtHoriOrient
&
SwFmtHoriOrient
::
operator
=
(
const
SwFmtHoriOrient
&
rCpy
)
inline
SwFmtHoriOrient
&
SwFmtHoriOrient
::
operator
=
(
const
SwFmtHoriOrient
&
rCpy
)
{
{
nXPos
=
rCpy
.
GetPos
();
m_
nXPos
=
rCpy
.
GetPos
();
eOrient
=
rCpy
.
GetHoriOrient
();
m_
eOrient
=
rCpy
.
GetHoriOrient
();
eRelation
=
rCpy
.
GetRelationOrient
();
m_
eRelation
=
rCpy
.
GetRelationOrient
();
bPosToggle
=
rCpy
.
IsPosToggle
();
m_
bPosToggle
=
rCpy
.
IsPosToggle
();
return
*
this
;
return
*
this
;
}
}
...
...
sw/source/core/layout/atrfrm.cxx
Dosyayı görüntüle @
c5d8c466
...
@@ -1430,24 +1430,24 @@ void SwFmtVertOrient::dumpAsXml(xmlTextWriterPtr pWriter) const
...
@@ -1430,24 +1430,24 @@ void SwFmtVertOrient::dumpAsXml(xmlTextWriterPtr pWriter) const
SwFmtHoriOrient
::
SwFmtHoriOrient
(
SwTwips
nX
,
sal_Int16
eHori
,
SwFmtHoriOrient
::
SwFmtHoriOrient
(
SwTwips
nX
,
sal_Int16
eHori
,
sal_Int16
eRel
,
bool
bPos
)
sal_Int16
eRel
,
bool
bPos
)
:
SfxPoolItem
(
RES_HORI_ORIENT
),
:
SfxPoolItem
(
RES_HORI_ORIENT
),
nXPos
(
nX
),
m_
nXPos
(
nX
),
eOrient
(
eHori
),
m_
eOrient
(
eHori
),
eRelation
(
eRel
),
m_
eRelation
(
eRel
),
bPosToggle
(
bPos
)
m_
bPosToggle
(
bPos
)
{}
{}
bool
SwFmtHoriOrient
::
operator
==
(
const
SfxPoolItem
&
rAttr
)
const
bool
SwFmtHoriOrient
::
operator
==
(
const
SfxPoolItem
&
rAttr
)
const
{
{
assert
(
SfxPoolItem
::
operator
==
(
rAttr
));
assert
(
SfxPoolItem
::
operator
==
(
rAttr
));
return
(
nXPos
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
nXPos
&&
return
(
m_nXPos
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
m_
nXPos
&&
eOrient
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
eOrient
&&
m_eOrient
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
m_
eOrient
&&
eRelation
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
eRelation
&&
m_eRelation
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
m_
eRelation
&&
bPosToggle
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
bPosToggle
);
m_bPosToggle
==
static_cast
<
const
SwFmtHoriOrient
&>
(
rAttr
).
m_
bPosToggle
);
}
}
SfxPoolItem
*
SwFmtHoriOrient
::
Clone
(
SfxItemPool
*
)
const
SfxPoolItem
*
SwFmtHoriOrient
::
Clone
(
SfxItemPool
*
)
const
{
{
return
new
SwFmtHoriOrient
(
nXPos
,
eOrient
,
eRelation
,
bPosToggle
);
return
new
SwFmtHoriOrient
(
m_nXPos
,
m_eOrient
,
m_eRelation
,
m_
bPosToggle
);
}
}
bool
SwFmtHoriOrient
::
QueryValue
(
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
const
bool
SwFmtHoriOrient
::
QueryValue
(
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
const
...
@@ -1459,11 +1459,11 @@ bool SwFmtHoriOrient::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
...
@@ -1459,11 +1459,11 @@ bool SwFmtHoriOrient::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
{
{
case
MID_HORIORIENT_ORIENT
:
case
MID_HORIORIENT_ORIENT
:
{
{
rVal
<<=
(
sal_Int16
)
eOrient
;
rVal
<<=
(
sal_Int16
)
m_
eOrient
;
}
}
break
;
break
;
case
MID_HORIORIENT_RELATION
:
case
MID_HORIORIENT_RELATION
:
rVal
<<=
(
sal_Int16
)
eRelation
;
rVal
<<=
(
sal_Int16
)
m_
eRelation
;
break
;
break
;
case
MID_HORIORIENT_POSITION
:
case
MID_HORIORIENT_POSITION
:
rVal
<<=
(
sal_Int32
)
convertTwipToMm100
(
GetPos
());
rVal
<<=
(
sal_Int32
)
convertTwipToMm100
(
GetPos
());
...
@@ -1489,12 +1489,12 @@ bool SwFmtHoriOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
...
@@ -1489,12 +1489,12 @@ bool SwFmtHoriOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
{
{
sal_Int16
nVal
=
text
::
HoriOrientation
::
NONE
;
sal_Int16
nVal
=
text
::
HoriOrientation
::
NONE
;
rVal
>>=
nVal
;
rVal
>>=
nVal
;
eOrient
=
nVal
;
m_
eOrient
=
nVal
;
}
}
break
;
break
;
case
MID_HORIORIENT_RELATION
:
case
MID_HORIORIENT_RELATION
:
{
{
eRelation
=
lcl_IntToRelation
(
rVal
);
m_
eRelation
=
lcl_IntToRelation
(
rVal
);
}
}
break
;
break
;
case
MID_HORIORIENT_POSITION
:
case
MID_HORIORIENT_POSITION
:
...
@@ -1521,10 +1521,10 @@ void SwFmtHoriOrient::dumpAsXml(xmlTextWriterPtr pWriter) const
...
@@ -1521,10 +1521,10 @@ void SwFmtHoriOrient::dumpAsXml(xmlTextWriterPtr pWriter) const
{
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swFmtHoriOrient"
));
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swFmtHoriOrient"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
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
(
"nXPos"
),
BAD_CAST
(
OString
::
number
(
m_
nXPos
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eOrient"
),
BAD_CAST
(
OString
::
number
(
eOrient
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eOrient"
),
BAD_CAST
(
OString
::
number
(
m_
eOrient
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eRelation"
),
BAD_CAST
(
OString
::
number
(
eRelation
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"eRelation"
),
BAD_CAST
(
OString
::
number
(
m_
eRelation
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"bPosToggle"
),
BAD_CAST
(
OString
::
boolean
(
bPosToggle
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"bPosToggle"
),
BAD_CAST
(
OString
::
boolean
(
m_
bPosToggle
).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
xmlTextWriterEndElement
(
pWriter
);
}
}
...
...
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