1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <hintids.hxx>
22 #include <comphelper/processfactory.hxx>
23 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
24 #include <com/sun/star/beans/PropertyValue.hpp>
25 #include <com/sun/star/beans/XPropertySet.hpp>
26 #include <com/sun/star/util/SearchOptions.hpp>
27 #include <com/sun/star/util/SearchFlags.hpp>
28 #include <com/sun/star/i18n/TransliterationModules.hpp>
29 #include <svl/stritem.hxx>
30 #include <vcl/msgbox.hxx>
31 #include <sfx2/dispatch.hxx>
32 #include <svl/eitem.hxx>
33 #include <unotools/textsearch.hxx>
34 #include <editeng/scripttypeitem.hxx>
35 #include <svl/itemset.hxx>
36 #include <editeng/langitem.hxx>
37 #include <swtypes.hxx>
39 #include <txttxmrk.hxx>
42 #include <multmrk.hxx>
43 #include <swundo.hxx> // for Undo-Ids
47 #include <swmodule.hxx>
52 #include <svl/cjkoptions.hxx>
54 #include <breakit.hxx>
56 SFX_IMPL_CHILDWINDOW_WITHID(SwInsertIdxMarkWrapper
, FN_INSERT_IDX_ENTRY_DLG
)
58 SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( Window
*pParentWindow
,
60 SfxBindings
* pBindings
,
61 SfxChildWinInfo
* pInfo
) :
62 SfxChildWindow(pParentWindow
, nId
)
64 SwAbstractDialogFactory
* pFact
= SwAbstractDialogFactory::Create();
65 OSL_ENSURE(pFact
, "SwAbstractDialogFactory fail!");
66 pAbstDlg
= pFact
->CreateIndexMarkFloatDlg(pBindings
, this, pParentWindow
, pInfo
);
67 OSL_ENSURE(pAbstDlg
, "Dialogdiet fail!");
68 pWindow
= pAbstDlg
->GetWindow();
69 pWindow
->Show(); // at this point,because before pSh has to be initialized in ReInitDlg()
70 // -> Show() will invoke StateChanged() and save pos
71 eChildAlignment
= SFX_ALIGN_NOALIGNMENT
;
74 SfxChildWinInfo
SwInsertIdxMarkWrapper::GetInfo() const
76 SfxChildWinInfo aInfo
= SfxChildWindow::GetInfo();
81 void SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell
& rWrtShell
)
83 pAbstDlg
->ReInitDlg(rWrtShell
);
86 SFX_IMPL_CHILDWINDOW_WITHID(SwInsertAuthMarkWrapper
, FN_INSERT_AUTH_ENTRY_DLG
)
88 SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper( Window
*pParentWindow
,
90 SfxBindings
* pBindings
,
91 SfxChildWinInfo
* pInfo
) :
92 SfxChildWindow(pParentWindow
, nId
)
94 SwAbstractDialogFactory
* pFact
= SwAbstractDialogFactory::Create();
95 OSL_ENSURE(pFact
, "SwAbstractDialogFactory fail!");
96 pAbstDlg
= pFact
->CreateAuthMarkFloatDlg(pBindings
, this, pParentWindow
, pInfo
);
97 OSL_ENSURE(pAbstDlg
, "Dialogdiet fail!");
98 pWindow
= pAbstDlg
->GetWindow();
100 eChildAlignment
= SFX_ALIGN_NOALIGNMENT
;
103 SfxChildWinInfo
SwInsertAuthMarkWrapper::GetInfo() const
105 SfxChildWinInfo aInfo
= SfxChildWindow::GetInfo();
109 void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell
& rWrtShell
)
111 pAbstDlg
->ReInitDlg(rWrtShell
);
114 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */