1*2ee96f1cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*2ee96f1cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*2ee96f1cSAndrew Rist * or more contributor license agreements. See the NOTICE file
5*2ee96f1cSAndrew Rist * distributed with this work for additional information
6*2ee96f1cSAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*2ee96f1cSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*2ee96f1cSAndrew Rist * "License"); you may not use this file except in compliance
9*2ee96f1cSAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*2ee96f1cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*2ee96f1cSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*2ee96f1cSAndrew Rist * software distributed under the License is distributed on an
15*2ee96f1cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2ee96f1cSAndrew Rist * KIND, either express or implied. See the License for the
17*2ee96f1cSAndrew Rist * specific language governing permissions and limitations
18*2ee96f1cSAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*2ee96f1cSAndrew Rist *************************************************************/
21*2ee96f1cSAndrew Rist
22*2ee96f1cSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_cui.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir // include ---------------------------------------------------------------
28cdf0e10cSrcweir #include <vcl/wrkwin.hxx>
29cdf0e10cSrcweir #include <vcl/morebtn.hxx>
30cdf0e10cSrcweir #include <vcl/msgbox.hxx>
31cdf0e10cSrcweir #include <svl/slstitm.hxx>
32cdf0e10cSrcweir #include <svl/itemiter.hxx>
33cdf0e10cSrcweir #include <svl/style.hxx>
34cdf0e10cSrcweir #include <unotools/searchopt.hxx>
35cdf0e10cSrcweir #include <sfx2/dispatch.hxx>
36cdf0e10cSrcweir #include <sfx2/objsh.hxx>
37cdf0e10cSrcweir #include <sfx2/module.hxx>
38cdf0e10cSrcweir #include <sfx2/viewsh.hxx>
39cdf0e10cSrcweir #include <sfx2/basedlgs.hxx>
40cdf0e10cSrcweir #include <svl/cjkoptions.hxx>
41cdf0e10cSrcweir #include <com/sun/star/i18n/TransliterationModules.hpp>
42cdf0e10cSrcweir
43cdf0e10cSrcweir #define _CUI_SRCHDLG_CXX
44cdf0e10cSrcweir #include "cuisrchdlg.hxx"
45cdf0e10cSrcweir
46cdf0e10cSrcweir #include <cuires.hrc>
47cdf0e10cSrcweir
48cdf0e10cSrcweir #define ITEMID_SETITEM 0
49cdf0e10cSrcweir
50cdf0e10cSrcweir #include <svl/srchitem.hxx>
51cdf0e10cSrcweir #include <svx/pageitem.hxx>
52cdf0e10cSrcweir #include <dialmgr.hxx>
53cdf0e10cSrcweir #include <svx/dlgutil.hxx>
54cdf0e10cSrcweir #include <optjsearch.hxx>
55cdf0e10cSrcweir #include <editeng/brshitem.hxx>
56cdf0e10cSrcweir #include "backgrnd.hxx"
57cdf0e10cSrcweir
58cdf0e10cSrcweir
59cdf0e10cSrcweir // class SvxJSearchOptionsDialog -----------------------------------------
60cdf0e10cSrcweir
SvxJSearchOptionsDialog(Window * pParent,const SfxItemSet & rOptionsSet,sal_Int32 nInitialFlags)61cdf0e10cSrcweir SvxJSearchOptionsDialog::SvxJSearchOptionsDialog(
62cdf0e10cSrcweir Window *pParent,
63cdf0e10cSrcweir const SfxItemSet& rOptionsSet, sal_Int32 nInitialFlags ) :
64cdf0e10cSrcweir SfxSingleTabDialog ( pParent, rOptionsSet, RID_SVXPAGE_JSEARCH_OPTIONS ),
65cdf0e10cSrcweir nInitialTlFlags( nInitialFlags )
66cdf0e10cSrcweir {
67cdf0e10cSrcweir pPage = (SvxJSearchOptionsPage *)
68cdf0e10cSrcweir SvxJSearchOptionsPage::Create( this, rOptionsSet );
69cdf0e10cSrcweir SetTabPage( pPage ); //! implicitly calls pPage->Reset(...)!
70cdf0e10cSrcweir pPage->EnableSaveOptions( sal_False );
71cdf0e10cSrcweir }
72cdf0e10cSrcweir
73cdf0e10cSrcweir
~SvxJSearchOptionsDialog()74cdf0e10cSrcweir SvxJSearchOptionsDialog::~SvxJSearchOptionsDialog()
75cdf0e10cSrcweir {
76cdf0e10cSrcweir // pPage will be implicitly destroyed by the
77cdf0e10cSrcweir // SfxSingleTabDialog destructor
78cdf0e10cSrcweir }
79cdf0e10cSrcweir
80cdf0e10cSrcweir
Activate()81cdf0e10cSrcweir void SvxJSearchOptionsDialog::Activate()
82cdf0e10cSrcweir {
83cdf0e10cSrcweir pPage->SetTransliterationFlags( nInitialTlFlags );
84cdf0e10cSrcweir }
85cdf0e10cSrcweir
86cdf0e10cSrcweir
GetTransliterationFlags() const87cdf0e10cSrcweir sal_Int32 SvxJSearchOptionsDialog::GetTransliterationFlags() const
88cdf0e10cSrcweir {
89cdf0e10cSrcweir return pPage->GetTransliterationFlags();
90cdf0e10cSrcweir }
91