30#include <com/sun/star/sdbc/XResultSet.hpp>
31#include <com/sun/star/sdbc/XRow.hpp>
34#include <com/sun/star/uno/Sequence.hxx>
54 uno::Reference<sdbc::XResultSet> xResultSet = aContent.
createCursor(
55 {
"Title"}, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY);
56 uno::Reference<sdbc::XRow> xRow( xResultSet, UNO_QUERY);
57 if (xResultSet.is() && xRow.is())
59 while (xResultSet->next())
63 const OUString aTitle( xRow->getString(1));
64 if (aTitle.getLength() <= 9 || !(aTitle.startsWith(
"acor_") && aTitle.endsWith(
".dat")))
67 const OUString aBcp47( aTitle.copy( 5, aTitle.getLength() - 9));
68 OUString aCanonicalized;
87 LanguageTag::PrivateUse::DISALLOW))
98 catch (
const uno::Exception&)
106 catch (
const uno::Exception&)
118 bAutoTextPreview(false),
119 bAutoFmtByInput(true),
120 bSearchInAllCategories(false)
123 OUString sSharePath, sUserPath;
126 sSharePath = sAutoPath.getToken(0,
';');
127 sUserPath = sAutoPath.getToken(1,
';');
135 for( OUString*
pS : { &sSharePath, &sUserPath } )
169 "Exceptions/TwoCapitalsAtStart",
170 "Exceptions/CapitalAtStartSentence",
171 "UseReplacementTable",
172 "TwoCapitalsAtStart",
173 "CapitalAtStartSentence",
174 "ChangeUnderlineWeight",
176 "ChangeOrdinalNumber",
177 "AddNonBreakingSpace",
179 "RemoveDoubleSpaces",
180 "ReplaceSingleQuote",
181 "SingleQuoteAtStart",
183 "ReplaceDoubleQuote",
184 "DoubleQuoteAtStart",
186 "CorrectAccidentalCapsLock",
193 OUString* pNames = aNames.getArray();
206 DBG_ASSERT(aValues.getLength() == aNames.getLength(),
"GetProperties failed");
207 if(aValues.getLength() != aNames.getLength())
212 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
219 if(*o3tl::doAccess<bool>(
pValues[nProp]))
223 if(*o3tl::doAccess<bool>(
pValues[nProp]))
227 if(*o3tl::doAccess<bool>(
pValues[nProp]))
231 if(*o3tl::doAccess<bool>(
pValues[nProp]))
235 if(*o3tl::doAccess<bool>(
pValues[nProp]))
239 if(*o3tl::doAccess<bool>(
pValues[nProp]))
243 if(*o3tl::doAccess<bool>(
pValues[nProp]))
247 if(*o3tl::doAccess<bool>(
pValues[nProp]))
251 if(*o3tl::doAccess<bool>(
pValues[nProp]))
255 if(*o3tl::doAccess<bool>(
pValues[nProp]))
259 if(*o3tl::doAccess<bool>(
pValues[nProp]))
263 if(*o3tl::doAccess<bool>(
pValues[nProp]))
269 sal::static_int_cast< sal_Unicode >( nTemp ) );
274 sal::static_int_cast< sal_Unicode >( nTemp ) );
277 if(*o3tl::doAccess<bool>(
pValues[nProp]))
283 sal::static_int_cast< sal_Unicode >( nTemp ) );
288 sal::static_int_cast< sal_Unicode >( nTemp ) );
291 if(*o3tl::doAccess<bool>(
pValues[nProp]))
295 if(*o3tl::doAccess<bool>(
pValues[nProp]))
299 if(*o3tl::doAccess<bool>(
pValues[nProp]))
303 if(*o3tl::doAccess<bool>(
pValues[nProp]))
377 "Text/InternetLinks",
380 "Text/SearchInAllCategories",
381 "Format/Option/UseReplacementTable",
382 "Format/Option/TwoCapitalsAtStart",
383 "Format/Option/CapitalAtStartSentence",
384 "Format/Option/ChangeUnderlineWeight",
385 "Format/Option/SetInetAttribute",
386 "Format/Option/ChangeOrdinalNumber",
387 "Format/Option/AddNonBreakingSpace",
388 "Format/Option/ChangeDash",
389 "Format/Option/DelEmptyParagraphs",
390 "Format/Option/ReplaceUserStyle",
391 "Format/Option/ChangeToBullets/Enable",
392 "Format/Option/ChangeToBullets/SpecialCharacter/Char",
393 "Format/Option/ChangeToBullets/SpecialCharacter/Font",
394 "Format/Option/ChangeToBullets/SpecialCharacter/FontFamily",
395 "Format/Option/ChangeToBullets/SpecialCharacter/FontCharset",
396 "Format/Option/ChangeToBullets/SpecialCharacter/FontPitch",
397 "Format/Option/CombineParagraphs",
398 "Format/Option/CombineValue",
399 "Format/Option/DelSpacesAtStartEnd",
400 "Format/Option/DelSpacesBetween",
401 "Format/ByInput/Enable",
402 "Format/ByInput/ChangeDash",
403 "Format/ByInput/ApplyNumbering/Enable",
404 "Format/ByInput/ChangeToBorders",
405 "Format/ByInput/ChangeToTable",
406 "Format/ByInput/ReplaceStyle",
407 "Format/ByInput/DelSpacesAtStartEnd",
408 "Format/ByInput/DelSpacesBetween",
410 "Completion/MinWordLen",
411 "Completion/MaxListLen",
412 "Completion/CollectWords",
413 "Completion/EndlessList",
414 "Completion/AppendBlank",
415 "Completion/ShowAsTip",
416 "Completion/AcceptKey",
417 "Completion/KeepList",
418 "Format/ByInput/ApplyNumbering/SpecialCharacter/Char",
419 "Format/ByInput/ApplyNumbering/SpecialCharacter/Font",
420 "Format/ByInput/ApplyNumbering/SpecialCharacter/FontFamily",
421 "Format/ByInput/ApplyNumbering/SpecialCharacter/FontCharset",
422 "Format/ByInput/ApplyNumbering/SpecialCharacter/FontPitch",
423 "Format/Option/SetDOIAttribute",
427 OUString* pNames = aNames.getArray();
440 DBG_ASSERT(aValues.getLength() == aNames.getLength(),
"GetProperties failed");
441 if(aValues.getLength() != aNames.getLength())
445 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
470 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
472 sal::static_int_cast< sal_Unicode >(nVal);
477 OUString sTemp;
pValues[nProp] >>= sTemp;
483 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
489 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
495 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
502 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
504 sal::static_int_cast< sal_uInt8 >(nVal);
520 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
522 sal::static_int_cast< sal_uInt16 >(nVal);
527 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
529 sal::static_int_cast< sal_uInt32 >(nVal);
538 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
540 sal::static_int_cast< sal_uInt16 >(nVal);
546 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
548 sal::static_int_cast< sal_Unicode >(nVal);
553 OUString sTemp;
pValues[nProp] >>= sTemp;
559 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
565 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
571 sal_Int32 nVal = 0;
pValues[nProp] >>= nVal;
625 css::uno::Any(sal_Int32(rSwFlags.
cBullet)),
691 return theSvxAutoCorrCfg;
const PropertyValue * pValues
static void scanAutoCorrectDirForLanguageTags(const OUString &rURL)
An autocorrection file dropped into such directory may create a language list entry if one didn't exi...
OUString GetMainURL(DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
bool insertName(std::u16string_view rTheName, bool bAppendFinalSlash=false, sal_Int32 nIndex=LAST_SEGMENT, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
LanguageType getLanguageType(bool bResolveSystem=true) const
OUString getLanguageAndScript() const
LanguageTag & makeFallback()
bool isValidBcp47() const
OUString getCountry() const
static void AddLanguageTag(const LanguageTag &rLanguageTag)
static bool HasLanguageType(const LanguageType eType)
const OUString & GetAutoCorrectPath() const
SvxSwAutoCorrCfg aSwConfig
std::unique_ptr< SvxAutoCorrect > pAutoCorrect
bool bSearchInAllCategories
SvxBaseAutoCorrCfg aBaseConfig
static SvxAutoCorrCfg & Get()
void SetAutoCorrect(SvxAutoCorrect *)
SvxBaseAutoCorrCfg(SvxAutoCorrCfg &rParent)
virtual void ImplCommit() override
virtual ~SvxBaseAutoCorrCfg() override
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
static css::uno::Sequence< OUString > GetPropertyNames()
virtual ~SvxSwAutoCorrCfg() override
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
static css::uno::Sequence< OUString > GetPropertyNames()
SvxSwAutoCorrCfg(SvxAutoCorrCfg &rParent)
virtual void ImplCommit() override
css::uno::Reference< css::sdbc::XResultSet > createCursor(const css::uno::Sequence< OUString > &rPropertyNames, ResultSetInclude eMode=INCLUDE_FOLDERS_AND_DOCUMENTS)
static bool PutProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
bool EnableNotification(const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
static css::uno::Sequence< css::uno::Any > GetProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
FontFamily GetFamilyType()
void SetPitch(FontPitch ePitch)
const OUString & GetFamilyName() const
void SetFamily(FontFamily)
void SetCharSet(rtl_TextEncoding)
void SetFamilyName(const OUString &rFamilyName)
rtl_TextEncoding GetCharSet() const
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
Reference< XComponentContext > getProcessComponentContext()
const PropertyStruct aPropNames[]