Files
libreoffice/unotools/source/config/searchopt.cxx

581 lines
14 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2001-02-19 09:59:04 +00:00
#include <sal/config.h>
#include <unotools/searchopt.hxx>
2001-02-19 09:59:04 +00:00
#include <tools/debug.hxx>
#include <unotools/configitem.hxx>
#include <com/sun/star/i18n/TransliterationModules.hpp>
#include <com/sun/star/i18n/TransliterationModulesExtra.hpp>
2001-02-19 09:59:04 +00:00
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Any.h>
#include <sal/macros.h>
#include <osl/diagnose.h>
2001-02-19 09:59:04 +00:00
using namespace utl;
using namespace com::sun::star::uno;
using namespace com::sun::star::i18n;
#define MAX_FLAGS_OFFSET 27
2001-02-19 09:59:04 +00:00
class SvtSearchOptions_Impl : public ConfigItem
2001-02-19 09:59:04 +00:00
{
sal_Int32 nFlags;
bool bModified;
2001-02-19 09:59:04 +00:00
SvtSearchOptions_Impl(const SvtSearchOptions_Impl&) SAL_DELETED_FUNCTION;
SvtSearchOptions_Impl& operator=(const SvtSearchOptions_Impl&) SAL_DELETED_FUNCTION;
// ConfigItem
virtual void ImplCommit() SAL_OVERRIDE;
2001-02-19 09:59:04 +00:00
protected:
bool IsModified() const { return bModified; }
using ConfigItem::SetModified;
void SetModified( bool bVal );
bool Load();
bool Save();
2001-02-19 09:59:04 +00:00
static Sequence< OUString > GetPropertyNames();
2001-02-19 09:59:04 +00:00
public:
SvtSearchOptions_Impl();
virtual ~SvtSearchOptions_Impl();
virtual void Notify( const com::sun::star::uno::Sequence< OUString >& aPropertyNames ) SAL_OVERRIDE;
2001-02-19 09:59:04 +00:00
bool GetFlag( sal_uInt16 nOffset ) const;
void SetFlag( sal_uInt16 nOffset, bool bVal );
2001-02-19 09:59:04 +00:00
};
SvtSearchOptions_Impl::SvtSearchOptions_Impl() :
ConfigItem( OUString("Office.Common/SearchOptions") )
2001-02-19 09:59:04 +00:00
{
nFlags = 0x0003FFFF; // set all options values to 'true'
Load();
SetModified( false );
2001-02-19 09:59:04 +00:00
}
SvtSearchOptions_Impl::~SvtSearchOptions_Impl()
{
assert(!IsModified()); // should have been committed
2001-02-19 09:59:04 +00:00
}
void SvtSearchOptions_Impl::ImplCommit()
2001-02-19 09:59:04 +00:00
{
if (IsModified())
Save();
}
void SvtSearchOptions_Impl::Notify( const Sequence< OUString >& )
{
}
bool SvtSearchOptions_Impl::GetFlag( sal_uInt16 nOffset ) const
2001-02-19 09:59:04 +00:00
{
DBG_ASSERT( nOffset <= MAX_FLAGS_OFFSET, "offset out of range");
return ((nFlags >> nOffset) & 0x01) != 0;
2001-02-19 09:59:04 +00:00
}
void SvtSearchOptions_Impl::SetFlag( sal_uInt16 nOffset, bool bVal )
2001-02-19 09:59:04 +00:00
{
DBG_ASSERT( nOffset <= MAX_FLAGS_OFFSET, "offset out of range");
sal_Int32 nOldFlags = nFlags;
sal_Int32 nMask = ((sal_Int32) 1) << nOffset;
2001-02-19 09:59:04 +00:00
if (bVal)
nFlags |= nMask;
else
nFlags &= ~nMask;
if (nFlags != nOldFlags)
SetModified( true );
2001-02-19 09:59:04 +00:00
}
void SvtSearchOptions_Impl::SetModified( bool bVal )
2001-02-19 09:59:04 +00:00
{
bModified = bVal;
if (bModified)
2001-02-19 09:59:04 +00:00
{
ConfigItem::SetModified();
}
}
Sequence< OUString > SvtSearchOptions_Impl::GetPropertyNames()
2001-02-19 09:59:04 +00:00
{
static const char* aPropNames[ MAX_FLAGS_OFFSET + 1 ] =
{
2001-02-21 12:06:43 +00:00
"IsWholeWordsOnly", // 0
"IsBackwards", // 1
"IsUseRegularExpression", // 2
2001-02-19 09:59:04 +00:00
//"IsCurrentSelectionOnly", // interactively set or not...
2001-02-21 12:06:43 +00:00
"IsSearchForStyles", // 3
"IsSimilaritySearch", // 4
"IsUseAsianOptions", // 5
"IsMatchCase", // 6
"Japanese/IsMatchFullHalfWidthForms", // 7
"Japanese/IsMatchHiraganaKatakana", // 8
"Japanese/IsMatchContractions", // 9
"Japanese/IsMatchMinusDashCho-on", // 10
"Japanese/IsMatchRepeatCharMarks", // 11
"Japanese/IsMatchVariantFormKanji", // 12
"Japanese/IsMatchOldKanaForms", // 13
"Japanese/IsMatch_DiZi_DuZu", // 14
"Japanese/IsMatch_BaVa_HaFa", // 15
"Japanese/IsMatch_TsiThiChi_DhiZi", // 16
"Japanese/IsMatch_HyuIyu_ByuVyu", // 17
"Japanese/IsMatch_SeShe_ZeJe", // 18
"Japanese/IsMatch_IaIya", // 19
"Japanese/IsMatch_KiKu", // 20
"Japanese/IsIgnorePunctuation", // 21
"Japanese/IsIgnoreWhitespace", // 22
CWS-TOOLING: integrate CWS notes7 2008-12-29 19:45:08 +0100 mod r265824 : CWS-TOOLING: rebase CWS notes7 to trunk@265758 (milestone: DEV300:m38) 2008-12-16 14:54:42 +0100 mod r265544 : #i97239# 2008-12-16 14:53:18 +0100 mod r265543 : #i97239# 2008-12-16 13:36:43 +0100 mod r265537 : 96602 2008-12-13 13:02:54 +0100 mba r265452 : warning fixed 2008-12-13 08:20:21 +0100 mod r265448 : search inside notes 2008-12-13 00:11:47 +0100 mod r265447 : search inside notes 2008-12-13 00:11:09 +0100 mod r265446 : search inside notes 2008-12-13 00:10:52 +0100 mod r265445 : search inside notes 2008-12-12 19:39:14 +0100 mod r265439 : search inside notes 2008-12-12 19:02:44 +0100 mod r265438 : search inside notes 2008-12-12 16:42:07 +0100 mba r265431 : #i80135#: search in notes 2008-12-12 16:11:54 +0100 mba r265429 : #i80135#: search in notes 2008-12-12 16:11:02 +0100 mba r265428 : #i80135#: search in notes 2008-12-11 20:24:20 +0100 pb r265358 : fix: #i80135# fixes for aNotesBtn 2008-12-11 20:23:19 +0100 pb r265357 : fix: #i80135# fixes for aNotesBtn 2008-12-11 07:42:17 +0100 pb r265241 : fix: #i80135# CB_NOTES added 2008-12-11 07:40:36 +0100 pb r265240 : fix: #i80135# CB_NOTES added 2008-12-11 07:32:03 +0100 pb r265239 : fix: #i80135# CheckBox aNotesBtn added 2008-12-11 07:24:45 +0100 pb r265238 : fix: #i80135# CheckBox aNotesBtn added 2008-12-10 15:41:31 +0100 mod r265198 : crash using replies 2008-12-10 15:21:23 +0100 mod r265195 : crash using replies 2008-12-10 13:45:14 +0100 mba r265181 : warning fixed 2008-12-10 13:26:45 +0100 mba r265178 : warning fixed 2008-12-10 11:48:23 +0100 mba r265162 : fixed compilation error on Linux 2008-12-03 18:39:07 +0100 mod r264806 : we don't get the Ctrl-Alt-N on mac inside a note, let's do the whole reply thing using the shell, cleaner anyway 2008-12-03 17:13:59 +0100 mod r264802 : search dialog can be started and closed when focus is inside a note 2008-12-03 00:07:08 +0100 mod r264733 : search inside notes 2008-12-02 18:06:08 +0100 mod r264729 : WaE 2008-12-02 15:01:26 +0100 mod r264703 : WaE 2008-12-02 00:20:14 +0100 mod r264644 : WaE 2008-12-01 10:06:14 +0100 mod r264587 : WaE 2008-12-01 01:28:34 +0100 mod r264585 : WaE 2008-11-30 22:51:19 +0100 mod r264584 : search inside notes 2008-11-30 17:03:04 +0100 mod r264583 : search inside notes 2008-11-28 16:30:05 +0100 mod r264560 : #i96602# 2008-11-28 16:14:50 +0100 mod r264559 : test 2008-11-28 16:11:37 +0100 mod r264558 : test 2008-11-17 17:46:10 +0100 mod r263735 : WaE 2008-11-17 17:45:56 +0100 mod r263734 : WaE 2008-11-17 17:37:35 +0100 mod r263733 : revert manual fix for icu 2008-11-17 15:03:55 +0100 mod r263726 : manual fix for icu 2008-11-17 11:17:49 +0100 mod r263707 : manual fix for icu 2008-11-14 15:51:19 +0100 mod r263679 : fix 2008-11-14 14:48:02 +0100 mod r263676 : some more cleanup, redline comments not in the margin for 3.1 2008-11-14 08:37:07 +0100 mod r263664 : end of line missing 2008-11-13 18:36:53 +0100 mod r263660 : WaE 2008-11-13 18:20:04 +0100 mod r263659 : #i94374# 2008-11-13 15:51:28 +0100 mod r263648 : CWS-TOOLING: rebase CWS notes7 to trunk@263288 (milestone: DEV300:m35) 2008-11-13 08:33:19 +0100 mod r263622 : typos 2008-11-02 23:18:19 +0100 mod r263278 : changes notes, replies 2008-11-01 11:48:35 +0100 mod r262873 : replies, comments 2008-11-01 11:44:57 +0100 mod r262872 : notes search button 2008-10-10 14:34:34 +0200 mod r262150 : migration from cvs to svn 2008-10-10 14:33:39 +0200 mod r262149 : migration from cvs to svn
2009-01-02 15:51:45 +00:00
"Japanese/IsIgnoreProlongedSoundMark", // 23
"Japanese/IsIgnoreMiddleDot", // 24
"IsNotes", // 25
"IsIgnoreDiacritics_CTL", // 26
"IsIgnoreKashida_CTL" // 27
2001-02-19 09:59:04 +00:00
};
const int nCount = SAL_N_ELEMENTS( aPropNames );
2001-02-19 09:59:04 +00:00
Sequence< OUString > aNames( nCount );
OUString* pNames = aNames.getArray();
for (sal_Int32 i = 0; i < nCount; ++i)
2001-02-19 09:59:04 +00:00
pNames[i] = OUString::createFromAscii( aPropNames[i] );
return aNames;
}
bool SvtSearchOptions_Impl::Load()
2001-02-19 09:59:04 +00:00
{
bool bSucc = false;
2001-02-19 09:59:04 +00:00
Sequence< OUString > aNames = GetPropertyNames();
sal_Int32 nProps = aNames.getLength();
2001-02-19 09:59:04 +00:00
const Sequence< Any > aValues = GetProperties( aNames );
DBG_ASSERT( aValues.getLength() == aNames.getLength(),
"GetProperties failed" );
//EnableNotification( aNames );
if (nProps && aValues.getLength() == nProps)
{
bSucc = true;
2001-02-19 09:59:04 +00:00
const Any* pValues = aValues.getConstArray();
for (sal_Int32 i = 0; i < nProps; ++i)
2001-02-19 09:59:04 +00:00
{
const Any &rVal = pValues[i];
DBG_ASSERT( rVal.hasValue(), "property value missing" );
if (rVal.hasValue())
{
bool bVal = bool();
2001-02-19 09:59:04 +00:00
if (rVal >>= bVal)
{
if (i <= MAX_FLAGS_OFFSET)
{
// use index in sequence as flag index
SetFlag( i, bVal );
}
else {
2011-03-01 19:08:19 +01:00
OSL_FAIL( "unexpected index" );
}
2001-02-19 09:59:04 +00:00
}
else
{
2011-03-01 19:08:19 +01:00
OSL_FAIL( "unexpected type" );
bSucc = false;
2001-02-19 09:59:04 +00:00
}
}
else
{
2011-03-01 19:08:19 +01:00
OSL_FAIL( "value missing" );
bSucc = false;
2001-02-19 09:59:04 +00:00
}
}
}
DBG_ASSERT( bSucc, "LoadConfig failed" );
return bSucc;
}
bool SvtSearchOptions_Impl::Save()
2001-02-19 09:59:04 +00:00
{
bool bSucc = false;
2001-02-19 09:59:04 +00:00
const Sequence< OUString > aNames = GetPropertyNames();
sal_Int32 nProps = aNames.getLength();
2001-02-19 09:59:04 +00:00
Sequence< Any > aValues( nProps );
Any *pValue = aValues.getArray();
DBG_ASSERT( nProps == MAX_FLAGS_OFFSET + 1,
"unexpected size of index" );
if (nProps && nProps == MAX_FLAGS_OFFSET + 1)
{
for (sal_Int32 i = 0; i < nProps; ++i)
pValue[i] <<= GetFlag(i);
2001-02-19 09:59:04 +00:00
bSucc |= PutProperties( aNames, aValues );
}
if (bSucc)
SetModified( false );
2001-02-19 09:59:04 +00:00
return bSucc;
}
SvtSearchOptions::SvtSearchOptions()
{
pImpl = new SvtSearchOptions_Impl;
}
SvtSearchOptions::~SvtSearchOptions()
{
delete pImpl;
}
void SvtSearchOptions::Commit()
{
pImpl->Commit();
}
sal_Int32 SvtSearchOptions::GetTransliterationFlags() const
2001-02-19 09:59:04 +00:00
{
sal_Int32 nRes = 0;
2001-02-19 09:59:04 +00:00
2001-06-12 12:43:09 +00:00
if (!IsMatchCase()) // 'IsMatchCase' means act case sensitive
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_IGNORE_CASE;
2001-06-12 12:43:09 +00:00
if ( IsMatchFullHalfWidthForms())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_IGNORE_WIDTH;
2001-06-12 12:43:09 +00:00
if ( IsMatchHiraganaKatakana())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_IGNORE_KANA;
2001-06-12 12:43:09 +00:00
if ( IsMatchContractions())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreSize_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchMinusDashChoon())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreMinusSign_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchRepeatCharMarks())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreIterationMark_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchVariantFormKanji())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreTraditionalKanji_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchOldKanaForms())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreTraditionalKana_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchDiziDuzu())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreZiZu_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchBavaHafa())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreBaFa_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchTsithichiDhizi())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreTiJi_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchHyuiyuByuvyu())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreHyuByu_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchSesheZeje())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreSeZe_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchIaiya())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreIandEfollowedByYa_ja_JP;
2001-06-12 12:43:09 +00:00
if ( IsMatchKiku())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreKiKuFollowedBySa_ja_JP;
2001-02-21 12:06:43 +00:00
if ( IsIgnorePunctuation())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreSeparator_ja_JP;
2001-02-21 12:06:43 +00:00
if ( IsIgnoreWhitespace())
2001-02-19 09:59:04 +00:00
nRes |= TransliterationModules_ignoreSpace_ja_JP;
2001-02-21 12:06:43 +00:00
if ( IsIgnoreProlongedSoundMark())
nRes |= TransliterationModules_ignoreProlongedSoundMark_ja_JP;
if ( IsIgnoreMiddleDot())
nRes |= TransliterationModules_ignoreMiddleDot_ja_JP;
if ( IsIgnoreDiacritics_CTL())
nRes |= TransliterationModulesExtra::IGNORE_DIACRITICS_CTL;
if ( IsIgnoreKashida_CTL())
nRes |= TransliterationModulesExtra::IGNORE_KASHIDA_CTL;
2001-02-19 09:59:04 +00:00
return nRes;
}
bool SvtSearchOptions::IsWholeWordsOnly() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 0 );
}
void SvtSearchOptions::SetWholeWordsOnly( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 0, bVal );
}
bool SvtSearchOptions::IsBackwards() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 1 );
}
void SvtSearchOptions::SetBackwards( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 1, bVal );
}
bool SvtSearchOptions::IsUseRegularExpression() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 2 );
}
void SvtSearchOptions::SetUseRegularExpression( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 2, bVal );
}
void SvtSearchOptions::SetSearchForStyles( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 3, bVal );
}
bool SvtSearchOptions::IsSimilaritySearch() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 4 );
}
void SvtSearchOptions::SetSimilaritySearch( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 4, bVal );
}
bool SvtSearchOptions::IsUseAsianOptions() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 5 );
}
void SvtSearchOptions::SetUseAsianOptions( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 5, bVal );
}
bool SvtSearchOptions::IsMatchCase() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 6 );
}
void SvtSearchOptions::SetMatchCase( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 6, bVal );
}
bool SvtSearchOptions::IsMatchFullHalfWidthForms() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 7 );
}
void SvtSearchOptions::SetMatchFullHalfWidthForms( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 7, bVal );
}
bool SvtSearchOptions::IsMatchHiraganaKatakana() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 8 );
}
void SvtSearchOptions::SetMatchHiraganaKatakana( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 8, bVal );
}
bool SvtSearchOptions::IsMatchContractions() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 9 );
}
void SvtSearchOptions::SetMatchContractions( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 9, bVal );
}
bool SvtSearchOptions::IsMatchMinusDashChoon() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 10 );
}
void SvtSearchOptions::SetMatchMinusDashChoon( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 10, bVal );
}
bool SvtSearchOptions::IsMatchRepeatCharMarks() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 11 );
}
void SvtSearchOptions::SetMatchRepeatCharMarks( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 11, bVal );
}
bool SvtSearchOptions::IsMatchVariantFormKanji() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 12 );
}
void SvtSearchOptions::SetMatchVariantFormKanji( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 12, bVal );
}
bool SvtSearchOptions::IsMatchOldKanaForms() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 13 );
}
void SvtSearchOptions::SetMatchOldKanaForms( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 13, bVal );
}
bool SvtSearchOptions::IsMatchDiziDuzu() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 14 );
}
void SvtSearchOptions::SetMatchDiziDuzu( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 14, bVal );
}
bool SvtSearchOptions::IsMatchBavaHafa() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 15 );
}
void SvtSearchOptions::SetMatchBavaHafa( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 15, bVal );
}
bool SvtSearchOptions::IsMatchTsithichiDhizi() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 16 );
}
void SvtSearchOptions::SetMatchTsithichiDhizi( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 16, bVal );
}
bool SvtSearchOptions::IsMatchHyuiyuByuvyu() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 17 );
}
void SvtSearchOptions::SetMatchHyuiyuByuvyu( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 17, bVal );
}
bool SvtSearchOptions::IsMatchSesheZeje() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 18 );
}
void SvtSearchOptions::SetMatchSesheZeje( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 18, bVal );
}
bool SvtSearchOptions::IsMatchIaiya() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 19 );
}
void SvtSearchOptions::SetMatchIaiya( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 19, bVal );
}
bool SvtSearchOptions::IsMatchKiku() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 20 );
}
void SvtSearchOptions::SetMatchKiku( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 20, bVal );
}
bool SvtSearchOptions::IsIgnorePunctuation() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 21 );
}
void SvtSearchOptions::SetIgnorePunctuation( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 21, bVal );
}
bool SvtSearchOptions::IsIgnoreWhitespace() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 22 );
}
void SvtSearchOptions::SetIgnoreWhitespace( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 22, bVal );
}
bool SvtSearchOptions::IsIgnoreProlongedSoundMark() const
2001-02-19 09:59:04 +00:00
{
return pImpl->GetFlag( 23 );
}
void SvtSearchOptions::SetIgnoreProlongedSoundMark( bool bVal )
2001-02-19 09:59:04 +00:00
{
pImpl->SetFlag( 23, bVal );
}
bool SvtSearchOptions::IsIgnoreMiddleDot() const
2001-02-21 12:06:43 +00:00
{
return pImpl->GetFlag( 24 );
}
void SvtSearchOptions::SetIgnoreMiddleDot( bool bVal )
2001-02-21 12:06:43 +00:00
{
pImpl->SetFlag( 24, bVal );
}
bool SvtSearchOptions::IsNotes() const
CWS-TOOLING: integrate CWS notes7 2008-12-29 19:45:08 +0100 mod r265824 : CWS-TOOLING: rebase CWS notes7 to trunk@265758 (milestone: DEV300:m38) 2008-12-16 14:54:42 +0100 mod r265544 : #i97239# 2008-12-16 14:53:18 +0100 mod r265543 : #i97239# 2008-12-16 13:36:43 +0100 mod r265537 : 96602 2008-12-13 13:02:54 +0100 mba r265452 : warning fixed 2008-12-13 08:20:21 +0100 mod r265448 : search inside notes 2008-12-13 00:11:47 +0100 mod r265447 : search inside notes 2008-12-13 00:11:09 +0100 mod r265446 : search inside notes 2008-12-13 00:10:52 +0100 mod r265445 : search inside notes 2008-12-12 19:39:14 +0100 mod r265439 : search inside notes 2008-12-12 19:02:44 +0100 mod r265438 : search inside notes 2008-12-12 16:42:07 +0100 mba r265431 : #i80135#: search in notes 2008-12-12 16:11:54 +0100 mba r265429 : #i80135#: search in notes 2008-12-12 16:11:02 +0100 mba r265428 : #i80135#: search in notes 2008-12-11 20:24:20 +0100 pb r265358 : fix: #i80135# fixes for aNotesBtn 2008-12-11 20:23:19 +0100 pb r265357 : fix: #i80135# fixes for aNotesBtn 2008-12-11 07:42:17 +0100 pb r265241 : fix: #i80135# CB_NOTES added 2008-12-11 07:40:36 +0100 pb r265240 : fix: #i80135# CB_NOTES added 2008-12-11 07:32:03 +0100 pb r265239 : fix: #i80135# CheckBox aNotesBtn added 2008-12-11 07:24:45 +0100 pb r265238 : fix: #i80135# CheckBox aNotesBtn added 2008-12-10 15:41:31 +0100 mod r265198 : crash using replies 2008-12-10 15:21:23 +0100 mod r265195 : crash using replies 2008-12-10 13:45:14 +0100 mba r265181 : warning fixed 2008-12-10 13:26:45 +0100 mba r265178 : warning fixed 2008-12-10 11:48:23 +0100 mba r265162 : fixed compilation error on Linux 2008-12-03 18:39:07 +0100 mod r264806 : we don't get the Ctrl-Alt-N on mac inside a note, let's do the whole reply thing using the shell, cleaner anyway 2008-12-03 17:13:59 +0100 mod r264802 : search dialog can be started and closed when focus is inside a note 2008-12-03 00:07:08 +0100 mod r264733 : search inside notes 2008-12-02 18:06:08 +0100 mod r264729 : WaE 2008-12-02 15:01:26 +0100 mod r264703 : WaE 2008-12-02 00:20:14 +0100 mod r264644 : WaE 2008-12-01 10:06:14 +0100 mod r264587 : WaE 2008-12-01 01:28:34 +0100 mod r264585 : WaE 2008-11-30 22:51:19 +0100 mod r264584 : search inside notes 2008-11-30 17:03:04 +0100 mod r264583 : search inside notes 2008-11-28 16:30:05 +0100 mod r264560 : #i96602# 2008-11-28 16:14:50 +0100 mod r264559 : test 2008-11-28 16:11:37 +0100 mod r264558 : test 2008-11-17 17:46:10 +0100 mod r263735 : WaE 2008-11-17 17:45:56 +0100 mod r263734 : WaE 2008-11-17 17:37:35 +0100 mod r263733 : revert manual fix for icu 2008-11-17 15:03:55 +0100 mod r263726 : manual fix for icu 2008-11-17 11:17:49 +0100 mod r263707 : manual fix for icu 2008-11-14 15:51:19 +0100 mod r263679 : fix 2008-11-14 14:48:02 +0100 mod r263676 : some more cleanup, redline comments not in the margin for 3.1 2008-11-14 08:37:07 +0100 mod r263664 : end of line missing 2008-11-13 18:36:53 +0100 mod r263660 : WaE 2008-11-13 18:20:04 +0100 mod r263659 : #i94374# 2008-11-13 15:51:28 +0100 mod r263648 : CWS-TOOLING: rebase CWS notes7 to trunk@263288 (milestone: DEV300:m35) 2008-11-13 08:33:19 +0100 mod r263622 : typos 2008-11-02 23:18:19 +0100 mod r263278 : changes notes, replies 2008-11-01 11:48:35 +0100 mod r262873 : replies, comments 2008-11-01 11:44:57 +0100 mod r262872 : notes search button 2008-10-10 14:34:34 +0200 mod r262150 : migration from cvs to svn 2008-10-10 14:33:39 +0200 mod r262149 : migration from cvs to svn
2009-01-02 15:51:45 +00:00
{
return pImpl->GetFlag( 25 );
CWS-TOOLING: integrate CWS notes7 2008-12-29 19:45:08 +0100 mod r265824 : CWS-TOOLING: rebase CWS notes7 to trunk@265758 (milestone: DEV300:m38) 2008-12-16 14:54:42 +0100 mod r265544 : #i97239# 2008-12-16 14:53:18 +0100 mod r265543 : #i97239# 2008-12-16 13:36:43 +0100 mod r265537 : 96602 2008-12-13 13:02:54 +0100 mba r265452 : warning fixed 2008-12-13 08:20:21 +0100 mod r265448 : search inside notes 2008-12-13 00:11:47 +0100 mod r265447 : search inside notes 2008-12-13 00:11:09 +0100 mod r265446 : search inside notes 2008-12-13 00:10:52 +0100 mod r265445 : search inside notes 2008-12-12 19:39:14 +0100 mod r265439 : search inside notes 2008-12-12 19:02:44 +0100 mod r265438 : search inside notes 2008-12-12 16:42:07 +0100 mba r265431 : #i80135#: search in notes 2008-12-12 16:11:54 +0100 mba r265429 : #i80135#: search in notes 2008-12-12 16:11:02 +0100 mba r265428 : #i80135#: search in notes 2008-12-11 20:24:20 +0100 pb r265358 : fix: #i80135# fixes for aNotesBtn 2008-12-11 20:23:19 +0100 pb r265357 : fix: #i80135# fixes for aNotesBtn 2008-12-11 07:42:17 +0100 pb r265241 : fix: #i80135# CB_NOTES added 2008-12-11 07:40:36 +0100 pb r265240 : fix: #i80135# CB_NOTES added 2008-12-11 07:32:03 +0100 pb r265239 : fix: #i80135# CheckBox aNotesBtn added 2008-12-11 07:24:45 +0100 pb r265238 : fix: #i80135# CheckBox aNotesBtn added 2008-12-10 15:41:31 +0100 mod r265198 : crash using replies 2008-12-10 15:21:23 +0100 mod r265195 : crash using replies 2008-12-10 13:45:14 +0100 mba r265181 : warning fixed 2008-12-10 13:26:45 +0100 mba r265178 : warning fixed 2008-12-10 11:48:23 +0100 mba r265162 : fixed compilation error on Linux 2008-12-03 18:39:07 +0100 mod r264806 : we don't get the Ctrl-Alt-N on mac inside a note, let's do the whole reply thing using the shell, cleaner anyway 2008-12-03 17:13:59 +0100 mod r264802 : search dialog can be started and closed when focus is inside a note 2008-12-03 00:07:08 +0100 mod r264733 : search inside notes 2008-12-02 18:06:08 +0100 mod r264729 : WaE 2008-12-02 15:01:26 +0100 mod r264703 : WaE 2008-12-02 00:20:14 +0100 mod r264644 : WaE 2008-12-01 10:06:14 +0100 mod r264587 : WaE 2008-12-01 01:28:34 +0100 mod r264585 : WaE 2008-11-30 22:51:19 +0100 mod r264584 : search inside notes 2008-11-30 17:03:04 +0100 mod r264583 : search inside notes 2008-11-28 16:30:05 +0100 mod r264560 : #i96602# 2008-11-28 16:14:50 +0100 mod r264559 : test 2008-11-28 16:11:37 +0100 mod r264558 : test 2008-11-17 17:46:10 +0100 mod r263735 : WaE 2008-11-17 17:45:56 +0100 mod r263734 : WaE 2008-11-17 17:37:35 +0100 mod r263733 : revert manual fix for icu 2008-11-17 15:03:55 +0100 mod r263726 : manual fix for icu 2008-11-17 11:17:49 +0100 mod r263707 : manual fix for icu 2008-11-14 15:51:19 +0100 mod r263679 : fix 2008-11-14 14:48:02 +0100 mod r263676 : some more cleanup, redline comments not in the margin for 3.1 2008-11-14 08:37:07 +0100 mod r263664 : end of line missing 2008-11-13 18:36:53 +0100 mod r263660 : WaE 2008-11-13 18:20:04 +0100 mod r263659 : #i94374# 2008-11-13 15:51:28 +0100 mod r263648 : CWS-TOOLING: rebase CWS notes7 to trunk@263288 (milestone: DEV300:m35) 2008-11-13 08:33:19 +0100 mod r263622 : typos 2008-11-02 23:18:19 +0100 mod r263278 : changes notes, replies 2008-11-01 11:48:35 +0100 mod r262873 : replies, comments 2008-11-01 11:44:57 +0100 mod r262872 : notes search button 2008-10-10 14:34:34 +0200 mod r262150 : migration from cvs to svn 2008-10-10 14:33:39 +0200 mod r262149 : migration from cvs to svn
2009-01-02 15:51:45 +00:00
}
void SvtSearchOptions::SetNotes( bool bVal )
CWS-TOOLING: integrate CWS notes7 2008-12-29 19:45:08 +0100 mod r265824 : CWS-TOOLING: rebase CWS notes7 to trunk@265758 (milestone: DEV300:m38) 2008-12-16 14:54:42 +0100 mod r265544 : #i97239# 2008-12-16 14:53:18 +0100 mod r265543 : #i97239# 2008-12-16 13:36:43 +0100 mod r265537 : 96602 2008-12-13 13:02:54 +0100 mba r265452 : warning fixed 2008-12-13 08:20:21 +0100 mod r265448 : search inside notes 2008-12-13 00:11:47 +0100 mod r265447 : search inside notes 2008-12-13 00:11:09 +0100 mod r265446 : search inside notes 2008-12-13 00:10:52 +0100 mod r265445 : search inside notes 2008-12-12 19:39:14 +0100 mod r265439 : search inside notes 2008-12-12 19:02:44 +0100 mod r265438 : search inside notes 2008-12-12 16:42:07 +0100 mba r265431 : #i80135#: search in notes 2008-12-12 16:11:54 +0100 mba r265429 : #i80135#: search in notes 2008-12-12 16:11:02 +0100 mba r265428 : #i80135#: search in notes 2008-12-11 20:24:20 +0100 pb r265358 : fix: #i80135# fixes for aNotesBtn 2008-12-11 20:23:19 +0100 pb r265357 : fix: #i80135# fixes for aNotesBtn 2008-12-11 07:42:17 +0100 pb r265241 : fix: #i80135# CB_NOTES added 2008-12-11 07:40:36 +0100 pb r265240 : fix: #i80135# CB_NOTES added 2008-12-11 07:32:03 +0100 pb r265239 : fix: #i80135# CheckBox aNotesBtn added 2008-12-11 07:24:45 +0100 pb r265238 : fix: #i80135# CheckBox aNotesBtn added 2008-12-10 15:41:31 +0100 mod r265198 : crash using replies 2008-12-10 15:21:23 +0100 mod r265195 : crash using replies 2008-12-10 13:45:14 +0100 mba r265181 : warning fixed 2008-12-10 13:26:45 +0100 mba r265178 : warning fixed 2008-12-10 11:48:23 +0100 mba r265162 : fixed compilation error on Linux 2008-12-03 18:39:07 +0100 mod r264806 : we don't get the Ctrl-Alt-N on mac inside a note, let's do the whole reply thing using the shell, cleaner anyway 2008-12-03 17:13:59 +0100 mod r264802 : search dialog can be started and closed when focus is inside a note 2008-12-03 00:07:08 +0100 mod r264733 : search inside notes 2008-12-02 18:06:08 +0100 mod r264729 : WaE 2008-12-02 15:01:26 +0100 mod r264703 : WaE 2008-12-02 00:20:14 +0100 mod r264644 : WaE 2008-12-01 10:06:14 +0100 mod r264587 : WaE 2008-12-01 01:28:34 +0100 mod r264585 : WaE 2008-11-30 22:51:19 +0100 mod r264584 : search inside notes 2008-11-30 17:03:04 +0100 mod r264583 : search inside notes 2008-11-28 16:30:05 +0100 mod r264560 : #i96602# 2008-11-28 16:14:50 +0100 mod r264559 : test 2008-11-28 16:11:37 +0100 mod r264558 : test 2008-11-17 17:46:10 +0100 mod r263735 : WaE 2008-11-17 17:45:56 +0100 mod r263734 : WaE 2008-11-17 17:37:35 +0100 mod r263733 : revert manual fix for icu 2008-11-17 15:03:55 +0100 mod r263726 : manual fix for icu 2008-11-17 11:17:49 +0100 mod r263707 : manual fix for icu 2008-11-14 15:51:19 +0100 mod r263679 : fix 2008-11-14 14:48:02 +0100 mod r263676 : some more cleanup, redline comments not in the margin for 3.1 2008-11-14 08:37:07 +0100 mod r263664 : end of line missing 2008-11-13 18:36:53 +0100 mod r263660 : WaE 2008-11-13 18:20:04 +0100 mod r263659 : #i94374# 2008-11-13 15:51:28 +0100 mod r263648 : CWS-TOOLING: rebase CWS notes7 to trunk@263288 (milestone: DEV300:m35) 2008-11-13 08:33:19 +0100 mod r263622 : typos 2008-11-02 23:18:19 +0100 mod r263278 : changes notes, replies 2008-11-01 11:48:35 +0100 mod r262873 : replies, comments 2008-11-01 11:44:57 +0100 mod r262872 : notes search button 2008-10-10 14:34:34 +0200 mod r262150 : migration from cvs to svn 2008-10-10 14:33:39 +0200 mod r262149 : migration from cvs to svn
2009-01-02 15:51:45 +00:00
{
pImpl->SetFlag( 25, bVal );
CWS-TOOLING: integrate CWS notes7 2008-12-29 19:45:08 +0100 mod r265824 : CWS-TOOLING: rebase CWS notes7 to trunk@265758 (milestone: DEV300:m38) 2008-12-16 14:54:42 +0100 mod r265544 : #i97239# 2008-12-16 14:53:18 +0100 mod r265543 : #i97239# 2008-12-16 13:36:43 +0100 mod r265537 : 96602 2008-12-13 13:02:54 +0100 mba r265452 : warning fixed 2008-12-13 08:20:21 +0100 mod r265448 : search inside notes 2008-12-13 00:11:47 +0100 mod r265447 : search inside notes 2008-12-13 00:11:09 +0100 mod r265446 : search inside notes 2008-12-13 00:10:52 +0100 mod r265445 : search inside notes 2008-12-12 19:39:14 +0100 mod r265439 : search inside notes 2008-12-12 19:02:44 +0100 mod r265438 : search inside notes 2008-12-12 16:42:07 +0100 mba r265431 : #i80135#: search in notes 2008-12-12 16:11:54 +0100 mba r265429 : #i80135#: search in notes 2008-12-12 16:11:02 +0100 mba r265428 : #i80135#: search in notes 2008-12-11 20:24:20 +0100 pb r265358 : fix: #i80135# fixes for aNotesBtn 2008-12-11 20:23:19 +0100 pb r265357 : fix: #i80135# fixes for aNotesBtn 2008-12-11 07:42:17 +0100 pb r265241 : fix: #i80135# CB_NOTES added 2008-12-11 07:40:36 +0100 pb r265240 : fix: #i80135# CB_NOTES added 2008-12-11 07:32:03 +0100 pb r265239 : fix: #i80135# CheckBox aNotesBtn added 2008-12-11 07:24:45 +0100 pb r265238 : fix: #i80135# CheckBox aNotesBtn added 2008-12-10 15:41:31 +0100 mod r265198 : crash using replies 2008-12-10 15:21:23 +0100 mod r265195 : crash using replies 2008-12-10 13:45:14 +0100 mba r265181 : warning fixed 2008-12-10 13:26:45 +0100 mba r265178 : warning fixed 2008-12-10 11:48:23 +0100 mba r265162 : fixed compilation error on Linux 2008-12-03 18:39:07 +0100 mod r264806 : we don't get the Ctrl-Alt-N on mac inside a note, let's do the whole reply thing using the shell, cleaner anyway 2008-12-03 17:13:59 +0100 mod r264802 : search dialog can be started and closed when focus is inside a note 2008-12-03 00:07:08 +0100 mod r264733 : search inside notes 2008-12-02 18:06:08 +0100 mod r264729 : WaE 2008-12-02 15:01:26 +0100 mod r264703 : WaE 2008-12-02 00:20:14 +0100 mod r264644 : WaE 2008-12-01 10:06:14 +0100 mod r264587 : WaE 2008-12-01 01:28:34 +0100 mod r264585 : WaE 2008-11-30 22:51:19 +0100 mod r264584 : search inside notes 2008-11-30 17:03:04 +0100 mod r264583 : search inside notes 2008-11-28 16:30:05 +0100 mod r264560 : #i96602# 2008-11-28 16:14:50 +0100 mod r264559 : test 2008-11-28 16:11:37 +0100 mod r264558 : test 2008-11-17 17:46:10 +0100 mod r263735 : WaE 2008-11-17 17:45:56 +0100 mod r263734 : WaE 2008-11-17 17:37:35 +0100 mod r263733 : revert manual fix for icu 2008-11-17 15:03:55 +0100 mod r263726 : manual fix for icu 2008-11-17 11:17:49 +0100 mod r263707 : manual fix for icu 2008-11-14 15:51:19 +0100 mod r263679 : fix 2008-11-14 14:48:02 +0100 mod r263676 : some more cleanup, redline comments not in the margin for 3.1 2008-11-14 08:37:07 +0100 mod r263664 : end of line missing 2008-11-13 18:36:53 +0100 mod r263660 : WaE 2008-11-13 18:20:04 +0100 mod r263659 : #i94374# 2008-11-13 15:51:28 +0100 mod r263648 : CWS-TOOLING: rebase CWS notes7 to trunk@263288 (milestone: DEV300:m35) 2008-11-13 08:33:19 +0100 mod r263622 : typos 2008-11-02 23:18:19 +0100 mod r263278 : changes notes, replies 2008-11-01 11:48:35 +0100 mod r262873 : replies, comments 2008-11-01 11:44:57 +0100 mod r262872 : notes search button 2008-10-10 14:34:34 +0200 mod r262150 : migration from cvs to svn 2008-10-10 14:33:39 +0200 mod r262149 : migration from cvs to svn
2009-01-02 15:51:45 +00:00
}
2001-02-21 12:06:43 +00:00
bool SvtSearchOptions::IsIgnoreDiacritics_CTL() const
{
return pImpl->GetFlag( 26 );
}
void SvtSearchOptions::SetIgnoreDiacritics_CTL( bool bVal )
{
pImpl->SetFlag( 26, bVal );
}
bool SvtSearchOptions::IsIgnoreKashida_CTL() const
{
return pImpl->GetFlag( 27 );
}
void SvtSearchOptions::SetIgnoreKashida_CTL( bool bVal )
{
pImpl->SetFlag( 27, bVal );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */