bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / options / cuisrchdlg.cxx
blobbff4d1a74c8e54439205ac372cee957636027a53
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 #include <vcl/wrkwin.hxx>
21 #include <vcl/morebtn.hxx>
22 #include <vcl/msgbox.hxx>
23 #include <svl/slstitm.hxx>
24 #include <svl/itemiter.hxx>
25 #include <svl/style.hxx>
26 #include <unotools/searchopt.hxx>
27 #include <sfx2/dispatch.hxx>
28 #include <sfx2/objsh.hxx>
29 #include <sfx2/module.hxx>
30 #include <sfx2/viewsh.hxx>
31 #include <sfx2/basedlgs.hxx>
32 #include <svl/cjkoptions.hxx>
33 #include <com/sun/star/i18n/TransliterationModules.hpp>
35 #include "cuisrchdlg.hxx"
37 #include <cuires.hrc>
39 #include <svl/srchitem.hxx>
40 #include <svx/pageitem.hxx>
41 #include <dialmgr.hxx>
42 #include <svx/dlgutil.hxx>
43 #include <optjsearch.hxx>
44 #include <editeng/brushitem.hxx>
45 #include "backgrnd.hxx"
48 // class SvxJSearchOptionsDialog -----------------------------------------
50 SvxJSearchOptionsDialog::SvxJSearchOptionsDialog(vcl::Window *pParent,
51 const SfxItemSet& rOptionsSet, sal_Int32 nInitialFlags)
52 : SfxSingleTabDialog(pParent, rOptionsSet)
53 , nInitialTlFlags( nInitialFlags )
55 // pPage will be implicitly destroyed by the
56 // SfxSingleTabDialog destructor
57 pPage.reset( static_cast<SvxJSearchOptionsPage *>(
58 SvxJSearchOptionsPage::Create(
59 get_content_area(), &rOptionsSet ).get() ) );
60 SetTabPage( pPage ); //! implicitly calls pPage->Reset(...)!
61 pPage->EnableSaveOptions(false);
64 SvxJSearchOptionsDialog::~SvxJSearchOptionsDialog()
66 disposeOnce();
69 void SvxJSearchOptionsDialog::dispose()
71 pPage.clear();
72 SfxSingleTabDialog::dispose();
75 void SvxJSearchOptionsDialog::Activate()
77 pPage->SetTransliterationFlags( nInitialTlFlags );
80 sal_Int32 SvxJSearchOptionsDialog::GetTransliterationFlags() const
82 return pPage->GetTransliterationFlags();
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */