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
e6721d2d
Kaydet (Commit)
e6721d2d
authored
Ara 03, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uno::Sequence->std::vector in SfxIntegerListItem
Change-Id: Icdbb361feea2ebee74f9d0a906bdd3c2882443e8
üst
ea297dd2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
31 deletions
+22
-31
res_DataLabel.cxx
chart2/source/controller/dialogs/res_DataLabel.cxx
+3
-3
tp_SeriesToAxis.cxx
chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
+4
-4
border.cxx
cui/source/tabpages/border.cxx
+1
-2
ilstitem.hxx
include/svl/ilstitem.hxx
+3
-7
tabvwsh3.cxx
sc/source/ui/view/tabvwsh3.cxx
+1
-1
ilstitem.cxx
svl/source/items/ilstitem.cxx
+10
-14
No files found.
chart2/source/controller/dialogs/res_DataLabel.cxx
Dosyayı görüntüle @
e6721d2d
...
...
@@ -133,13 +133,13 @@ DataLabelResources::DataLabelResources(VclBuilderContainer* pWindow, vcl::Window
for
(
sal_Int32
nEnum
=
0
;
nEnum
<
m_pLB_LabelPlacement
->
GetEntryCount
();
++
nEnum
)
aPlacementToStringMap
[
nEnum
]
=
m_pLB_LabelPlacement
->
GetEntry
(
static_cast
<
sal_uInt16
>
(
nEnum
));
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>
aAvailabelPlacementList
;
std
::
vector
<
sal_Int32
>
aAvailabelPlacementList
;
const
SfxPoolItem
*
pPoolItem
=
nullptr
;
if
(
rInAttrs
.
GetItemState
(
SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS
,
true
,
&
pPoolItem
)
==
SfxItemState
::
SET
)
aAvailabelPlacementList
=
static_cast
<
const
SfxIntegerListItem
*>
(
pPoolItem
)
->
Get
ConstSequence
();
aAvailabelPlacementList
=
static_cast
<
const
SfxIntegerListItem
*>
(
pPoolItem
)
->
Get
List
();
m_pLB_LabelPlacement
->
Clear
();
for
(
s
al_Int32
nN
=
0
;
nN
<
aAvailabelPlacementList
.
getLength
();
++
nN
)
for
(
s
ize_t
nN
=
0
;
nN
<
aAvailabelPlacementList
.
size
();
++
nN
)
{
sal_uInt16
nListBoxPos
=
static_cast
<
sal_uInt16
>
(
nN
);
sal_Int32
nPlacement
=
aAvailabelPlacementList
[
nN
];
...
...
chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
Dosyayı görüntüle @
e6721d2d
...
...
@@ -189,17 +189,17 @@ void SchOptionTabPage::Reset(const SfxItemSet* rInAttrs)
//missing value treatment
{
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>
aMissingValueTreatments
;
std
::
vector
<
sal_Int32
>
aMissingValueTreatments
;
if
(
rInAttrs
->
GetItemState
(
SCHATTR_AVAILABLE_MISSING_VALUE_TREATMENTS
,
true
,
&
pPoolItem
)
==
SfxItemState
::
SET
)
aMissingValueTreatments
=
static_cast
<
const
SfxIntegerListItem
*>
(
pPoolItem
)
->
GetConstSequence
();
aMissingValueTreatments
=
static_cast
<
const
SfxIntegerListItem
*>
(
pPoolItem
)
->
GetList
();
if
(
aMissingValueTreatments
.
getLength
()
>
1
&&
rInAttrs
->
GetItemState
(
SCHATTR_MISSING_VALUE_TREATMENT
,
true
,
&
pPoolItem
)
==
SfxItemState
::
SET
)
if
(
aMissingValueTreatments
.
size
()
>
1
&&
rInAttrs
->
GetItemState
(
SCHATTR_MISSING_VALUE_TREATMENT
,
true
,
&
pPoolItem
)
==
SfxItemState
::
SET
)
{
m_pRB_DontPaint
->
Enable
(
false
);
m_pRB_AssumeZero
->
Enable
(
false
);
m_pRB_ContinueLine
->
Enable
(
false
);
for
(
sal_Int32
nN
=
0
;
nN
<
aMissingValueTreatments
.
getLength
();
nN
++
)
for
(
sal_Int32
nN
=
0
;
nN
<
aMissingValueTreatments
.
size
();
nN
++
)
{
sal_Int32
nVal
=
aMissingValueTreatments
[
nN
];
if
(
nVal
==::
com
::
sun
::
star
::
chart
::
MissingValueTreatment
::
LEAVE_GAP
)
...
...
cui/source/tabpages/border.cxx
Dosyayı görüntüle @
e6721d2d
...
...
@@ -162,8 +162,7 @@ SvxBorderTabPage::SvxBorderTabPage(vcl::Window* pParent, const SfxItemSet& rCore
if
(
rCoreAttrs
.
HasItem
(
SID_ATTR_BORDER_STYLES
,
&
pItem
))
{
const
SfxIntegerListItem
*
p
=
static_cast
<
const
SfxIntegerListItem
*>
(
pItem
);
std
::
vector
<
sal_Int32
>
aUsedStyles
;
p
->
GetList
(
aUsedStyles
);
std
::
vector
<
sal_Int32
>
aUsedStyles
=
p
->
GetList
();
for
(
size_t
i
=
0
,
n
=
aUsedStyles
.
size
();
i
<
n
;
++
i
)
maUsedBorderStyles
.
insert
(
static_cast
<
sal_Int16
>
(
aUsedStyles
[
i
]));
}
...
...
include/svl/ilstitem.hxx
Dosyayı görüntüle @
e6721d2d
...
...
@@ -27,7 +27,7 @@
class
SVL_DLLPUBLIC
SfxIntegerListItem
:
public
SfxPoolItem
{
css
::
uno
::
Sequence
<
sal_Int32
>
m_aList
;
std
::
vector
<
sal_Int32
>
m_aList
;
public
:
static
SfxPoolItem
*
CreateDefault
();
...
...
@@ -37,12 +37,8 @@ public:
SfxIntegerListItem
(
const
SfxIntegerListItem
&
rItem
);
virtual
~
SfxIntegerListItem
();
css
::
uno
::
Sequence
<
sal_Int32
>
GetSequence
()
{
return
m_aList
;
}
css
::
uno
::
Sequence
<
sal_Int32
>
GetConstSequence
()
const
{
return
(
const_cast
<
SfxIntegerListItem
*
>
(
this
))
->
GetSequence
();
}
void
GetList
(
::
std
::
vector
<
sal_Int32
>&
rList
)
const
;
std
::
vector
<
sal_Int32
>&
GetList
()
{
return
m_aList
;
}
const
std
::
vector
<
sal_Int32
>&
GetList
()
const
{
return
m_aList
;
}
virtual
bool
operator
==
(
const
SfxPoolItem
&
)
const
override
;
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
nullptr
)
const
override
;
...
...
sc/source/ui/view/tabvwsh3.cxx
Dosyayı görüntüle @
e6721d2d
...
...
@@ -796,7 +796,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
::
std
::
vector
<
sal_Int32
>
aIndexList
;
const
SfxIntegerListItem
*
pItem
=
rReq
.
GetArg
<
SfxIntegerListItem
>
(
SID_SELECT_TABLES
);
if
(
pItem
)
pItem
->
GetList
(
aIndexList
);
aIndexList
=
pItem
->
GetList
(
);
else
{
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
...
...
svl/source/items/ilstitem.cxx
Dosyayı görüntüle @
e6721d2d
...
...
@@ -21,6 +21,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <svl/ilstitem.hxx>
...
...
@@ -33,24 +34,22 @@ SfxIntegerListItem::SfxIntegerListItem()
SfxIntegerListItem
::
SfxIntegerListItem
(
sal_uInt16
which
,
const
::
std
::
vector
<
sal_Int32
>&
rList
)
:
SfxPoolItem
(
which
)
,
m_aList
(
rList
)
{
m_aList
.
realloc
(
rList
.
size
()
);
for
(
size_t
n
=
0
;
n
<
rList
.
size
();
++
n
)
m_aList
[
n
]
=
rList
[
n
];
}
SfxIntegerListItem
::
SfxIntegerListItem
(
sal_uInt16
which
,
const
css
::
uno
::
Sequence
<
sal_Int32
>&
rList
)
:
SfxPoolItem
(
which
)
{
m_aList
.
re
alloc
(
rList
.
getLength
()
);
m_aList
.
re
size
(
rList
.
getLength
()
);
for
(
sal_Int32
n
=
0
;
n
<
rList
.
getLength
();
++
n
)
m_aList
[
n
]
=
rList
[
n
];
}
SfxIntegerListItem
::
SfxIntegerListItem
(
const
SfxIntegerListItem
&
rItem
)
:
SfxPoolItem
(
rItem
)
,
m_aList
(
rItem
.
m_aList
)
{
m_aList
=
rItem
.
m_aList
;
}
SfxIntegerListItem
::~
SfxIntegerListItem
()
...
...
@@ -82,20 +81,17 @@ bool SfxIntegerListItem::PutValue ( const css::uno::Any& rVal, sal_uInt8 )
return
true
;
}
return
(
aNew
>>=
m_aList
);
css
::
uno
::
Sequence
<
sal_Int32
>
aTempSeq
;
bool
bRet
=
aNew
>>=
aTempSeq
;
if
(
bRet
)
m_aList
=
comphelper
::
sequenceToContainer
<
std
::
vector
<
sal_Int32
>>
(
aTempSeq
);
return
bRet
;
}
bool
SfxIntegerListItem
::
QueryValue
(
css
::
uno
::
Any
&
rVal
,
sal_uInt8
)
const
{
rVal
<<=
m_aList
;
rVal
<<=
comphelper
::
containerToSequence
(
m_aList
)
;
return
true
;
}
void
SfxIntegerListItem
::
GetList
(
::
std
::
vector
<
sal_Int32
>&
rList
)
const
{
rList
.
reserve
(
m_aList
.
getLength
()
);
for
(
sal_Int32
n
=
0
;
n
<
m_aList
.
getLength
();
++
n
)
rList
.
push_back
(
m_aList
[
n
]
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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