1*b1cdbd2cSJim Jagielski /**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski // MARKER(update_precomp.py): autogen include statement, do not remove
25*b1cdbd2cSJim Jagielski #include "precompiled_sw.hxx"
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski #include <hintids.hxx>
29*b1cdbd2cSJim Jagielski #ifndef _HELPID_H
30*b1cdbd2cSJim Jagielski #include <helpid.h>
31*b1cdbd2cSJim Jagielski #endif
32*b1cdbd2cSJim Jagielski #define _SVSTDARR_STRINGSSORT
33*b1cdbd2cSJim Jagielski #include <svl/svstdarr.hxx>
34*b1cdbd2cSJim Jagielski #include <comphelper/processfactory.hxx>
35*b1cdbd2cSJim Jagielski #include <com/sun/star/lang/XMultiServiceFactory.hpp>
36*b1cdbd2cSJim Jagielski #include <com/sun/star/beans/PropertyValue.hpp>
37*b1cdbd2cSJim Jagielski #include <com/sun/star/beans/XPropertySet.hpp>
38*b1cdbd2cSJim Jagielski #include <com/sun/star/util/SearchOptions.hpp>
39*b1cdbd2cSJim Jagielski #include <com/sun/star/util/SearchFlags.hpp>
40*b1cdbd2cSJim Jagielski #include <com/sun/star/i18n/TransliterationModules.hpp>
41*b1cdbd2cSJim Jagielski #include <svl/stritem.hxx>
42*b1cdbd2cSJim Jagielski #ifndef _MSGBOX_HXX //autogen
43*b1cdbd2cSJim Jagielski #include <vcl/msgbox.hxx>
44*b1cdbd2cSJim Jagielski #endif
45*b1cdbd2cSJim Jagielski #include <sfx2/dispatch.hxx>
46*b1cdbd2cSJim Jagielski #include <svl/eitem.hxx>
47*b1cdbd2cSJim Jagielski #include <svtools/txtcmp.hxx>
48*b1cdbd2cSJim Jagielski #include <editeng/scripttypeitem.hxx>
49*b1cdbd2cSJim Jagielski #include <svl/itemset.hxx>
50*b1cdbd2cSJim Jagielski #include <editeng/langitem.hxx>
51*b1cdbd2cSJim Jagielski #include <swtypes.hxx>
52*b1cdbd2cSJim Jagielski #include <idxmrk.hxx>
53*b1cdbd2cSJim Jagielski #include <txttxmrk.hxx>
54*b1cdbd2cSJim Jagielski #include <wrtsh.hxx>
55*b1cdbd2cSJim Jagielski #ifndef _VIEW_HXX
56*b1cdbd2cSJim Jagielski #include <view.hxx>
57*b1cdbd2cSJim Jagielski #endif
58*b1cdbd2cSJim Jagielski #include <multmrk.hxx>
59*b1cdbd2cSJim Jagielski #include <swundo.hxx> // fuer Undo-Ids
60*b1cdbd2cSJim Jagielski #ifndef _CMDID_H
61*b1cdbd2cSJim Jagielski #include <cmdid.h>
62*b1cdbd2cSJim Jagielski #endif
63*b1cdbd2cSJim Jagielski #ifndef _INDEX_HRC
64*b1cdbd2cSJim Jagielski #include <index.hrc>
65*b1cdbd2cSJim Jagielski #endif
66*b1cdbd2cSJim Jagielski #ifndef _IDXMRK_HRC
67*b1cdbd2cSJim Jagielski #include <idxmrk.hrc>
68*b1cdbd2cSJim Jagielski #endif
69*b1cdbd2cSJim Jagielski #include <swmodule.hxx>
70*b1cdbd2cSJim Jagielski #include <fldmgr.hxx>
71*b1cdbd2cSJim Jagielski #include <fldbas.hxx>
72*b1cdbd2cSJim Jagielski #include <utlui.hrc>
73*b1cdbd2cSJim Jagielski #include <swcont.hxx>
74*b1cdbd2cSJim Jagielski #include <svl/cjkoptions.hxx>
75*b1cdbd2cSJim Jagielski #include <ndtxt.hxx>
76*b1cdbd2cSJim Jagielski #include <breakit.hxx>
77*b1cdbd2cSJim Jagielski
78*b1cdbd2cSJim Jagielski
79*b1cdbd2cSJim Jagielski /* -----------------07.09.99 08:15-------------------
80*b1cdbd2cSJim Jagielski
81*b1cdbd2cSJim Jagielski --------------------------------------------------*/
SFX_IMPL_CHILDWINDOW(SwInsertIdxMarkWrapper,FN_INSERT_IDX_ENTRY_DLG)82*b1cdbd2cSJim Jagielski SFX_IMPL_CHILDWINDOW(SwInsertIdxMarkWrapper, FN_INSERT_IDX_ENTRY_DLG)
83*b1cdbd2cSJim Jagielski
84*b1cdbd2cSJim Jagielski SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( Window *pParentWindow,
85*b1cdbd2cSJim Jagielski sal_uInt16 nId,
86*b1cdbd2cSJim Jagielski SfxBindings* pBindings,
87*b1cdbd2cSJim Jagielski SfxChildWinInfo* pInfo ) :
88*b1cdbd2cSJim Jagielski SfxChildWindow(pParentWindow, nId)
89*b1cdbd2cSJim Jagielski {
90*b1cdbd2cSJim Jagielski SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
91*b1cdbd2cSJim Jagielski DBG_ASSERT(pFact, "SwAbstractDialogFactory fail!");
92*b1cdbd2cSJim Jagielski pAbstDlg = pFact->CreateIndexMarkFloatDlg( DLG_INSIDXMARK , pBindings, this, pParentWindow, pInfo );
93*b1cdbd2cSJim Jagielski DBG_ASSERT(pAbstDlg, "Dialogdiet fail!");
94*b1cdbd2cSJim Jagielski pWindow = pAbstDlg->GetWindow();
95*b1cdbd2cSJim Jagielski pWindow->Show(); // at this point,because before pSh has to be initialized in ReInitDlg()
96*b1cdbd2cSJim Jagielski // -> Show() will invoke StateChanged() and save pos
97*b1cdbd2cSJim Jagielski eChildAlignment = SFX_ALIGN_NOALIGNMENT;
98*b1cdbd2cSJim Jagielski }
99*b1cdbd2cSJim Jagielski /* -----------------07.09.99 09:14-------------------
100*b1cdbd2cSJim Jagielski
101*b1cdbd2cSJim Jagielski --------------------------------------------------*/
GetInfo() const102*b1cdbd2cSJim Jagielski SfxChildWinInfo SwInsertIdxMarkWrapper::GetInfo() const
103*b1cdbd2cSJim Jagielski {
104*b1cdbd2cSJim Jagielski SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
105*b1cdbd2cSJim Jagielski
106*b1cdbd2cSJim Jagielski return aInfo;
107*b1cdbd2cSJim Jagielski }
108*b1cdbd2cSJim Jagielski
ReInitDlg(SwWrtShell & rWrtShell)109*b1cdbd2cSJim Jagielski void SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
110*b1cdbd2cSJim Jagielski {
111*b1cdbd2cSJim Jagielski pAbstDlg->ReInitDlg(rWrtShell);
112*b1cdbd2cSJim Jagielski }
113*b1cdbd2cSJim Jagielski
114*b1cdbd2cSJim Jagielski
115*b1cdbd2cSJim Jagielski /* -----------------07.09.99 08:15-------------------
116*b1cdbd2cSJim Jagielski
117*b1cdbd2cSJim Jagielski --------------------------------------------------*/
SFX_IMPL_CHILDWINDOW(SwInsertAuthMarkWrapper,FN_INSERT_AUTH_ENTRY_DLG)118*b1cdbd2cSJim Jagielski SFX_IMPL_CHILDWINDOW(SwInsertAuthMarkWrapper, FN_INSERT_AUTH_ENTRY_DLG)
119*b1cdbd2cSJim Jagielski
120*b1cdbd2cSJim Jagielski SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper( Window *pParentWindow,
121*b1cdbd2cSJim Jagielski sal_uInt16 nId,
122*b1cdbd2cSJim Jagielski SfxBindings* pBindings,
123*b1cdbd2cSJim Jagielski SfxChildWinInfo* pInfo ) :
124*b1cdbd2cSJim Jagielski SfxChildWindow(pParentWindow, nId)
125*b1cdbd2cSJim Jagielski {
126*b1cdbd2cSJim Jagielski SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
127*b1cdbd2cSJim Jagielski DBG_ASSERT(pFact, "SwAbstractDialogFactory fail!");
128*b1cdbd2cSJim Jagielski pAbstDlg = pFact->CreateAuthMarkFloatDlg( DLG_INSAUTHMARK, pBindings, this, pParentWindow, pInfo );
129*b1cdbd2cSJim Jagielski DBG_ASSERT(pAbstDlg, "Dialogdiet fail!");
130*b1cdbd2cSJim Jagielski pWindow = pAbstDlg->GetWindow();
131*b1cdbd2cSJim Jagielski
132*b1cdbd2cSJim Jagielski eChildAlignment = SFX_ALIGN_NOALIGNMENT;
133*b1cdbd2cSJim Jagielski }
134*b1cdbd2cSJim Jagielski /* -----------------07.09.99 09:14-------------------
135*b1cdbd2cSJim Jagielski
136*b1cdbd2cSJim Jagielski --------------------------------------------------*/
GetInfo() const137*b1cdbd2cSJim Jagielski SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
138*b1cdbd2cSJim Jagielski {
139*b1cdbd2cSJim Jagielski SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
140*b1cdbd2cSJim Jagielski return aInfo;
141*b1cdbd2cSJim Jagielski }
142*b1cdbd2cSJim Jagielski /* -----------------19.10.99 11:16-------------------
143*b1cdbd2cSJim Jagielski
144*b1cdbd2cSJim Jagielski --------------------------------------------------*/
ReInitDlg(SwWrtShell & rWrtShell)145*b1cdbd2cSJim Jagielski void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
146*b1cdbd2cSJim Jagielski {
147*b1cdbd2cSJim Jagielski pAbstDlg->ReInitDlg(rWrtShell);
148*b1cdbd2cSJim Jagielski }
149*b1cdbd2cSJim Jagielski
150