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
524cedbd
Kaydet (Commit)
524cedbd
authored
Mar 07, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Convert linguistic2::ProofreadingIterator to new style
Change-Id: I1551f67ce503d58ea9b0e701219b26baadb25b78
üst
70e7bd63
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
25 deletions
+15
-25
misc.hxx
linguistic/inc/linguistic/misc.hxx
+0
-1
gciterator.cxx
linguistic/source/gciterator.cxx
+1
-1
lngsvcmgr.cxx
linguistic/source/lngsvcmgr.cxx
+3
-5
ProofreadingIterator.idl
offapi/com/sun/star/linguistic2/ProofreadingIterator.idl
+1
-1
docnew.cxx
sw/source/core/doc/docnew.cxx
+8
-13
dlelstnr.cxx
sw/source/ui/uno/dlelstnr.cxx
+2
-4
No files found.
linguistic/inc/linguistic/misc.hxx
Dosyayı görüntüle @
524cedbd
...
...
@@ -53,7 +53,6 @@ class LocaleDataWrapper;
#define SN_GRAMMARCHECKER "com.sun.star.linguistic2.Proofreader"
#define SN_GRAMMARCHECKINGITERATOR "com.sun.star.linguistic2.ProofreadingIterator"
#define SN_SPELLCHECKER "com.sun.star.linguistic2.SpellChecker"
#define SN_HYPHENATOR "com.sun.star.linguistic2.Hyphenator"
#define SN_THESAURUS "com.sun.star.linguistic2.Thesaurus"
...
...
linguistic/source/gciterator.cxx
Dosyayı görüntüle @
524cedbd
...
...
@@ -1126,7 +1126,7 @@ static OUString GrammarCheckingIterator_getImplementationName() throw()
static
uno
::
Sequence
<
OUString
>
GrammarCheckingIterator_getSupportedServiceNames
()
throw
()
{
uno
::
Sequence
<
OUString
>
aSNS
(
1
);
aSNS
.
getArray
()[
0
]
=
SN_GRAMMARCHECKINGITERATOR
;
aSNS
[
0
]
=
"com.sun.star.linguistic2.ProofreadingIterator"
;
return
aSNS
;
}
...
...
linguistic/source/lngsvcmgr.cxx
Dosyayı görüntüle @
524cedbd
...
...
@@ -26,6 +26,7 @@
#include <com/sun/star/linguistic2/XSupportedLocales.hpp>
#include <com/sun/star/linguistic2/DictionaryListEventFlags.hpp>
#include <com/sun/star/linguistic2/LinguServiceEventFlags.hpp>
#include <com/sun/star/linguistic2/ProofreadingIterator.hpp>
#include <tools/solar.h>
#include <unotools/lingucfg.hxx>
...
...
@@ -1010,12 +1011,9 @@ void LngSvcMgr::GetGrammarCheckerDsp_Impl( sal_Bool bSetSvcList )
uno
::
Reference
<
linguistic2
::
XProofreadingIterator
>
xGCI
;
try
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xMgr
(
comphelper
::
getProcessServiceFactory
(),
uno
::
UNO_QUERY_THROW
);
xGCI
=
uno
::
Reference
<
linguistic2
::
XProofreadingIterator
>
(
xMgr
->
createInstance
(
SN_GRAMMARCHECKINGITERATOR
),
uno
::
UNO_QUERY_THROW
);
xGCI
=
linguistic2
::
ProofreadingIterator
::
create
(
comphelper
::
getProcessComponentContext
()
);
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
}
DBG_ASSERT
(
xGCI
.
is
(),
"instantiating grammar checking iterator failed"
);
...
...
offapi/com/sun/star/linguistic2/ProofreadingIterator.idl
Dosyayı görüntüle @
524cedbd
...
...
@@ -37,7 +37,7 @@ module com { module sun { module star { module linguistic2 {
@
since
OOo
3.0.1
*/
service
ProofreadingIterator
:
XProofreadingIterator
{}
;
service
ProofreadingIterator
:
XProofreadingIterator
;
}
; }; }; };
...
...
sw/source/core/doc/docnew.cxx
Dosyayı görüntüle @
524cedbd
...
...
@@ -23,7 +23,7 @@
#include <com/sun/star/document/PrinterIndependentLayout.hpp>
#include <com/sun/star/document/UpdateDocMode.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/linguistic2/
X
ProofreadingIterator.hpp>
#include <com/sun/star/linguistic2/ProofreadingIterator.hpp>
#include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp>
#include <comphelper/processfactory.hxx>
...
...
@@ -119,19 +119,14 @@ const sal_Char sGrfCollStr[] = "Graphikformatvorlage";
{
if
(
!
m_xGCIterator
.
is
()
&&
SvtLinguConfig
().
HasGrammarChecker
())
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xMgr
(
comphelper
::
getProcessServiceFactory
()
);
if
(
xMgr
.
is
())
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
(
comphelper
::
getProcessComponentContext
()
);
try
{
try
{
OUString
aServiceName
(
"com.sun.star.linguistic2.ProofreadingIterator"
);
m_xGCIterator
=
uno
::
Reference
<
linguistic2
::
XProofreadingIterator
>
(
xMgr
->
createInstance
(
aServiceName
),
uno
::
UNO_QUERY_THROW
);
}
catch
(
uno
::
Exception
&
)
{
OSL_FAIL
(
"No GCIterator"
);
}
m_xGCIterator
=
linguistic2
::
ProofreadingIterator
::
create
(
xContext
);
}
catch
(
const
uno
::
Exception
&
)
{
OSL_FAIL
(
"No GCIterator"
);
}
}
...
...
sw/source/ui/uno/dlelstnr.cxx
Dosyayı görüntüle @
524cedbd
...
...
@@ -23,7 +23,7 @@
#include <com/sun/star/linguistic2/XDictionaryList.hpp>
#include <com/sun/star/linguistic2/LinguServiceManager.hpp>
#include <com/sun/star/linguistic2/XLinguServiceEventBroadcaster.hpp>
#include <com/sun/star/linguistic2/
X
ProofreadingIterator.hpp>
#include <com/sun/star/linguistic2/ProofreadingIterator.hpp>
#include <com/sun/star/linguistic2/LinguServiceEventFlags.hpp>
#include <unotools/lingucfg.hxx>
...
...
@@ -48,7 +48,6 @@ using namespace ::com::sun::star::linguistic2::LinguServiceEventFlags;
SwLinguServiceEventListener
::
SwLinguServiceEventListener
()
{
Reference
<
XMultiServiceFactory
>
xMgr
(
comphelper
::
getProcessServiceFactory
()
);
Reference
<
XComponentContext
>
xContext
(
comphelper
::
getProcessComponentContext
()
);
try
{
...
...
@@ -60,8 +59,7 @@ SwLinguServiceEventListener::SwLinguServiceEventListener()
if
(
SvtLinguConfig
().
HasGrammarChecker
())
{
OUString
aSvcName
(
"com.sun.star.linguistic2.ProofreadingIterator"
);
xGCIterator
=
Reference
<
XProofreadingIterator
>
(
xMgr
->
createInstance
(
aSvcName
),
UNO_QUERY
);
xGCIterator
=
ProofreadingIterator
::
create
(
xContext
);
Reference
<
XLinguServiceEventBroadcaster
>
xBC
(
xGCIterator
,
UNO_QUERY
);
if
(
xBC
.
is
())
xBC
->
addLinguServiceEventListener
(
(
XLinguServiceEventListener
*
)
this
);
...
...
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