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