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
705b4351
Kaydet (Commit)
705b4351
authored
Ock 01, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
so ResourceStringListIndexAccess isn't needed
Change-Id: Ic25fc6f2f8f3e471a90e10c3f2319f40888520e6
üst
e777637f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
ResourceIndexAccess.cxx
extensions/source/resource/ResourceIndexAccess.cxx
+0
-38
No files found.
extensions/source/resource/ResourceIndexAccess.cxx
Dosyayı görüntüle @
705b4351
...
...
@@ -69,18 +69,6 @@ namespace
virtual
css
::
uno
::
Type
SAL_CALL
getElementType
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
override
{
return
::
cppu
::
UnoType
<
OUString
>::
get
();
};
};
class
ResourceStringListIndexAccess
:
public
ResourceIndexAccessBase
{
public
:
explicit
ResourceStringListIndexAccess
(
const
std
::
shared_ptr
<
ResMgr
>&
pResMgr
)
:
ResourceIndexAccessBase
(
pResMgr
)
{}
// XIndexAccess
virtual
css
::
uno
::
Any
SAL_CALL
getByIndex
(
::
sal_Int32
Index
)
throw
(
css
::
lang
::
IndexOutOfBoundsException
,
css
::
lang
::
WrappedTargetException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
override
;
// XElementAccessBase
virtual
css
::
uno
::
Type
SAL_CALL
getElementType
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
override
{
return
cppu
::
UnoType
<
Sequence
<
PropertyValue
>>::
get
();
};
};
}
ResourceIndexAccess
::
ResourceIndexAccess
(
Sequence
<
Any
>
const
&
rArgs
,
Reference
<
XComponentContext
>
const
&
)
...
...
@@ -140,30 +128,4 @@ Any SAL_CALL ResourceStringIndexAccess::getByIndex(sal_Int32 nIdx)
return
makeAny
(
aId
.
toString
());
}
Any
SAL_CALL
ResourceStringListIndexAccess
::
getByIndex
(
sal_Int32
nIdx
)
throw
(
IndexOutOfBoundsException
,
WrappedTargetException
,
RuntimeException
,
std
::
exception
)
{
if
(
nIdx
>
SAL_MAX_UINT16
||
nIdx
<
0
)
throw
IndexOutOfBoundsException
();
SolarMutexGuard
aGuard
;
if
(
!
m_pResMgr
.
get
())
throw
RuntimeException
(
"resource manager not available"
);
const
ResId
aId
(
static_cast
<
sal_uInt16
>
(
nIdx
),
*
m_pResMgr
);
aId
.
SetRT
(
RSC_STRINGARRAY
);
if
(
!
m_pResMgr
->
IsAvailable
(
aId
))
throw
RuntimeException
(
"string list resource for id not available"
);
const
ResStringArray
aStringList
(
aId
);
Sequence
<
PropertyValue
>
aPropList
(
aStringList
.
Count
());
for
(
sal_Int32
nCount
=
0
;
nCount
!=
aPropList
.
getLength
();
++
nCount
)
{
aPropList
[
nCount
].
Name
=
aStringList
.
GetString
(
nCount
);
aPropList
[
nCount
].
Handle
=
-
1
;
aPropList
[
nCount
].
Value
<<=
aStringList
.
GetValue
(
nCount
);
aPropList
[
nCount
].
State
=
PropertyState_DIRECT_VALUE
;
}
return
makeAny
(
aPropList
);
}
/* 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