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
01d306ab
Kaydet (Commit)
01d306ab
authored
Şub 22, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwFmtFrmSize: rename member variables missing their prefixes
Change-Id: I4c8876b6be795b7b7af26e7a449a63ec2320d729
üst
b3d15352
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
51 deletions
+51
-51
fmtfsize.hxx
sw/inc/fmtfsize.hxx
+25
-25
atrfrm.cxx
sw/source/core/layout/atrfrm.cxx
+25
-25
attrdesc.cxx
sw/source/ui/utlui/attrdesc.cxx
+1
-1
No files found.
sw/inc/fmtfsize.hxx
Dosyayı görüntüle @
01d306ab
...
...
@@ -40,13 +40,13 @@ enum SwFrmSize
class
SW_DLLPUBLIC
SwFmtFrmSize
:
public
SfxPoolItem
{
Size
aSize
;
SwFrmSize
eFrmHeightType
;
SwFrmSize
eFrmWidthType
;
sal_uInt8
nWidthPercent
;
sal_Int16
eWidthPercentRelation
;
sal_uInt8
nHeightPercent
;
sal_Int16
eHeightPercentRelation
;
Size
m_
aSize
;
SwFrmSize
m_
eFrmHeightType
;
SwFrmSize
m_
eFrmWidthType
;
sal_uInt8
m_
nWidthPercent
;
sal_Int16
m_
eWidthPercentRelation
;
sal_uInt8
m_
nHeightPercent
;
sal_Int16
m_
eHeightPercentRelation
;
// For tables: width can be given in percent.
...
...
@@ -77,28 +77,28 @@ public:
virtual
bool
QueryValue
(
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
)
const
;
virtual
bool
PutValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
);
SwFrmSize
GetHeightSizeType
()
const
{
return
eFrmHeightType
;
}
void
SetHeightSizeType
(
SwFrmSize
eSize
)
{
eFrmHeightType
=
eSize
;
}
SwFrmSize
GetHeightSizeType
()
const
{
return
m_
eFrmHeightType
;
}
void
SetHeightSizeType
(
SwFrmSize
eSize
)
{
m_
eFrmHeightType
=
eSize
;
}
SwFrmSize
GetWidthSizeType
()
const
{
return
eFrmWidthType
;
}
void
SetWidthSizeType
(
SwFrmSize
eSize
)
{
eFrmWidthType
=
eSize
;
}
SwFrmSize
GetWidthSizeType
()
const
{
return
m_
eFrmWidthType
;
}
void
SetWidthSizeType
(
SwFrmSize
eSize
)
{
m_
eFrmWidthType
=
eSize
;
}
const
Size
&
GetSize
()
const
{
return
aSize
;
}
void
SetSize
(
const
Size
&
rNew
)
{
aSize
=
rNew
;
}
const
Size
&
GetSize
()
const
{
return
m_
aSize
;
}
void
SetSize
(
const
Size
&
rNew
)
{
m_
aSize
=
rNew
;
}
SwTwips
GetHeight
()
const
{
return
aSize
.
Height
();
}
SwTwips
GetWidth
()
const
{
return
aSize
.
Width
();
}
void
SetHeight
(
const
SwTwips
nNew
)
{
aSize
.
Height
()
=
nNew
;
}
void
SetWidth
(
const
SwTwips
nNew
)
{
aSize
.
Width
()
=
nNew
;
}
SwTwips
GetHeight
()
const
{
return
m_
aSize
.
Height
();
}
SwTwips
GetWidth
()
const
{
return
m_
aSize
.
Width
();
}
void
SetHeight
(
const
SwTwips
nNew
)
{
m_
aSize
.
Height
()
=
nNew
;
}
void
SetWidth
(
const
SwTwips
nNew
)
{
m_
aSize
.
Width
()
=
nNew
;
}
sal_uInt8
GetHeightPercent
()
const
{
return
nHeightPercent
;
}
sal_Int16
GetHeightPercentRelation
()
const
{
return
eHeightPercentRelation
;
}
sal_uInt8
GetWidthPercent
()
const
{
return
nWidthPercent
;
}
sal_Int16
GetWidthPercentRelation
()
const
{
return
eWidthPercentRelation
;
}
void
SetHeightPercent
(
sal_uInt8
n
)
{
nHeightPercent
=
n
;
}
void
SetHeightPercentRelation
(
sal_Int16
n
)
{
eHeightPercentRelation
=
n
;
}
void
SetWidthPercent
(
sal_uInt8
n
)
{
nWidthPercent
=
n
;
}
void
SetWidthPercentRelation
(
sal_Int16
n
)
{
eWidthPercentRelation
=
n
;
}
sal_uInt8
GetHeightPercent
()
const
{
return
m_
nHeightPercent
;
}
sal_Int16
GetHeightPercentRelation
()
const
{
return
m_
eHeightPercentRelation
;
}
sal_uInt8
GetWidthPercent
()
const
{
return
m_
nWidthPercent
;
}
sal_Int16
GetWidthPercentRelation
()
const
{
return
m_
eWidthPercentRelation
;
}
void
SetHeightPercent
(
sal_uInt8
n
)
{
m_
nHeightPercent
=
n
;
}
void
SetHeightPercentRelation
(
sal_Int16
n
)
{
m_
eHeightPercentRelation
=
n
;
}
void
SetWidthPercent
(
sal_uInt8
n
)
{
m_
nWidthPercent
=
n
;
}
void
SetWidthPercentRelation
(
sal_Int16
n
)
{
m_
eWidthPercentRelation
=
n
;
}
};
inline
const
SwFmtFrmSize
&
SwAttrSet
::
GetFrmSize
(
sal_Bool
bInP
)
const
...
...
sw/source/core/layout/atrfrm.cxx
Dosyayı görüntüle @
01d306ab
...
...
@@ -171,35 +171,35 @@ void DelHFFormat( SwClient *pToRemove, SwFrmFmt *pFmt )
SwFmtFrmSize
::
SwFmtFrmSize
(
SwFrmSize
eSize
,
SwTwips
nWidth
,
SwTwips
nHeight
)
:
SfxPoolItem
(
RES_FRM_SIZE
),
aSize
(
nWidth
,
nHeight
),
eFrmHeightType
(
eSize
),
eFrmWidthType
(
ATT_FIX_SIZE
)
m_
aSize
(
nWidth
,
nHeight
),
m_
eFrmHeightType
(
eSize
),
m_
eFrmWidthType
(
ATT_FIX_SIZE
)
{
nWidthPercent
=
eWidthPercentRelation
=
nHeightPercent
=
eHeightPercentRelation
=
0
;
m_nWidthPercent
=
m_eWidthPercentRelation
=
m_nHeightPercent
=
m_
eHeightPercentRelation
=
0
;
}
SwFmtFrmSize
&
SwFmtFrmSize
::
operator
=
(
const
SwFmtFrmSize
&
rCpy
)
{
aSize
=
rCpy
.
GetSize
();
eFrmHeightType
=
rCpy
.
GetHeightSizeType
();
eFrmWidthType
=
rCpy
.
GetWidthSizeType
();
nHeightPercent
=
rCpy
.
GetHeightPercent
();
eHeightPercentRelation
=
rCpy
.
GetHeightPercentRelation
();
nWidthPercent
=
rCpy
.
GetWidthPercent
();
eWidthPercentRelation
=
rCpy
.
GetWidthPercentRelation
();
m_
aSize
=
rCpy
.
GetSize
();
m_
eFrmHeightType
=
rCpy
.
GetHeightSizeType
();
m_
eFrmWidthType
=
rCpy
.
GetWidthSizeType
();
m_
nHeightPercent
=
rCpy
.
GetHeightPercent
();
m_
eHeightPercentRelation
=
rCpy
.
GetHeightPercentRelation
();
m_
nWidthPercent
=
rCpy
.
GetWidthPercent
();
m_
eWidthPercentRelation
=
rCpy
.
GetWidthPercentRelation
();
return
*
this
;
}
bool
SwFmtFrmSize
::
operator
==
(
const
SfxPoolItem
&
rAttr
)
const
{
OSL_ENSURE
(
SfxPoolItem
::
operator
==
(
rAttr
),
"keine gleichen Attribute"
);
return
(
eFrmHeightType
==
((
SwFmtFrmSize
&
)
rAttr
).
eFrmHeightType
&&
eFrmWidthType
==
((
SwFmtFrmSize
&
)
rAttr
).
eFrmWidthType
&&
aSize
==
((
SwFmtFrmSize
&
)
rAttr
).
GetSize
()
&&
nWidthPercent
==
((
SwFmtFrmSize
&
)
rAttr
).
GetWidthPercent
()
&&
eWidthPercentRelation
==
((
SwFmtFrmSize
&
)
rAttr
).
GetWidthPercentRelation
()
&&
nHeightPercent
==
((
SwFmtFrmSize
&
)
rAttr
).
GetHeightPercent
()
&&
eHeightPercentRelation
==
((
SwFmtFrmSize
&
)
rAttr
).
GetHeightPercentRelation
()
);
return
(
m_eFrmHeightType
==
((
SwFmtFrmSize
&
)
rAttr
).
m_
eFrmHeightType
&&
m_eFrmWidthType
==
((
SwFmtFrmSize
&
)
rAttr
).
m_
eFrmWidthType
&&
m_
aSize
==
((
SwFmtFrmSize
&
)
rAttr
).
GetSize
()
&&
m_
nWidthPercent
==
((
SwFmtFrmSize
&
)
rAttr
).
GetWidthPercent
()
&&
m_
eWidthPercentRelation
==
((
SwFmtFrmSize
&
)
rAttr
).
GetWidthPercentRelation
()
&&
m_
nHeightPercent
==
((
SwFmtFrmSize
&
)
rAttr
).
GetHeightPercent
()
&&
m_
eHeightPercentRelation
==
((
SwFmtFrmSize
&
)
rAttr
).
GetHeightPercentRelation
()
);
}
SfxPoolItem
*
SwFmtFrmSize
::
Clone
(
SfxItemPool
*
)
const
...
...
@@ -216,8 +216,8 @@ bool SwFmtFrmSize::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
case
MID_FRMSIZE_SIZE
:
{
awt
::
Size
aTmp
;
aTmp
.
Height
=
TWIP_TO_MM100
(
aSize
.
Height
());
aTmp
.
Width
=
TWIP_TO_MM100
(
aSize
.
Width
());
aTmp
.
Height
=
TWIP_TO_MM100
(
m_
aSize
.
Height
());
aTmp
.
Width
=
TWIP_TO_MM100
(
m_
aSize
.
Width
());
rVal
.
setValue
(
&
aTmp
,
::
getCppuType
((
const
awt
::
Size
*
)
0
));
}
break
;
...
...
@@ -246,14 +246,14 @@ bool SwFmtFrmSize::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
}
break
;
case
MID_FRMSIZE_WIDTH
:
rVal
<<=
(
sal_Int32
)
TWIP_TO_MM100
(
aSize
.
Width
());
rVal
<<=
(
sal_Int32
)
TWIP_TO_MM100
(
m_
aSize
.
Width
());
break
;
case
MID_FRMSIZE_HEIGHT
:
// #95848# returned size should never be zero.
// (there was a bug that allowed for setting height to 0.
// Thus there some documents existing with that not allowed
// attribut value which may cause problems on import.)
rVal
<<=
(
sal_Int32
)
TWIP_TO_MM100
(
aSize
.
Height
()
<
MINLAY
?
MINLAY
:
aSize
.
Height
()
);
rVal
<<=
(
sal_Int32
)
TWIP_TO_MM100
(
m_aSize
.
Height
()
<
MINLAY
?
MINLAY
:
m_
aSize
.
Height
()
);
break
;
case
MID_FRMSIZE_SIZE_TYPE
:
rVal
<<=
(
sal_Int16
)
GetHeightSizeType
();
...
...
@@ -292,7 +292,7 @@ bool SwFmtFrmSize::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
aTmp
.
Width
()
=
MM100_TO_TWIP
(
aTmp
.
Width
());
}
if
(
aTmp
.
Height
()
&&
aTmp
.
Width
())
aSize
=
aTmp
;
m_
aSize
=
aTmp
;
else
bRet
=
false
;
}
...
...
@@ -359,7 +359,7 @@ bool SwFmtFrmSize::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
nWd
=
MM100_TO_TWIP
(
nWd
);
if
(
nWd
<
MINLAY
)
nWd
=
MINLAY
;
aSize
.
Width
()
=
nWd
;
m_
aSize
.
Width
()
=
nWd
;
}
else
bRet
=
false
;
...
...
@@ -374,7 +374,7 @@ bool SwFmtFrmSize::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
nHg
=
MM100_TO_TWIP
(
nHg
);
if
(
nHg
<
MINLAY
)
nHg
=
MINLAY
;
aSize
.
Height
()
=
nHg
;
m_
aSize
.
Height
()
=
nHg
;
}
else
bRet
=
false
;
...
...
sw/source/ui/utlui/attrdesc.cxx
Dosyayı görüntüle @
01d306ab
...
...
@@ -349,7 +349,7 @@ SfxItemPresentation SwFmtFrmSize::GetPresentation
}
if
(
ATT_VAR_SIZE
!=
GetHeightSizeType
()
)
{
const
sal_uInt16
nId
=
ATT_FIX_SIZE
==
eFrmHeightType
?
const
sal_uInt16
nId
=
ATT_FIX_SIZE
==
m_
eFrmHeightType
?
STR_FRM_FIXEDHEIGHT
:
STR_FRM_MINHEIGHT
;
rText
=
rText
+
", "
+
SW_RESSTR
(
nId
)
+
" "
;
if
(
GetHeightPercent
()
)
...
...
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