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
4381f3dd
Kaydet (Commit)
4381f3dd
authored
Agu 21, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Stephan Bergmann
Agu 27, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Use BreakIterator ::create method
Change-Id: Iff603ebe772cfcd34ed3669ce46bc9112ba902ae
üst
170cfbc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
21 deletions
+15
-21
UnoApi_offapi.mk
offapi/UnoApi_offapi.mk
+3
-1
SmartTagMgr.hxx
svx/inc/svx/SmartTagMgr.hxx
+0
-2
SmartTagMgr.cxx
svx/source/smarttags/SmartTagMgr.cxx
+12
-18
No files found.
offapi/UnoApi_offapi.mk
Dosyayı görüntüle @
4381f3dd
...
@@ -141,6 +141,9 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/inspection
...
@@ -141,6 +141,9 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/inspection
ObjectInspectorModel \
ObjectInspectorModel \
StringRepresentation \
StringRepresentation \
))
))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/i18n,\
BreakIterator \
))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/linguistic2,\
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/linguistic2,\
LanguageGuessing \
LanguageGuessing \
Proofreader \
Proofreader \
...
@@ -822,7 +825,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/graphic
...
@@ -822,7 +825,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/graphic
MediaProperties \
MediaProperties \
))
))
$(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/i18n,\
$(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/i18n,\
BreakIterator \
ChapterCollator \
ChapterCollator \
CharacterClassification \
CharacterClassification \
Collator \
Collator \
...
...
svx/inc/svx/SmartTagMgr.hxx
Dosyayı görüntüle @
4381f3dd
...
@@ -52,7 +52,6 @@ namespace com { namespace sun { namespace star { namespace lang {
...
@@ -52,7 +52,6 @@ namespace com { namespace sun { namespace star { namespace lang {
struct
Locale
;
struct
Locale
;
struct
EventObject
;
struct
EventObject
;
struct
ChangesEvent
;
struct
ChangesEvent
;
class
XMultiServiceFactory
;
}
}
}
}
}
}
}
}
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
beans
{
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
beans
{
...
@@ -92,7 +91,6 @@ private:
...
@@ -92,7 +91,6 @@ private:
std
::
set
<
rtl
::
OUString
>
maDisabledSmartTagTypes
;
std
::
set
<
rtl
::
OUString
>
maDisabledSmartTagTypes
;
std
::
multimap
<
rtl
::
OUString
,
ActionReference
>
maSmartTagMap
;
std
::
multimap
<
rtl
::
OUString
,
ActionReference
>
maSmartTagMap
;
mutable
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
i18n
::
XBreakIterator
>
mxBreakIter
;
mutable
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
i18n
::
XBreakIterator
>
mxBreakIter
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
mxMSF
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxContext
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxContext
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>
mxConfigurationSettings
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>
mxConfigurationSettings
;
bool
mbLabelTextWithSmartTags
;
bool
mbLabelTextWithSmartTags
;
...
...
svx/source/smarttags/SmartTagMgr.cxx
Dosyayı görüntüle @
4381f3dd
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include <com/sun/star/deployment/ExtensionManager.hpp>
#include <com/sun/star/deployment/ExtensionManager.hpp>
#include <com/sun/star/text/XTextMarkup.hpp>
#include <com/sun/star/text/XTextMarkup.hpp>
#include <com/sun/star/smarttags/SmartTagRecognizerMode.hpp>
#include <com/sun/star/smarttags/SmartTagRecognizerMode.hpp>
#include <com/sun/star/i18n/
X
BreakIterator.hpp>
#include <com/sun/star/i18n/BreakIterator.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/EventObject.hpp>
#include <com/sun/star/lang/EventObject.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
com
::
sun
::
star
::
i18n
;
#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
...
@@ -55,7 +56,7 @@ SmartTagMgr::SmartTagMgr( const rtl::OUString& rApplicationName )
...
@@ -55,7 +56,7 @@ SmartTagMgr::SmartTagMgr( const rtl::OUString& rApplicationName )
maActionList
(),
maActionList
(),
maDisabledSmartTagTypes
(),
maDisabledSmartTagTypes
(),
maSmartTagMap
(),
maSmartTagMap
(),
mx
MSF
(
::
comphelper
::
getProcessServiceFactory
()
),
mx
Context
(
::
comphelper
::
getProcessComponentContext
()
),
mbLabelTextWithSmartTags
(
true
)
mbLabelTextWithSmartTags
(
true
)
{
{
}
}
...
@@ -67,27 +68,20 @@ SmartTagMgr::~SmartTagMgr()
...
@@ -67,27 +68,20 @@ SmartTagMgr::~SmartTagMgr()
void
SmartTagMgr
::
Init
(
const
rtl
::
OUString
&
rConfigurationGroupName
)
void
SmartTagMgr
::
Init
(
const
rtl
::
OUString
&
rConfigurationGroupName
)
{
{
// get component context to pass to components:
// get component context to pass to components:
if
(
mx
MSF
.
is
()
)
if
(
mx
Context
.
is
()
)
{
{
Reference
<
beans
::
XPropertySet
>
xPropSet
=
Reference
<
beans
::
XPropertySet
>
(
mxMSF
,
UNO_QUERY
);
PrepareConfiguration
(
rConfigurationGroupName
);
const
Any
aAny
=
xPropSet
->
getPropertyValue
(
C2U
(
"DefaultContext"
));
ReadConfiguration
(
true
,
true
);
aAny
>>=
mxContext
;
RegisterListener
();
LoadLibraries
();
if
(
mxContext
.
is
()
)
{
PrepareConfiguration
(
rConfigurationGroupName
);
ReadConfiguration
(
true
,
true
);
RegisterListener
();
LoadLibraries
();
}
}
}
}
}
void
SmartTagMgr
::
CreateBreakIterator
()
const
void
SmartTagMgr
::
CreateBreakIterator
()
const
{
{
if
(
!
mxBreakIter
.
is
()
&&
mx
MSF
.
is
()
&&
mx
Context
.
is
()
)
if
(
!
mxBreakIter
.
is
()
&&
mxContext
.
is
()
)
{
{
// get the break iterator
// get the break iterator
mxBreakIter
.
set
(
mxMSF
->
createInstance
(
C2U
(
"com.sun.star.i18n.BreakIterator"
)
),
UNO_QUERY
);
mxBreakIter
.
set
(
BreakIterator
::
create
(
mxContext
)
);
}
}
}
}
...
@@ -316,7 +310,7 @@ void SmartTagMgr::changesOccurred( const util::ChangesEvent& rEvent ) throw( Run
...
@@ -316,7 +310,7 @@ void SmartTagMgr::changesOccurred( const util::ChangesEvent& rEvent ) throw( Run
*/
*/
void
SmartTagMgr
::
LoadLibraries
()
void
SmartTagMgr
::
LoadLibraries
()
{
{
Reference
<
container
::
XContentEnumerationAccess
>
rContent
(
mx
MSF
,
UNO_QUERY
);
Reference
<
container
::
XContentEnumerationAccess
>
rContent
(
mx
Context
,
UNO_QUERY
);
if
(
!
rContent
.
is
()
)
if
(
!
rContent
.
is
()
)
return
;
return
;
...
@@ -388,7 +382,7 @@ void SmartTagMgr::PrepareConfiguration( const rtl::OUString& rConfigurationGroup
...
@@ -388,7 +382,7 @@ void SmartTagMgr::PrepareConfiguration( const rtl::OUString& rConfigurationGroup
aPathArgument
.
Value
=
aAny
;
aPathArgument
.
Value
=
aAny
;
Sequence
<
Any
>
aArguments
(
1
);
Sequence
<
Any
>
aArguments
(
1
);
aArguments
[
0
]
<<=
aPathArgument
;
aArguments
[
0
]
<<=
aPathArgument
;
Reference
<
lang
::
XMultiServiceFactory
>
xConfProv
(
mx
MSF
->
createInstance
(
C2U
(
"com.sun.star.configuration.ConfigurationProvider"
)
),
UNO_QUERY
);
Reference
<
lang
::
XMultiServiceFactory
>
xConfProv
(
mx
Context
->
getServiceManager
()
->
createInstanceWithContext
(
"com.sun.star.configuration.ConfigurationProvider"
,
mxContext
),
UNO_QUERY
);
if
(
!
xConfProv
.
is
()
)
if
(
!
xConfProv
.
is
()
)
return
;
return
;
...
...
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