Line data Source code
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 <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>
34 :
35 : #include "cuisrchdlg.hxx"
36 :
37 : #include <cuires.hrc>
38 :
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"
46 :
47 :
48 : // class SvxJSearchOptionsDialog -----------------------------------------
49 :
50 0 : SvxJSearchOptionsDialog::SvxJSearchOptionsDialog(Window *pParent,
51 : const SfxItemSet& rOptionsSet, sal_Int32 nInitialFlags)
52 : : SfxSingleTabDialog(pParent, rOptionsSet)
53 0 : , nInitialTlFlags( nInitialFlags )
54 : {
55 : // pPage will be implicitly destroyed by the
56 : // SfxSingleTabDialog destructor
57 : pPage = (SvxJSearchOptionsPage *)
58 0 : SvxJSearchOptionsPage::Create(get_content_area(), rOptionsSet );
59 0 : SetTabPage( pPage ); //! implicitly calls pPage->Reset(...)!
60 0 : pPage->EnableSaveOptions(false);
61 0 : }
62 :
63 0 : void SvxJSearchOptionsDialog::Activate()
64 : {
65 0 : pPage->SetTransliterationFlags( nInitialTlFlags );
66 0 : }
67 :
68 0 : sal_Int32 SvxJSearchOptionsDialog::GetTransliterationFlags() const
69 : {
70 0 : return pPage->GetTransliterationFlags();
71 0 : }
72 :
73 :
74 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|