LibreOffice Module cui (master)  1
cuisrchdlg.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 <svl/slstitm.hxx>
21 #include <svl/itemiter.hxx>
22 #include <svl/style.hxx>
23 #include <unotools/searchopt.hxx>
24 #include <sfx2/dispatch.hxx>
25 #include <sfx2/objsh.hxx>
26 #include <sfx2/module.hxx>
27 #include <sfx2/viewsh.hxx>
28 #include <sfx2/basedlgs.hxx>
29 #include <svl/cjkoptions.hxx>
30 
31 #include <cuisrchdlg.hxx>
32 
33 #include <svl/srchitem.hxx>
34 #include <svx/pageitem.hxx>
35 #include <svx/dlgutil.hxx>
36 #include "optjsearch.hxx"
37 #include <editeng/brushitem.hxx>
38 #include <backgrnd.hxx>
39 
40 
41 // class SvxJSearchOptionsDialog -----------------------------------------
42 
44  const SfxItemSet& rOptionsSet, TransliterationFlags nInitialFlags)
45  : SfxSingleTabDialogController(pParent, &rOptionsSet)
46 {
47  // m_xPage will be implicitly destroyed by the
48  // SfxSingleTabDialog destructor
49  TabPageParent pPageParent(get_content_area(), this);
50  m_xPage.reset(static_cast<SvxJSearchOptionsPage*>(
52  pPageParent, &rOptionsSet).get()));
54  m_xPage->EnableSaveOptions(false);
55  m_xPage->SetTransliterationFlags(nInitialFlags);
56 }
57 
59 {
60  m_xPage.clear();
61 }
62 
64 {
66 }
67 
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclPtr< SvxJSearchOptionsPage > m_xPage
Definition: cuisrchdlg.hxx:29
weld::Container * get_content_area()
void SetTabPage(SfxTabPage *pTabPage)
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rSet)
Definition: optjsearch.cxx:59
TransliterationFlags
void clear()
SvxJSearchOptionsDialog(const SvxJSearchOptionsDialog &)=delete
void SetTransliterationFlags(TransliterationFlags nSettings)
Definition: optjsearch.cxx:64
void reset(reference_type *pBody)
virtual ~SvxJSearchOptionsDialog() override
Definition: cuisrchdlg.cxx:58
TransliterationFlags GetTransliterationFlags() const
Definition: optjsearch.hxx:68
TransliterationFlags GetTransliterationFlags() const
Definition: cuisrchdlg.cxx:63
void EnableSaveOptions(bool bVal)
Definition: optjsearch.hxx:66