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
5a05742c
Kaydet (Commit)
5a05742c
authored
Mar 02, 2011
tarafından
npcdoom
Kaydeden (comit)
Luboš Luňák
Mar 04, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remode deprecated List container.
Signed-off-by:
Luboš Luňák
<
l.lunak@suse.cz
>
üst
60db6501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
38 deletions
+23
-38
sdasaitm.hxx
svx/inc/svx/sdasaitm.hxx
+4
-3
svdattr.cxx
svx/source/svdraw/svdattr.cxx
+19
-35
No files found.
svx/inc/svx/sdasaitm.hxx
Dosyayı görüntüle @
5a05742c
...
...
@@ -29,8 +29,9 @@
#ifndef _SDASAITM_HXX
#define _SDASAITM_HXX
#include <vector>
#include <svl/poolitem.hxx>
#include <tools/list.hxx>
class
SdrCustomShapeAdjustmentValue
{
...
...
@@ -47,7 +48,7 @@ class SdrCustomShapeAdjustmentValue
class
SdrCustomShapeAdjustmentItem
:
public
SfxPoolItem
{
List
aAdjustmentValueList
;
std
::
vector
<
SdrCustomShapeAdjustmentValue
>
aAdjustmentValueList
;
public
:
...
...
@@ -68,7 +69,7 @@ class SdrCustomShapeAdjustmentItem : public SfxPoolItem
virtual
bool
QueryValue
(
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
BYTE
nMemberId
=
0
)
const
;
virtual
bool
PutValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
BYTE
nMemberId
=
0
);
sal_uInt32
GetCount
()
const
{
return
aAdjustmentValueList
.
Count
();
};
sal_uInt32
GetCount
()
const
{
return
aAdjustmentValueList
.
size
();
};
SVX_DLLPUBLIC
const
SdrCustomShapeAdjustmentValue
&
GetValue
(
sal_uInt32
nIndex
)
const
;
SVX_DLLPUBLIC
void
SetValue
(
sal_uInt32
nIndex
,
const
SdrCustomShapeAdjustmentValue
&
rVal
);
...
...
svx/source/svdraw/svdattr.cxx
Dosyayı görüntüle @
5a05742c
...
...
@@ -1482,9 +1482,6 @@ SdrCustomShapeAdjustmentItem::SdrCustomShapeAdjustmentItem( SvStream& rIn, sal_u
SdrCustomShapeAdjustmentItem
::~
SdrCustomShapeAdjustmentItem
()
{
void
*
pPtr
;
for
(
pPtr
=
aAdjustmentValueList
.
First
();
pPtr
;
pPtr
=
aAdjustmentValueList
.
Next
()
)
delete
(
SdrCustomShapeAdjustmentValue
*
)
pPtr
;
}
int
SdrCustomShapeAdjustmentItem
::
operator
==
(
const
SfxPoolItem
&
rCmp
)
const
...
...
@@ -1492,18 +1489,13 @@ int SdrCustomShapeAdjustmentItem::operator==( const SfxPoolItem& rCmp ) const
int
bRet
=
SfxPoolItem
::
operator
==
(
rCmp
);
if
(
bRet
)
{
bRet
=
((
SdrCustomShapeAdjustmentItem
&
)
rCmp
).
GetCount
()
==
GetCount
();
if
(
bRet
)
bRet
=
GetCount
()
==
((
SdrCustomShapeAdjustmentItem
&
)
rCmp
).
GetCount
();
if
(
bRet
)
{
sal_uInt32
i
;
for
(
i
=
0
;
i
<
GetCount
();
i
++
)
{
if
(
((
SdrCustomShapeAdjustmentItem
&
)
rCmp
).
GetValue
(
i
).
nValue
!=
GetValue
(
i
).
nValue
)
{
bRet
=
0
;
break
;
}
}
for
(
sal_uInt32
i
=
0
;
i
<
GetCount
();
++
i
)
if
(
aAdjustmentValueList
[
i
].
nValue
!=
((
SdrCustomShapeAdjustmentItem
&
)
rCmp
).
aAdjustmentValueList
[
i
].
nValue
)
return
false
;
}
}
return
bRet
;
...
...
@@ -1550,13 +1542,11 @@ SvStream& SdrCustomShapeAdjustmentItem::Store( SvStream& rOut, sal_uInt16 nItemV
SfxPoolItem
*
SdrCustomShapeAdjustmentItem
::
Clone
(
SfxItemPool
*
/*pPool*/
)
const
{
sal_uInt32
i
;
SdrCustomShapeAdjustmentItem
*
pItem
=
new
SdrCustomShapeAdjustmentItem
;
for
(
i
=
0
;
i
<
GetCount
();
i
++
)
{
const
SdrCustomShapeAdjustmentValue
&
rVal
=
GetValue
(
i
);
pItem
->
SetValue
(
i
,
rVal
);
}
if
(
pItem
)
pItem
->
aAdjustmentValueList
=
aAdjustmentValueList
;
return
pItem
;
}
...
...
@@ -1566,19 +1556,15 @@ const SdrCustomShapeAdjustmentValue& SdrCustomShapeAdjustmentItem::GetValue( sal
if
(
aAdjustmentValueList
.
Count
()
<=
nIndex
)
OSL_FAIL
(
"SdrCustomShapeAdjustemntItem::GetValue - nIndex out of range (SJ)"
);
#endif
return
*
(
SdrCustomShapeAdjustmentValue
*
)
aAdjustmentValueList
.
GetObject
(
nIndex
)
;
return
aAdjustmentValueList
[
nIndex
]
;
}
void
SdrCustomShapeAdjustmentItem
::
SetValue
(
sal_uInt32
nIndex
,
const
SdrCustomShapeAdjustmentValue
&
rVal
)
{
sal_uInt32
i
;
for
(
i
=
GetCount
();
i
<=
nIndex
;
i
++
)
{
SdrCustomShapeAdjustmentValue
*
pItem
=
new
SdrCustomShapeAdjustmentValue
;
aAdjustmentValueList
.
Insert
(
pItem
,
LIST_APPEND
);
}
SdrCustomShapeAdjustmentValue
&
rValue
=
*
(
SdrCustomShapeAdjustmentValue
*
)
aAdjustmentValueList
.
GetObject
(
nIndex
);
rValue
.
nValue
=
rVal
.
nValue
;
for
(
sal_uInt32
i
=
aAdjustmentValueList
.
size
();
i
<=
nIndex
;
i
++
)
aAdjustmentValueList
.
push_back
(
SdrCustomShapeAdjustmentValue
());
aAdjustmentValueList
[
nIndex
]
=
rVal
;
}
sal_uInt16
SdrCustomShapeAdjustmentItem
::
GetVersion
(
sal_uInt16
/*nFileFormatVersion*/
)
const
...
...
@@ -1606,19 +1592,17 @@ bool SdrCustomShapeAdjustmentItem::PutValue( const uno::Any& rVal, BYTE /*nMembe
if
(
!
(
rVal
>>=
aSequence
)
)
return
false
;
void
*
pPtr
;
for
(
pPtr
=
aAdjustmentValueList
.
First
();
pPtr
;
pPtr
=
aAdjustmentValueList
.
Next
()
)
delete
(
SdrCustomShapeAdjustmentValue
*
)
pPtr
;
aAdjustmentValueList
.
clear
();
sal_uInt32
i
,
nCount
=
aSequence
.
getLength
();
if
(
nCount
)
{
SdrCustomShapeAdjustmentValue
val
;
const
sal_Int32
*
pPtr2
=
aSequence
.
getConstArray
();
for
(
i
=
0
;
i
<
nCount
;
i
++
)
{
SdrCustomShapeAdjustmentValue
*
pItem
=
new
SdrCustomShapeAdjustmentValue
;
pItem
->
nValue
=
*
pPtr2
++
;
aAdjustmentValueList
.
Insert
(
pItem
,
LIST_APPEND
);
val
.
nValue
=
*
pPtr2
++
;
aAdjustmentValueList
.
push_back
(
val
);
}
}
return
true
;
...
...
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