Use correct object
[LibreOffice.git] / cui / source / options / optjsearch.hxx
blob96b7d73f1f11c7acf7378e23706cc519aa170863
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <i18nutil/transliteration.hxx>
23 #include <sfx2/tabdlg.hxx>
24 #include <vcl/weld.hxx>
26 class SfxItemSet;
28 class SvxJSearchOptionsPage : public SfxTabPage
30 private:
31 std::unique_ptr<weld::CheckButton> m_xMatchCase;
32 std::unique_ptr<weld::CheckButton> m_xMatchFullHalfWidth;
33 std::unique_ptr<weld::CheckButton> m_xMatchHiraganaKatakana;
34 std::unique_ptr<weld::CheckButton> m_xMatchContractions;
35 std::unique_ptr<weld::CheckButton> m_xMatchMinusDashChoon;
36 std::unique_ptr<weld::CheckButton> m_xMatchRepeatCharMarks;
37 std::unique_ptr<weld::CheckButton> m_xMatchVariantFormKanji;
38 std::unique_ptr<weld::CheckButton> m_xMatchOldKanaForms;
39 std::unique_ptr<weld::CheckButton> m_xMatchDiziDuzu;
40 std::unique_ptr<weld::CheckButton> m_xMatchBavaHafa;
41 std::unique_ptr<weld::CheckButton> m_xMatchTsithichiDhizi;
42 std::unique_ptr<weld::CheckButton> m_xMatchHyuiyuByuvyu;
43 std::unique_ptr<weld::CheckButton> m_xMatchSesheZeje;
44 std::unique_ptr<weld::CheckButton> m_xMatchIaiya;
45 std::unique_ptr<weld::CheckButton> m_xMatchKiku;
46 std::unique_ptr<weld::CheckButton> m_xMatchProlongedSoundMark;
48 std::unique_ptr<weld::CheckButton> m_xIgnorePunctuation;
49 std::unique_ptr<weld::CheckButton> m_xIgnoreWhitespace;
50 std::unique_ptr<weld::CheckButton> m_xIgnoreMiddleDot;
52 TransliterationFlags nTransliterationFlags;
53 bool bSaveOptions;
55 TransliterationFlags GetTransliterationFlags_Impl();
57 public:
58 SvxJSearchOptionsPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
59 virtual ~SvxJSearchOptionsPage() override;
60 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet);
62 virtual OUString GetAllStrings() override;
64 virtual void Reset( const SfxItemSet* rSet ) override;
65 virtual bool FillItemSet( SfxItemSet* rSet ) override;
67 void EnableSaveOptions( bool bVal ) { bSaveOptions = bVal; }
69 TransliterationFlags GetTransliterationFlags() const { return nTransliterationFlags; }
70 void SetTransliterationFlags( TransliterationFlags nSettings );
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */