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/brshitem.hxx>
45 : #include "backgrnd.hxx"
46 :
47 :
48 : // class SvxJSearchOptionsDialog -----------------------------------------
49 :
50 0 : SvxJSearchOptionsDialog::SvxJSearchOptionsDialog(
51 : Window *pParent,
52 : const SfxItemSet& rOptionsSet, sal_Int32 nInitialFlags ) :
53 : SfxSingleTabDialog ( pParent, rOptionsSet, RID_SVXPAGE_JSEARCH_OPTIONS ),
54 0 : nInitialTlFlags( nInitialFlags )
55 : {
56 : pPage = (SvxJSearchOptionsPage *)
57 0 : SvxJSearchOptionsPage::Create( this, rOptionsSet );
58 0 : SetTabPage( pPage ); //! implicitly calls pPage->Reset(...)!
59 0 : pPage->EnableSaveOptions( sal_False );
60 0 : }
61 :
62 :
63 0 : SvxJSearchOptionsDialog::~SvxJSearchOptionsDialog()
64 : {
65 : // pPage will be implicitly destroyed by the
66 : // SfxSingleTabDialog destructor
67 0 : }
68 :
69 :
70 0 : void SvxJSearchOptionsDialog::Activate()
71 : {
72 0 : pPage->SetTransliterationFlags( nInitialTlFlags );
73 0 : }
74 :
75 :
76 0 : sal_Int32 SvxJSearchOptionsDialog::GetTransliterationFlags() const
77 : {
78 0 : return pPage->GetTransliterationFlags();
79 3 : }
80 :
81 :
82 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|