LibreOffice Module sw (master) 1
unosrch.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <hintids.hxx>
21#include <unosrch.hxx>
22#include <unomap.hxx>
23#include <swtypes.hxx>
24
25#include <osl/diagnose.h>
28#include <o3tl/any.hxx>
29#include <vcl/svapp.hxx>
30#include <com/sun/star/util/SearchAlgorithms2.hpp>
31#include <com/sun/star/util/SearchFlags.hpp>
32#include <com/sun/star/beans/PropertyAttribute.hpp>
35#include <svl/itemprop.hxx>
36#include <svl/itempool.hxx>
37#include <memory>
38#include <unordered_map>
39
40using namespace ::com::sun::star;
41
43{
44 std::unordered_map<OUString, beans::PropertyValue> maValues;
46
49
50public:
52
56 void SetProperties(const uno::Sequence< beans::PropertyValue >& aSearchAttribs);
57 uno::Sequence< beans::PropertyValue > GetProperties() const;
58
59 void FillItemSet(SfxItemSet& rSet, bool bIsValueSearch) const;
60 bool HasAttributes() const;
61};
62
64 mrMap( aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_CURSOR)->getPropertyMap() )
65{
66}
67
68void SwSearchProperties_Impl::SetProperties(const uno::Sequence< beans::PropertyValue >& aSearchAttribs)
69{
70 //delete all existing values
71 maValues.clear();
72
73 for(const beans::PropertyValue& rSearchAttrib : aSearchAttribs)
74 {
75 const OUString& sName = rSearchAttrib.Name;
77 throw beans::UnknownPropertyException(sName);
78 maValues[sName] = rSearchAttrib;
79 }
80}
81
82uno::Sequence< beans::PropertyValue > SwSearchProperties_Impl::GetProperties() const
83{
84 uno::Sequence< beans::PropertyValue > aRet(maValues.size());
85 beans::PropertyValue* pProps = aRet.getArray();
86 sal_Int32 nPropCount = 0;
87 for(auto const & rPair : maValues)
88 {
89 pProps[nPropCount++] = rPair.second;
90 }
91 return aRet;
92}
93
94void SwSearchProperties_Impl::FillItemSet(SfxItemSet& rSet, bool bIsValueSearch) const
95{
96
97 std::unique_ptr<SfxPoolItem> pBoxItem,
98 pCharBoxItem,
99 pBreakItem,
100 pAutoKernItem ,
101 pWLineItem ,
102 pTabItem ,
103 pSplitItem ,
104 pRegItem ,
105 pLineSpaceItem ,
106 pLineNumItem ,
107 pKeepItem ,
108 pLRItem ,
109 pULItem ,
110 pBackItem ,
111 pAdjItem ,
112 pDescItem ,
113 pInetItem ,
114 pDropItem ,
115 pWeightItem ,
116 pULineItem ,
117 pOLineItem ,
118 pCharFormatItem ,
119 pShadItem ,
120 pPostItem ,
121 pNHyphItem ,
122 pLangItem ,
123 pKernItem ,
124 pFontSizeItem ,
125 pFontItem ,
126 pBlinkItem ,
127 pEscItem ,
128 pCrossedOutItem ,
129 pContourItem ,
130 pCharColorItem ,
131 pCasemapItem ,
132 pBrushItem ,
133 pFontCJKItem,
134 pFontSizeCJKItem,
135 pCJKLangItem,
136 pCJKPostureItem,
137 pCJKWeightItem,
138 pFontCTLItem,
139 pFontSizeCTLItem,
140 pCTLLangItem,
141 pCTLPostureItem,
142 pCTLWeightItem,
143 pShadowItem ;
144
145 auto funcClone = [&rSet](sal_uInt16 nWID, std::unique_ptr<SfxPoolItem> & rpPoolItem)
146 {
147 if(!rpPoolItem)
148 rpPoolItem.reset(rSet.GetPool()->GetDefaultItem(nWID).Clone());
149 return rpPoolItem.get();
150 };
151 for(auto const & rPair : maValues)
152 {
153 SfxPoolItem* pTempItem = nullptr;
154 const SfxItemPropertyMapEntry* pPropEntry = mrMap.getByName(rPair.first);
155 assert(pPropEntry && "SetProperties only enters values into maValues if mrMap.hasPropertyByName() was true");
156 const SfxItemPropertyMapEntry & rPropEntry = *pPropEntry;
157 sal_uInt16 nWID = rPropEntry.nWID;
158 switch(nWID)
159 {
160 case RES_BOX:
161 pTempItem = funcClone(nWID, pBoxItem);
162 break;
163 case RES_CHRATR_BOX:
164 pTempItem = funcClone(nWID, pCharBoxItem);
165 break;
166 case RES_BREAK:
167 pTempItem = funcClone(nWID, pBreakItem);
168 break;
170 pTempItem = funcClone(nWID, pAutoKernItem);
171 break;
173 pTempItem = funcClone(nWID, pBrushItem);
174 break;
176 pTempItem = funcClone(nWID, pCasemapItem);
177 break;
178 case RES_CHRATR_COLOR:
179 pTempItem = funcClone(nWID, pCharColorItem);
180 break;
182 pTempItem = funcClone(nWID, pContourItem);
183 break;
185 pTempItem = funcClone(nWID, pCrossedOutItem);
186 break;
188 pTempItem = funcClone(nWID, pEscItem);
189 break;
190 case RES_CHRATR_BLINK:
191 pTempItem = funcClone(nWID, pBlinkItem);
192 break;
193 case RES_CHRATR_FONT:
194 pTempItem = funcClone(nWID, pFontItem);
195 break;
197 pTempItem = funcClone(nWID, pFontSizeItem);
198 break;
200 pTempItem = funcClone(nWID, pKernItem);
201 break;
203 pTempItem = funcClone(nWID, pLangItem);
204 break;
206 pTempItem = funcClone(nWID, pNHyphItem);
207 break;
209 pTempItem = funcClone(nWID, pPostItem);
210 break;
212 pTempItem = funcClone(nWID, pShadItem);
213 break;
215 pTempItem = funcClone(nWID, pCharFormatItem);
216 break;
218 pTempItem = funcClone(nWID, pULineItem);
219 break;
221 pTempItem = funcClone(nWID, pOLineItem);
222 break;
224 pTempItem = funcClone(nWID, pWeightItem);
225 break;
226 case RES_PARATR_DROP:
227 pTempItem = funcClone(nWID, pDropItem);
228 break;
230 pTempItem = funcClone(nWID, pInetItem);
231 break;
232 case RES_PAGEDESC:
233 pTempItem = funcClone(nWID, pDescItem);
234 break;
236 pTempItem = funcClone(nWID, pAdjItem);
237 break;
238 case RES_BACKGROUND:
239 pTempItem = funcClone(nWID, pBackItem);
240 break;
241 case RES_UL_SPACE:
242 pTempItem = funcClone(nWID, pULItem);
243 break;
244 case RES_LR_SPACE:
245 pTempItem = funcClone(nWID, pLRItem);
246 break;
247 case RES_KEEP:
248 pTempItem = funcClone(nWID, pKeepItem);
249 break;
250 case RES_LINENUMBER:
251 pTempItem = funcClone(nWID, pLineNumItem);
252 break;
254 pTempItem = funcClone(nWID, pLineSpaceItem);
255 break;
257 pTempItem = funcClone(nWID, pRegItem);
258 break;
259 case RES_PARATR_SPLIT:
260 pTempItem = funcClone(nWID, pSplitItem);
261 break;
263 pTempItem = funcClone(nWID, pTabItem);
264 break;
266 pTempItem = funcClone(nWID, pWLineItem);
267 break;
269 pTempItem = funcClone(nWID, pFontCJKItem);
270 break;
272 pTempItem = funcClone(nWID, pFontSizeCJKItem);
273 break;
275 pTempItem = funcClone(nWID, pCJKLangItem);
276 break;
278 pTempItem = funcClone(nWID, pCJKPostureItem);
279 break;
281 pTempItem = funcClone(nWID, pCJKWeightItem);
282 break;
284 pTempItem = funcClone(nWID, pFontCTLItem);
285 break;
287 pTempItem = funcClone(nWID, pFontSizeCTLItem);
288 break;
290 pTempItem = funcClone(nWID, pCTLLangItem);
291 break;
293 pTempItem = funcClone(nWID, pCTLPostureItem);
294 break;
296 pTempItem = funcClone(nWID, pCTLWeightItem);
297 break;
299 pTempItem = funcClone(nWID, pShadowItem);
300 break;
301 }
302 if(pTempItem)
303 {
304 if(bIsValueSearch)
305 {
306 pTempItem->PutValue(rPair.second.Value, rPropEntry.nMemberId);
307 rSet.Put(*pTempItem);
308 }
309 else
310 rSet.InvalidateItem( pTempItem->Which() );
311 }
312 }
313}
314
316{
317 return !maValues.empty();
318}
319
321 m_pSearchProperties( new SwSearchProperties_Impl),
322 m_pReplaceProperties( new SwSearchProperties_Impl),
323 m_pPropSet(aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_SEARCH)),
324 m_bAll(false),
325 m_bWord(false),
326 m_bBack(false),
327 m_bExpr(false),
328 m_bCase(false),
329 m_bStyles(false),
330 m_bSimilarity(false),
331 m_bLevRelax(false),
332 m_nLevExchange(2),
333 m_nLevAdd(2),
334 m_nLevRemove(2),
335 m_bIsValueSearch(true)
336{
337}
338
340{
341 m_pSearchProperties.reset();
342 m_pReplaceProperties.reset();
343}
344
345namespace
346{
347}
348
350{
351 SolarMutexGuard aGuard;
352 return m_sSearchText;
353}
354
355void SwXTextSearch::setSearchString(const OUString& rString)
356{
357 SolarMutexGuard aGuard;
358 m_sSearchText = rString;
359}
360
362{
363 SolarMutexGuard aGuard;
364 return m_sReplaceText;
365}
366
367void SwXTextSearch::setReplaceString(const OUString& rReplaceString)
368{
369 SolarMutexGuard aGuard;
370 m_sReplaceText = rReplaceString;
371}
372
373uno::Reference< beans::XPropertySetInfo > SwXTextSearch::getPropertySetInfo()
374{
375 static uno::Reference< beans::XPropertySetInfo > aRef = m_pPropSet->getPropertySetInfo();
376 return aRef;
377}
378
379void SwXTextSearch::setPropertyValue(const OUString& rPropertyName, const uno::Any& aValue)
380{
381 SolarMutexGuard aGuard;
382 const SfxItemPropertyMapEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
383 if(!pEntry)
384 throw beans::UnknownPropertyException("Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
385
386 if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
387 throw beans::PropertyVetoException ("Property is read-only: " + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
388 bool bVal = false;
389 if(auto b = o3tl::tryAccess<bool>(aValue))
390 bVal = *b;
391 switch(pEntry->nWID)
392 {
393 case WID_SEARCH_ALL : m_bAll = bVal; break;
394 case WID_WORDS: m_bWord = bVal; break;
395 case WID_BACKWARDS : m_bBack = bVal; break;
396 case WID_REGULAR_EXPRESSION : m_bExpr = bVal; break;
397 case WID_CASE_SENSITIVE : m_bCase = bVal; break;
398 //case WID_IN_SELECTION : bInSel = bVal; break;
399 case WID_STYLES : m_bStyles = bVal; break;
400 case WID_SIMILARITY : m_bSimilarity = bVal; break;
401 case WID_SIMILARITY_RELAX: m_bLevRelax = bVal; break;
402 case WID_SIMILARITY_EXCHANGE: aValue >>= m_nLevExchange; break;
403 case WID_SIMILARITY_ADD: aValue >>= m_nLevAdd; break;
404 case WID_SIMILARITY_REMOVE : aValue >>= m_nLevRemove;break;
405 };
406
407}
408
409uno::Any SwXTextSearch::getPropertyValue(const OUString& rPropertyName)
410{
411 SolarMutexGuard aGuard;
412 uno::Any aRet;
413
414 const SfxItemPropertyMapEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
415 bool bSet = false;
416 if(!pEntry)
417 throw beans::UnknownPropertyException("Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
418
419 sal_Int16 nSet = 0;
420 switch(pEntry->nWID)
421 {
422 case WID_SEARCH_ALL : bSet = m_bAll; goto SET_BOOL;
423 case WID_WORDS: bSet = m_bWord; goto SET_BOOL;
424 case WID_BACKWARDS : bSet = m_bBack; goto SET_BOOL;
425 case WID_REGULAR_EXPRESSION : bSet = m_bExpr; goto SET_BOOL;
426 case WID_CASE_SENSITIVE : bSet = m_bCase; goto SET_BOOL;
427 //case WID_IN_SELECTION : bSet = bInSel; goto SET_BOOL;
428 case WID_STYLES : bSet = m_bStyles; goto SET_BOOL;
429 case WID_SIMILARITY : bSet = m_bSimilarity; goto SET_BOOL;
431SET_BOOL:
432 aRet <<= bSet;
433 break;
434 case WID_SIMILARITY_EXCHANGE: nSet = m_nLevExchange; goto SET_UINT16;
435 case WID_SIMILARITY_ADD: nSet = m_nLevAdd; goto SET_UINT16;
437SET_UINT16:
438 aRet <<= nSet;
439 break;
440 }
441
442 return aRet;
443}
444
445void SwXTextSearch::addPropertyChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener > & /*xListener*/)
446{
447 OSL_FAIL("not implemented");
448}
449
450void SwXTextSearch::removePropertyChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener > & /*xListener*/)
451{
452 OSL_FAIL("not implemented");
453}
454
455void SwXTextSearch::addVetoableChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener > & /*xListener*/)
456{
457 OSL_FAIL("not implemented");
458}
459
460void SwXTextSearch::removeVetoableChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener > & /*xListener*/)
461{
462 OSL_FAIL("not implemented");
463}
464
466{
467 SolarMutexGuard aGuard;
468 return m_bIsValueSearch;
469}
470
472{
473 SolarMutexGuard aGuard;
474 m_bIsValueSearch = ValueSearch_;
475}
476
477uno::Sequence< beans::PropertyValue > SwXTextSearch::getSearchAttributes()
478{
479 return m_pSearchProperties->GetProperties();
480}
481
482void SwXTextSearch::setSearchAttributes(const uno::Sequence< beans::PropertyValue >& rSearchAttribs)
483{
484 m_pSearchProperties->SetProperties(rSearchAttribs);
485}
486
487uno::Sequence< beans::PropertyValue > SwXTextSearch::getReplaceAttributes()
488{
489 return m_pReplaceProperties->GetProperties();
490}
491
492void SwXTextSearch::setReplaceAttributes(const uno::Sequence< beans::PropertyValue >& rReplaceAttribs)
493{
494 m_pReplaceProperties->SetProperties(rReplaceAttribs);
495}
496
498{
500}
501
503{
505}
506
508{
509 return m_pSearchProperties->HasAttributes();
510}
511
513{
514 return m_pReplaceProperties->HasAttributes();
515}
516
518{
519 return "SwXTextSearch";
520}
521
522sal_Bool SwXTextSearch::supportsService(const OUString& rServiceName)
523{
524 return cppu::supportsService(this, rServiceName);
525}
526
528{
529 return { "com.sun.star.util.SearchDescriptor", "com.sun.star.util.ReplaceDescriptor" };
530}
531
533{
534 if( m_bSimilarity )
535 {
536 rSearchOpt.algorithmType = util::SearchAlgorithms_APPROXIMATE;
537 rSearchOpt.AlgorithmType2 = util::SearchAlgorithms2::APPROXIMATE;
538 rSearchOpt.changedChars = m_nLevExchange;
539 rSearchOpt.deletedChars = m_nLevRemove;
540 rSearchOpt.insertedChars = m_nLevAdd;
541 if( m_bLevRelax )
542 rSearchOpt.searchFlag |= util::SearchFlags::LEV_RELAXED;
543 }
544 else if( m_bExpr )
545 {
546 rSearchOpt.algorithmType = util::SearchAlgorithms_REGEXP;
547 rSearchOpt.AlgorithmType2 = util::SearchAlgorithms2::REGEXP;
548 }
549 else
550 {
551 rSearchOpt.algorithmType = util::SearchAlgorithms_ABSOLUTE;
552 rSearchOpt.AlgorithmType2 = util::SearchAlgorithms2::ABSOLUTE;
553 }
554
555 rSearchOpt.Locale = GetAppLanguageTag().getLocale();
556 rSearchOpt.searchString = m_sSearchText;
557 rSearchOpt.replaceString = m_sReplaceText;
558
559 if( !m_bCase )
560 rSearchOpt.transliterateFlags |= TransliterationFlags::IGNORE_CASE;
561 if( m_bWord )
562 rSearchOpt.searchFlag |= util::SearchFlags::NORM_WORD_ONLY;
563
564// bInSel: 1; // How is that possible?
565// TODO: pSearch->bStyles!
566// inSelection??
567// aSrchParam.SetSrchInSelection(TypeConversion::toBOOL(aVal));
568}
569
570/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
bool hasPropertyByName(std::u16string_view rName) const
const SfxItemPropertyMap & getPropertyMap() const
css::uno::Reference< css::beans::XPropertySetInfo > const & getPropertySetInfo() const
SfxItemPool * GetPool() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void InvalidateItem(sal_uInt16 nWhich)
sal_uInt16 Which() const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
void SetProperties(const uno::Sequence< beans::PropertyValue > &aSearchAttribs)
Definition: unosrch.cxx:68
void FillItemSet(SfxItemSet &rSet, bool bIsValueSearch) const
Definition: unosrch.cxx:94
uno::Sequence< beans::PropertyValue > GetProperties() const
Definition: unosrch.cxx:82
SwSearchProperties_Impl & operator=(const SwSearchProperties_Impl &)=delete
SfxItemPropertyMap mrMap
Definition: unosrch.cxx:45
std::unordered_map< OUString, beans::PropertyValue > maValues
Definition: unosrch.cxx:44
SwSearchProperties_Impl(const SwSearchProperties_Impl &)=delete
bool HasAttributes() const
Definition: unosrch.cxx:315
bool m_bStyles
Definition: unosrch.hxx:56
sal_Int16 m_nLevAdd
Definition: unosrch.hxx:60
void FillSearchItemSet(SfxItemSet &rSet) const
Definition: unosrch.cxx:497
void FillSearchOptions(i18nutil::SearchOptions2 &rSearchOpt) const
Definition: unosrch.cxx:532
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unosrch.cxx:527
virtual OUString SAL_CALL getImplementationName() override
Definition: unosrch.cxx:517
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unosrch.cxx:379
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unosrch.cxx:455
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unosrch.cxx:445
bool m_bBack
Definition: unosrch.hxx:53
bool m_bSimilarity
Definition: unosrch.hxx:57
virtual OUString SAL_CALL getSearchString() override
Definition: unosrch.cxx:349
sal_Int16 m_nLevExchange
Definition: unosrch.hxx:59
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unosrch.cxx:373
void FillReplaceItemSet(SfxItemSet &rSet) const
Definition: unosrch.cxx:502
virtual ~SwXTextSearch() override
Definition: unosrch.cxx:339
bool HasReplaceAttributes() const
Definition: unosrch.cxx:512
bool m_bExpr
Definition: unosrch.hxx:54
virtual sal_Bool SAL_CALL getValueSearch() override
Definition: unosrch.cxx:465
virtual void SAL_CALL setValueSearch(sal_Bool ValueSearch_) override
Definition: unosrch.cxx:471
OUString m_sReplaceText
Definition: unosrch.hxx:45
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unosrch.cxx:460
bool m_bCase
Definition: unosrch.hxx:55
bool HasSearchAttributes() const
Definition: unosrch.cxx:507
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getSearchAttributes() override
Definition: unosrch.cxx:477
bool m_bWord
Definition: unosrch.hxx:52
std::unique_ptr< SwSearchProperties_Impl > m_pSearchProperties
Definition: unosrch.hxx:47
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unosrch.cxx:522
virtual void SAL_CALL setSearchAttributes(const css::uno::Sequence< css::beans::PropertyValue > &aSearchAttribs) override
Definition: unosrch.cxx:482
virtual OUString SAL_CALL getReplaceString() override
Definition: unosrch.cxx:361
sal_Int16 m_nLevRemove
Definition: unosrch.hxx:61
bool m_bLevRelax
Definition: unosrch.hxx:58
std::unique_ptr< SwSearchProperties_Impl > m_pReplaceProperties
Definition: unosrch.hxx:48
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getReplaceAttributes() override
Definition: unosrch.cxx:487
const SfxItemPropertySet * m_pPropSet
Definition: unosrch.hxx:50
virtual void SAL_CALL setSearchString(const OUString &aString) override
Definition: unosrch.cxx:355
virtual void SAL_CALL setReplaceString(const OUString &aReplaceString) override
Definition: unosrch.cxx:367
bool m_bIsValueSearch
Definition: unosrch.hxx:63
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unosrch.cxx:450
virtual void SAL_CALL setReplaceAttributes(const css::uno::Sequence< css::beans::PropertyValue > &aSearchAttribs) override
Definition: unosrch.cxx:492
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unosrch.cxx:409
OUString m_sSearchText
Definition: unosrch.hxx:44
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(94)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CTL_FONTSIZE(28)
constexpr TypedWhichId< SvxCrossedOutItem > RES_CHRATR_CROSSEDOUT(5)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
constexpr TypedWhichId< SvxUnderlineItem > RES_CHRATR_UNDERLINE(14)
constexpr TypedWhichId< SvxAutoKernItem > RES_CHRATR_AUTOKERN(17)
constexpr TypedWhichId< SvxShadowItem > RES_CHRATR_SHADOW(41)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
constexpr TypedWhichId< SvxShadowedItem > RES_CHRATR_SHADOWED(13)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CTL_WEIGHT(31)
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(93)
constexpr TypedWhichId< SvxAdjustItem > RES_PARATR_ADJUST(64)
constexpr TypedWhichId< SvxContourItem > RES_CHRATR_CONTOUR(4)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
constexpr TypedWhichId< SvxEscapementItem > RES_CHRATR_ESCAPEMENT(6)
constexpr TypedWhichId< SvxTabStopItem > RES_PARATR_TABSTOP(68)
constexpr TypedWhichId< SvxBrushItem > RES_CHRATR_BACKGROUND(21)
constexpr TypedWhichId< SvxCaseMapItem > RES_CHRATR_CASEMAP(RES_CHRATR_BEGIN)
constexpr TypedWhichId< SvxLineSpacingItem > RES_PARATR_LINESPACING(RES_PARATR_BEGIN)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CTL_POSTURE(30)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
constexpr TypedWhichId< SwFormatCharFormat > RES_TXTATR_CHARFMT(52)
constexpr TypedWhichId< SvxBlinkItem > RES_CHRATR_BLINK(18)
constexpr TypedWhichId< SvxOverlineItem > RES_CHRATR_OVERLINE(38)
constexpr TypedWhichId< SwFormatDrop > RES_PARATR_DROP(70)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(110)
constexpr TypedWhichId< SvxWordLineModeItem > RES_CHRATR_WORDLINEMODE(16)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CJK_WEIGHT(26)
constexpr TypedWhichId< SvxKerningItem > RES_CHRATR_KERNING(9)
constexpr TypedWhichId< SwFormatLineNumber > RES_LINENUMBER(116)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
constexpr TypedWhichId< SvxFormatSplitItem > RES_PARATR_SPLIT(65)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CJK_POSTURE(25)
constexpr TypedWhichId< SwRegisterItem > RES_PARATR_REGISTER(71)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
constexpr TypedWhichId< SvxBoxItem > RES_CHRATR_BOX(40)
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_COLOR(3)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(105)
constexpr TypedWhichId< SvxNoHyphenItem > RES_CHRATR_NOHYPHEN(19)
const LanguageTag & GetAppLanguageTag()
Definition: init.cxx:733
const char * sName
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
detail::Optional< bool >::type tryAccess< bool >(css::uno::Any const &any)
static SfxItemSet & rSet
css::lang::Locale Locale
css::util::SearchAlgorithms algorithmType
TransliterationFlags transliterateFlags
unsigned char sal_Bool
SwUnoPropertyMapProvider aSwMapProvider
Definition: unomap1.cxx:87
#define PROPERTY_MAP_TEXT_CURSOR
Definition: unomap.hxx:28
#define WID_BACKWARDS
Definition: unomap.hxx:135
#define WID_SEARCH_ALL
Definition: unomap.hxx:145
#define WID_REGULAR_EXPRESSION
Definition: unomap.hxx:136
#define WID_STYLES
Definition: unomap.hxx:139
#define WID_SIMILARITY
Definition: unomap.hxx:140
#define WID_SIMILARITY_REMOVE
Definition: unomap.hxx:144
#define WID_SIMILARITY_RELAX
Definition: unomap.hxx:141
#define PROPERTY_MAP_TEXT_SEARCH
Definition: unomap.hxx:38
#define WID_SIMILARITY_ADD
Definition: unomap.hxx:143
#define WID_SIMILARITY_EXCHANGE
Definition: unomap.hxx:142
#define WID_CASE_SENSITIVE
Definition: unomap.hxx:137
#define WID_WORDS
Definition: unomap.hxx:134