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
84841b11
Kaydet (Commit)
84841b11
authored
Eyl 27, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: AtomServer unused
üst
19bf1de0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
101 deletions
+0
-101
atom.hxx
unotools/inc/unotools/atom.hxx
+0
-19
atom.cxx
unotools/source/misc/atom.cxx
+0
-82
No files found.
unotools/inc/unotools/atom.hxx
Dosyayı görüntüle @
84841b11
...
...
@@ -93,25 +93,6 @@ namespace utl {
{
overrideAtom
(
atomClass
,
newDescription
.
atom
,
newDescription
.
description
);
}
sal_Bool
hasAtom
(
int
atomClass
,
int
atom
)
const
;
};
class
AtomServer
:
public
::
cppu
::
WeakAggImplHelper1
<
::
com
::
sun
::
star
::
util
::
XAtomServer
>
{
private
:
MultiAtomProvider
m_aProvider
;
::
osl
::
Mutex
m_aMutex
;
public
:
AtomServer
();
virtual
~
AtomServer
();
const
::
rtl
::
OUString
&
getString
(
int
atomClass
,
int
atom
)
const
{
return
m_aProvider
.
getString
(
atomClass
,
atom
);
}
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
util
::
AtomDescription
>
SAL_CALL
getClass
(
sal_Int32
atomClass
)
throw
();
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
util
::
AtomDescription
>
>
SAL_CALL
getClasses
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>&
atomClasses
)
throw
();
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
rtl
::
OUString
>
SAL_CALL
getAtomDescriptions
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
util
::
AtomClassRequest
>&
atoms
)
throw
();
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
util
::
AtomDescription
>
SAL_CALL
getRecentAtoms
(
sal_Int32
atomClass
,
sal_Int32
atom
)
throw
();
virtual
sal_Int32
SAL_CALL
getAtom
(
sal_Int32
atomClass
,
const
::
rtl
::
OUString
&
description
,
sal_Bool
create
)
throw
();
};
}
#endif
...
...
unotools/source/misc/atom.cxx
Dosyayı görüntüle @
84841b11
...
...
@@ -205,86 +205,4 @@ void MultiAtomProvider::overrideAtom( int atomClass, int atom, const ::rtl::OUSt
m_aAtomLists
[
atomClass
]
->
overrideAtom
(
atom
,
description
);
}
// -----------------------------------------------------------------------
AtomServer
::
AtomServer
()
{
}
AtomServer
::~
AtomServer
()
{
}
sal_Int32
AtomServer
::
getAtom
(
sal_Int32
atomClass
,
const
::
rtl
::
OUString
&
description
,
sal_Bool
create
)
throw
()
{
::
osl
::
Guard
<
::
osl
::
Mutex
>
guard
(
m_aMutex
);
return
m_aProvider
.
getAtom
(
atomClass
,
description
,
create
);
}
Sequence
<
Sequence
<
NMSP_UTIL
::
AtomDescription
>
>
AtomServer
::
getClasses
(
const
Sequence
<
sal_Int32
>&
atomClasses
)
throw
()
{
::
osl
::
Guard
<
::
osl
::
Mutex
>
guard
(
m_aMutex
);
Sequence
<
Sequence
<
NMSP_UTIL
::
AtomDescription
>
>
aRet
(
atomClasses
.
getLength
()
);
for
(
int
i
=
0
;
i
<
atomClasses
.
getLength
();
i
++
)
{
aRet
.
getArray
()[
i
]
=
getClass
(
atomClasses
.
getConstArray
()[
i
]
);
}
return
aRet
;
}
Sequence
<
NMSP_UTIL
::
AtomDescription
>
AtomServer
::
getClass
(
sal_Int32
atomClass
)
throw
()
{
::
osl
::
Guard
<
::
osl
::
Mutex
>
guard
(
m_aMutex
);
::
std
::
list
<
::
utl
::
AtomDescription
>
atoms
;
m_aProvider
.
getClass
(
atomClass
,
atoms
);
Sequence
<
NMSP_UTIL
::
AtomDescription
>
aRet
(
atoms
.
size
()
);
for
(
int
i
=
aRet
.
getLength
()
-
1
;
i
>=
0
;
i
--
)
{
aRet
.
getArray
()[
i
].
atom
=
atoms
.
back
().
atom
;
aRet
.
getArray
()[
i
].
description
=
atoms
.
back
().
description
;
atoms
.
pop_back
();
}
return
aRet
;
}
Sequence
<
NMSP_UTIL
::
AtomDescription
>
AtomServer
::
getRecentAtoms
(
sal_Int32
atomClass
,
sal_Int32
atom
)
throw
()
{
::
osl
::
Guard
<
::
osl
::
Mutex
>
guard
(
m_aMutex
);
::
std
::
list
<
::
utl
::
AtomDescription
>
atoms
;
m_aProvider
.
getRecent
(
atomClass
,
atom
,
atoms
);
Sequence
<
NMSP_UTIL
::
AtomDescription
>
aRet
(
atoms
.
size
()
);
for
(
int
i
=
aRet
.
getLength
()
-
1
;
i
>=
0
;
i
--
)
{
aRet
.
getArray
()[
i
].
atom
=
atoms
.
back
().
atom
;
aRet
.
getArray
()[
i
].
description
=
atoms
.
back
().
description
;
atoms
.
pop_back
();
}
return
aRet
;
}
Sequence
<
::
rtl
::
OUString
>
AtomServer
::
getAtomDescriptions
(
const
Sequence
<
AtomClassRequest
>&
atoms
)
throw
()
{
::
osl
::
Guard
<
::
osl
::
Mutex
>
guard
(
m_aMutex
);
int
nStrings
=
0
,
i
;
for
(
i
=
0
;
i
<
atoms
.
getLength
();
i
++
)
nStrings
+=
atoms
.
getConstArray
()[
i
].
atoms
.
getLength
();
Sequence
<
::
rtl
::
OUString
>
aRet
(
nStrings
);
for
(
i
=
0
,
nStrings
=
0
;
i
<
atoms
.
getLength
();
i
++
)
{
const
AtomClassRequest
&
rRequest
=
atoms
.
getConstArray
()[
i
];
for
(
int
n
=
0
;
n
<
rRequest
.
atoms
.
getLength
();
n
++
)
aRet
.
getArray
()[
nStrings
++
]
=
m_aProvider
.
getString
(
rRequest
.
atomClass
,
rRequest
.
atoms
.
getConstArray
()[
n
]
);
}
return
aRet
;
}
/* 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