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
96fe761b
Kaydet (Commit)
96fe761b
authored
Nis 03, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Redundant null checks
Change-Id: I8b38d37de6cba2a29c9d785adf17d65835c8a05d
üst
bc067d16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
SmartTagMgr.cxx
svx/source/smarttags/SmartTagMgr.cxx
+6
-12
No files found.
svx/source/smarttags/SmartTagMgr.cxx
Dosyayı görüntüle @
96fe761b
...
@@ -69,18 +69,14 @@ SmartTagMgr::~SmartTagMgr()
...
@@ -69,18 +69,14 @@ SmartTagMgr::~SmartTagMgr()
void
SmartTagMgr
::
Init
(
const
OUString
&
rConfigurationGroupName
)
void
SmartTagMgr
::
Init
(
const
OUString
&
rConfigurationGroupName
)
{
{
// get component context to pass to components:
PrepareConfiguration
(
rConfigurationGroupName
);
if
(
mxContext
.
is
()
)
ReadConfiguration
(
true
,
true
);
{
RegisterListener
();
PrepareConfiguration
(
rConfigurationGroupName
);
LoadLibraries
();
ReadConfiguration
(
true
,
true
);
RegisterListener
();
LoadLibraries
();
}
}
}
void
SmartTagMgr
::
CreateBreakIterator
()
const
void
SmartTagMgr
::
CreateBreakIterator
()
const
{
{
if
(
!
mxBreakIter
.
is
()
&&
mxContext
.
is
()
)
if
(
!
mxBreakIter
.
is
()
)
{
{
// get the break iterator
// get the break iterator
mxBreakIter
.
set
(
BreakIterator
::
create
(
mxContext
)
);
mxBreakIter
.
set
(
BreakIterator
::
create
(
mxContext
)
);
...
@@ -345,9 +341,7 @@ void SmartTagMgr::changesOccurred( const util::ChangesEvent& rEvent ) throw( Run
...
@@ -345,9 +341,7 @@ void SmartTagMgr::changesOccurred( const util::ChangesEvent& rEvent ) throw( Run
*/
*/
void
SmartTagMgr
::
LoadLibraries
()
void
SmartTagMgr
::
LoadLibraries
()
{
{
Reference
<
container
::
XContentEnumerationAccess
>
rContent
(
mxContext
->
getServiceManager
(),
UNO_QUERY
);
Reference
<
container
::
XContentEnumerationAccess
>
rContent
(
mxContext
->
getServiceManager
(),
UNO_QUERY_THROW
);
if
(
!
rContent
.
is
()
)
return
;
// load recognizers: No recognizers -> nothing to do.
// load recognizers: No recognizers -> nothing to do.
Reference
<
container
::
XEnumeration
>
rEnum
=
rContent
->
createContentEnumeration
(
"com.sun.star.smarttags.SmartTagRecognizer"
);
Reference
<
container
::
XEnumeration
>
rEnum
=
rContent
->
createContentEnumeration
(
"com.sun.star.smarttags.SmartTagRecognizer"
);
...
...
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