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 <hintids.hxx>
21 : #include <helpid.h>
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>
38 : #include <idxmrk.hxx>
39 : #include <txttxmrk.hxx>
40 : #include <wrtsh.hxx>
41 : #include <view.hxx>
42 : #include <multmrk.hxx>
43 : #include <swundo.hxx>
44 : #include <cmdid.h>
45 : #include <index.hrc>
46 : #include <swmodule.hxx>
47 : #include <fldmgr.hxx>
48 : #include <fldbas.hxx>
49 : #include <utlui.hrc>
50 : #include <swcont.hxx>
51 : #include <svl/cjkoptions.hxx>
52 : #include <ndtxt.hxx>
53 : #include <breakit.hxx>
54 :
55 2732 : SFX_IMPL_CHILDWINDOW_WITHID(SwInsertIdxMarkWrapper, FN_INSERT_IDX_ENTRY_DLG)
56 :
57 0 : SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( vcl::Window *pParentWindow,
58 : sal_uInt16 nId,
59 : SfxBindings* pBindings,
60 : SfxChildWinInfo* pInfo ) :
61 0 : SfxChildWindow(pParentWindow, nId)
62 : {
63 0 : SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
64 : assert(pFact && "SwAbstractDialogFactory fail!");
65 0 : pAbstDlg = pFact->CreateIndexMarkFloatDlg(pBindings, this, pParentWindow, pInfo);
66 : assert(pAbstDlg && "Dialog creation failed!");
67 0 : pWindow = pAbstDlg->GetWindow();
68 0 : pWindow->Show(); // at this point,because before pSh has to be initialized in ReInitDlg()
69 : // -> Show() will invoke StateChanged() and save pos
70 0 : eChildAlignment = SfxChildAlignment::NOALIGNMENT;
71 0 : }
72 :
73 0 : SfxChildWinInfo SwInsertIdxMarkWrapper::GetInfo() const
74 : {
75 0 : SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
76 :
77 0 : return aInfo;
78 : }
79 :
80 0 : void SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
81 : {
82 0 : pAbstDlg->ReInitDlg(rWrtShell);
83 0 : }
84 :
85 2732 : SFX_IMPL_CHILDWINDOW_WITHID(SwInsertAuthMarkWrapper, FN_INSERT_AUTH_ENTRY_DLG)
86 :
87 0 : SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper( vcl::Window *pParentWindow,
88 : sal_uInt16 nId,
89 : SfxBindings* pBindings,
90 : SfxChildWinInfo* pInfo ) :
91 0 : SfxChildWindow(pParentWindow, nId)
92 : {
93 0 : SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
94 : OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
95 0 : pAbstDlg = pFact->CreateAuthMarkFloatDlg(pBindings, this, pParentWindow, pInfo);
96 : OSL_ENSURE(pAbstDlg, "Dialog creation failed!");
97 0 : pWindow = pAbstDlg->GetWindow();
98 :
99 0 : eChildAlignment = SfxChildAlignment::NOALIGNMENT;
100 0 : }
101 :
102 0 : SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
103 : {
104 0 : SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
105 0 : return aInfo;
106 : }
107 :
108 0 : void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
109 : {
110 0 : pAbstDlg->ReInitDlg(rWrtShell);
111 177 : }
112 :
113 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|