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
dee4645e
Kaydet (Commit)
dee4645e
authored
Eki 06, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:mergeclasses
Change-Id: I9b926e59b2df62c22fb5ecfc7c16d8047b6da2a4
üst
dff288c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
42 deletions
+14
-42
mergeclasses.results
compilerplugins/clang/mergeclasses.results
+0
-1
iprcache.hxx
linguistic/inc/iprcache.hxx
+9
-23
iprcache.cxx
linguistic/source/iprcache.cxx
+5
-18
No files found.
compilerplugins/clang/mergeclasses.results
Dosyayı görüntüle @
dee4645e
...
@@ -179,7 +179,6 @@ merge helpdatafileproxy::hdf_internal::Noncopyable with helpdatafileproxy::Hdf
...
@@ -179,7 +179,6 @@ merge helpdatafileproxy::hdf_internal::Noncopyable with helpdatafileproxy::Hdf
merge i_xml_parser_event_handler with (anonymous namespace)::recently_used_file_filter
merge i_xml_parser_event_handler with (anonymous namespace)::recently_used_file_filter
merge io_stm::IRingBuffer with io_stm::MemRingBuffer
merge io_stm::IRingBuffer with io_stm::MemRingBuffer
merge io_stm::I_FIFO with io_stm::MemFIFO
merge io_stm::I_FIFO with io_stm::MemFIFO
merge linguistic::Flushable with linguistic::SpellCache
merge oglcanvas::CanvasHelper with oglcanvas::BitmapCanvasHelper
merge oglcanvas::CanvasHelper with oglcanvas::BitmapCanvasHelper
merge oglcanvas::IBufferContext with oglcanvas::(anonymous namespace)::BufferContextImpl
merge oglcanvas::IBufferContext with oglcanvas::(anonymous namespace)::BufferContextImpl
merge ooo::vba::XHelperInterface with ooo::vba::msforms::XShape
merge ooo::vba::XHelperInterface with ooo::vba::msforms::XShape
...
...
linguistic/inc/iprcache.hxx
Dosyayı görüntüle @
dee4645e
...
@@ -39,16 +39,7 @@
...
@@ -39,16 +39,7 @@
namespace
linguistic
namespace
linguistic
{
{
class
SpellCache
;
class
Flushable
{
public
:
virtual
void
Flush
()
=
0
;
protected
:
~
Flushable
()
{}
};
class
FlushListener
:
class
FlushListener
:
public
cppu
::
WeakImplHelper
public
cppu
::
WeakImplHelper
...
@@ -57,20 +48,16 @@ class FlushListener :
...
@@ -57,20 +48,16 @@ class FlushListener :
::
com
::
sun
::
star
::
beans
::
XPropertyChangeListener
::
com
::
sun
::
star
::
beans
::
XPropertyChangeListener
>
>
{
{
::
com
::
sun
::
star
::
uno
::
Reference
<
css
::
uno
::
Reference
<
css
::
linguistic2
::
XSearchableDictionaryList
>
xDicList
;
::
com
::
sun
::
star
::
linguistic2
::
XSearchableDictionaryList
>
xDicList
;
css
::
uno
::
Reference
<
css
::
linguistic2
::
XLinguProperties
>
xPropSet
;
::
com
::
sun
::
star
::
uno
::
Reference
<
SpellCache
&
mrSpellCache
;
::
com
::
sun
::
star
::
linguistic2
::
XLinguProperties
>
xPropSet
;
Flushable
*
pFlushObj
;
FlushListener
(
const
FlushListener
&
)
SAL_DELETED_FUNCTION
;
FlushListener
(
const
FlushListener
&
)
SAL_DELETED_FUNCTION
;
FlushListener
&
operator
=
(
const
FlushListener
&
)
SAL_DELETED_FUNCTION
;
FlushListener
&
operator
=
(
const
FlushListener
&
)
SAL_DELETED_FUNCTION
;
public
:
public
:
FlushListener
(
Flushable
*
pFO
);
FlushListener
(
SpellCache
&
rFO
)
:
mrSpellCache
(
rFO
)
{}
virtual
~
FlushListener
();
virtual
~
FlushListener
()
{}
inline
void
SetFlushObj
(
Flushable
*
pFO
)
{
pFlushObj
=
pFO
;
}
void
SetDicList
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSearchableDictionaryList
>
&
rDL
);
void
SetDicList
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSearchableDictionaryList
>
&
rDL
);
void
SetPropSet
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XLinguProperties
>
&
rPS
);
void
SetPropSet
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XLinguProperties
>
&
rPS
);
...
@@ -86,8 +73,7 @@ public:
...
@@ -86,8 +73,7 @@ public:
};
};
class
SpellCache
:
class
SpellCache
public
Flushable
{
{
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XDictionaryListEventListener
>
::
com
::
sun
::
star
::
linguistic2
::
XDictionaryListEventListener
>
...
@@ -105,8 +91,8 @@ public:
...
@@ -105,8 +91,8 @@ public:
SpellCache
();
SpellCache
();
virtual
~
SpellCache
();
virtual
~
SpellCache
();
//
Flushable
//
called from FlushListener
v
irtual
void
Flush
()
SAL_OVERRIDE
;
v
oid
Flush
()
;
void
AddWord
(
const
OUString
&
rWord
,
LanguageType
nLang
);
void
AddWord
(
const
OUString
&
rWord
,
LanguageType
nLang
);
bool
CheckWord
(
const
OUString
&
rWord
,
LanguageType
nLang
);
bool
CheckWord
(
const
OUString
&
rWord
,
LanguageType
nLang
);
...
...
linguistic/source/iprcache.cxx
Dosyayı görüntüle @
dee4645e
...
@@ -99,17 +99,6 @@ static bool lcl_IsFlushProperty( sal_Int32 nHandle )
...
@@ -99,17 +99,6 @@ static bool lcl_IsFlushProperty( sal_Int32 nHandle )
}
}
FlushListener
::
FlushListener
(
Flushable
*
pFO
)
{
SetFlushObj
(
pFO
);
}
FlushListener
::~
FlushListener
()
{
}
void
FlushListener
::
SetDicList
(
Reference
<
XSearchableDictionaryList
>
&
rDL
)
void
FlushListener
::
SetDicList
(
Reference
<
XSearchableDictionaryList
>
&
rDL
)
{
{
MutexGuard
aGuard
(
GetLinguMutex
()
);
MutexGuard
aGuard
(
GetLinguMutex
()
);
...
@@ -176,9 +165,8 @@ void SAL_CALL FlushListener::processDictionaryListEvent(
...
@@ -176,9 +165,8 @@ void SAL_CALL FlushListener::processDictionaryListEvent(
DictionaryListEventFlags
::
DEACTIVATE_POS_DIC
;
DictionaryListEventFlags
::
DEACTIVATE_POS_DIC
;
bool
bFlush
=
0
!=
(
nEvt
&
nFlushFlags
);
bool
bFlush
=
0
!=
(
nEvt
&
nFlushFlags
);
DBG_ASSERT
(
pFlushObj
,
"missing object (NULL pointer)"
);
if
(
bFlush
)
if
(
bFlush
&&
pFlushObj
!=
NULL
)
mrSpellCache
.
Flush
();
pFlushObj
->
Flush
();
}
}
}
}
...
@@ -193,9 +181,8 @@ void SAL_CALL FlushListener::propertyChange(
...
@@ -193,9 +181,8 @@ void SAL_CALL FlushListener::propertyChange(
{
{
bool
bFlush
=
lcl_IsFlushProperty
(
rEvt
.
PropertyHandle
);
bool
bFlush
=
lcl_IsFlushProperty
(
rEvt
.
PropertyHandle
);
DBG_ASSERT
(
pFlushObj
,
"missing object (NULL pointer)"
);
if
(
bFlush
)
if
(
bFlush
&&
pFlushObj
!=
NULL
)
mrSpellCache
.
Flush
();
pFlushObj
->
Flush
();
}
}
}
}
...
@@ -203,7 +190,7 @@ void SAL_CALL FlushListener::propertyChange(
...
@@ -203,7 +190,7 @@ void SAL_CALL FlushListener::propertyChange(
SpellCache
::
SpellCache
()
SpellCache
::
SpellCache
()
{
{
pFlushLstnr
=
new
FlushListener
(
this
);
pFlushLstnr
=
new
FlushListener
(
*
this
);
xFlushLstnr
=
pFlushLstnr
;
xFlushLstnr
=
pFlushLstnr
;
Reference
<
XSearchableDictionaryList
>
aDictionaryList
(
GetDictionaryList
());
Reference
<
XSearchableDictionaryList
>
aDictionaryList
(
GetDictionaryList
());
pFlushLstnr
->
SetDicList
(
aDictionaryList
);
//! after reference is established
pFlushLstnr
->
SetDicList
(
aDictionaryList
);
//! after reference is established
...
...
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