macspellimp.cxx (a44fea77) macspellimp.cxx (c4436845)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 38 unchanged lines hidden (view full) ---

47using namespace rtl;
48using namespace com::sun::star;
49using namespace com::sun::star::beans;
50using namespace com::sun::star::lang;
51using namespace com::sun::star::uno;
52using namespace com::sun::star::linguistic2;
53using namespace linguistic;
54
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 38 unchanged lines hidden (view full) ---

47using namespace rtl;
48using namespace com::sun::star;
49using namespace com::sun::star::beans;
50using namespace com::sun::star::lang;
51using namespace com::sun::star::uno;
52using namespace com::sun::star::linguistic2;
53using namespace linguistic;
54
55
56MacSpellChecker::MacSpellChecker() :
57 aEvtListeners ( GetLinguMutex() )
58{
59 aDEncs = NULL;
60 aDLocs = NULL;
61 aDNames = NULL;
62 bDisposing = sal_False;
63 pPropHelper = NULL;

--- 41 unchanged lines hidden (view full) ---

105
106 // this routine should return the locales supported by the installed
107 // dictionaries. So here we need to parse both the user edited
108 // dictionary list and the shared dictionary list
109 // to see what dictionaries the admin/user has installed
110
111 int numusr; // number of user dictionary entries
112 int numshr; // number of shared dictionary entries
55MacSpellChecker::MacSpellChecker() :
56 aEvtListeners ( GetLinguMutex() )
57{
58 aDEncs = NULL;
59 aDLocs = NULL;
60 aDNames = NULL;
61 bDisposing = sal_False;
62 pPropHelper = NULL;

--- 41 unchanged lines hidden (view full) ---

104
105 // this routine should return the locales supported by the installed
106 // dictionaries. So here we need to parse both the user edited
107 // dictionary list and the shared dictionary list
108 // to see what dictionaries the admin/user has installed
109
110 int numusr; // number of user dictionary entries
111 int numshr; // number of shared dictionary entries
113 dictentry * spdict; // shared dict entry pointer
114 dictentry * updict; // user dict entry pointer
112 // dictentry * spdict; // shared dict entry pointer
113 // dictentry * updict; // user dict entry pointer
115 SvtPathOptions aPathOpt;
116 rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8;
117
118 std::vector<objc_object *> postspdict;
114 SvtPathOptions aPathOpt;
115 rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8;
116
117 std::vector<objc_object *> postspdict;
118 std::vector<objc_object *> postupdict;
119 //std::vector<dictentry *> postspdict;
119 //std::vector<dictentry *> postspdict;
120 std::vector<dictentry *> postupdict;
120 //std::vector<dictentry *> postupdict;
121
122
123 if (!numdict) {
124
125 // invoke a dictionary manager to get the user dictionary list
126 // TODO How on Mac OS X?
127
128 // invoke a second dictionary manager to get the shared dictionary list

--- 65 unchanged lines hidden (view full) ---

194 //aDicts = NULL;
195 aDEncs = NULL;
196 aDLocs = NULL;
197 aDNames = NULL;
198 aSuppLocales.realloc(0);
199 }
200
201 /* de-allocation of memory is handled inside the DictMgr */
121
122
123 if (!numdict) {
124
125 // invoke a dictionary manager to get the user dictionary list
126 // TODO How on Mac OS X?
127
128 // invoke a second dictionary manager to get the shared dictionary list

--- 65 unchanged lines hidden (view full) ---

194 //aDicts = NULL;
195 aDEncs = NULL;
196 aDLocs = NULL;
197 aDNames = NULL;
198 aSuppLocales.realloc(0);
199 }
200
201 /* de-allocation of memory is handled inside the DictMgr */
202 updict = NULL;
203 spdict = NULL;
202 // updict = NULL;
203 // spdict = NULL;
204
205 }
206
207 return aSuppLocales;
208}
209
210
211

--- 409 unchanged lines hidden ---
204
205 }
206
207 return aSuppLocales;
208}
209
210
211

--- 409 unchanged lines hidden ---