lingutil.cxx (b0844812) | lingutil.cxx (a44fea77) |
---|---|
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 --- 40 unchanged lines hidden (view full) --- 49#include <rtl/tencinfo.h> 50#include <linguistic/misc.hxx> 51 52#include <set> 53#include <vector> 54#include <string.h> 55 56#include <lingutil.hxx> | 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 --- 40 unchanged lines hidden (view full) --- 49#include <rtl/tencinfo.h> 50#include <linguistic/misc.hxx> 51 52#include <set> 53#include <vector> 54#include <string.h> 55 56#include <lingutil.hxx> |
57#include <dictmgr.hxx> | |
58 59 60 61 62using ::com::sun::star::lang::Locale; 63using namespace ::com::sun::star; 64 65#if 0 --- 49 unchanged lines hidden (view full) --- 115 116 rtl::OUString aFormatName; 117 String aDicExtension; 118#ifdef SYSTEM_DICTS 119 rtl::OUString aSystemDir; 120 rtl::OUString aSystemPrefix; 121 rtl::OUString aSystemSuffix; 122#endif | 57 58 59 60 61using ::com::sun::star::lang::Locale; 62using namespace ::com::sun::star; 63 64#if 0 --- 49 unchanged lines hidden (view full) --- 114 115 rtl::OUString aFormatName; 116 String aDicExtension; 117#ifdef SYSTEM_DICTS 118 rtl::OUString aSystemDir; 119 rtl::OUString aSystemPrefix; 120 rtl::OUString aSystemSuffix; 121#endif |
123 bool bSpell = false; 124 bool bHyph = false; 125 bool bThes = false; | |
126 if (strcmp( pDicType, "DICT" ) == 0) 127 { 128 aFormatName = A2OU("DICT_SPELL"); 129 aDicExtension = String::CreateFromAscii( ".dic" ); 130#ifdef SYSTEM_DICTS 131 aSystemDir = A2OU( DICT_SYSTEM_DIR ); 132 aSystemSuffix = aDicExtension; 133#endif | 122 if (strcmp( pDicType, "DICT" ) == 0) 123 { 124 aFormatName = A2OU("DICT_SPELL"); 125 aDicExtension = String::CreateFromAscii( ".dic" ); 126#ifdef SYSTEM_DICTS 127 aSystemDir = A2OU( DICT_SYSTEM_DIR ); 128 aSystemSuffix = aDicExtension; 129#endif |
134 bSpell = true; | |
135 } 136 else if (strcmp( pDicType, "HYPH" ) == 0) 137 { 138 aFormatName = A2OU("DICT_HYPH"); 139 aDicExtension = String::CreateFromAscii( ".dic" ); 140#ifdef SYSTEM_DICTS 141 aSystemDir = A2OU( HYPH_SYSTEM_DIR ); 142 aSystemPrefix = A2OU( "hyph_" ); 143 aSystemSuffix = aDicExtension; 144#endif | 130 } 131 else if (strcmp( pDicType, "HYPH" ) == 0) 132 { 133 aFormatName = A2OU("DICT_HYPH"); 134 aDicExtension = String::CreateFromAscii( ".dic" ); 135#ifdef SYSTEM_DICTS 136 aSystemDir = A2OU( HYPH_SYSTEM_DIR ); 137 aSystemPrefix = A2OU( "hyph_" ); 138 aSystemSuffix = aDicExtension; 139#endif |
145 bHyph = true; | |
146 } 147 else if (strcmp( pDicType, "THES" ) == 0) 148 { 149 aFormatName = A2OU("DICT_THES"); 150 aDicExtension = String::CreateFromAscii( ".dat" ); 151#ifdef SYSTEM_DICTS 152 aSystemDir = A2OU( THES_SYSTEM_DIR ); 153 aSystemPrefix = A2OU( "th_" ); 154 aSystemSuffix = A2OU( "_v2.dat" ); 155#endif | 140 } 141 else if (strcmp( pDicType, "THES" ) == 0) 142 { 143 aFormatName = A2OU("DICT_THES"); 144 aDicExtension = String::CreateFromAscii( ".dat" ); 145#ifdef SYSTEM_DICTS 146 aSystemDir = A2OU( THES_SYSTEM_DIR ); 147 aSystemPrefix = A2OU( "th_" ); 148 aSystemSuffix = A2OU( "_v2.dat" ); 149#endif |
156 bThes = true; | |
157 } 158 159 160 if (aFormatName.getLength() == 0 || aDicExtension.Len() == 0) 161 return aRes; 162 163 // set of languages to remember the language where it is already 164 // decided to make use of the dictionary. --- 125 unchanged lines hidden --- | 150 } 151 152 153 if (aFormatName.getLength() == 0 || aDicExtension.Len() == 0) 154 return aRes; 155 156 // set of languages to remember the language where it is already 157 // decided to make use of the dictionary. --- 125 unchanged lines hidden --- |