macspellimp.cxx (c4436845) | macspellimp.cxx (a285f30a) |
---|---|
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 --- 100 unchanged lines hidden (view full) --- 109 110 int numusr; // number of user dictionary entries 111 int numshr; // number of shared dictionary entries 112 // dictentry * spdict; // shared dict entry pointer 113 // dictentry * updict; // user dict entry pointer 114 SvtPathOptions aPathOpt; 115 rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8; 116 | 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 --- 100 unchanged lines hidden (view full) --- 109 110 int numusr; // number of user dictionary entries 111 int numshr; // number of shared dictionary entries 112 // dictentry * spdict; // shared dict entry pointer 113 // dictentry * updict; // user dict entry pointer 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; 120 //std::vector<dictentry *> postupdict; | 117 std::vector<NSString*> postspdict; 118 std::vector<NSString*> postupdict; |
121 | 119 |
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 129 NSArray *aLocales = [NSLocale availableLocaleIdentifiers]; 130 131 //Test for existence of the dictionaries 132 for (unsigned int i = 0; i < [aLocales count]; i++) 133 { | 120 if (!numdict) { 121 122 // invoke a dictionary manager to get the user dictionary list 123 // TODO How on Mac OS X? 124 125 // invoke a second dictionary manager to get the shared dictionary list 126 NSArray *aLocales = [NSLocale availableLocaleIdentifiers]; 127 128 //Test for existence of the dictionaries 129 for (unsigned int i = 0; i < [aLocales count]; i++) 130 { |
134 if( [macSpell setLanguage:[aLocales objectAtIndex:i] ] ) | 131 NSString* pLangStr = (NSString*)[aLocales objectAtIndex:i]; 132 if( [macSpell setLanguage:pLangStr ] ) |
135 { | 133 { |
136 postspdict.push_back( [ aLocales objectAtIndex:i ] ); | 134 postspdict.push_back( pLangStr ); |
137 } 138 } 139 140 numusr = postupdict.size(); 141 numshr = postspdict.size(); 142 143 // we really should merge these and remove duplicates but since 144 // users can name their dictionaries anything they want it would --- 476 unchanged lines hidden --- | 135 } 136 } 137 138 numusr = postupdict.size(); 139 numshr = postspdict.size(); 140 141 // we really should merge these and remove duplicates but since 142 // users can name their dictionaries anything they want it would --- 476 unchanged lines hidden --- |