Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <hintids.hxx>
30 : : #include <helpid.h>
31 : : #include <comphelper/processfactory.hxx>
32 : : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
33 : : #include <com/sun/star/beans/PropertyValue.hpp>
34 : : #include <com/sun/star/beans/XPropertySet.hpp>
35 : : #include <com/sun/star/util/SearchOptions.hpp>
36 : : #include <com/sun/star/util/SearchFlags.hpp>
37 : : #include <com/sun/star/i18n/TransliterationModules.hpp>
38 : : #include <svl/stritem.hxx>
39 : : #include <vcl/msgbox.hxx>
40 : : #include <sfx2/dispatch.hxx>
41 : : #include <svl/eitem.hxx>
42 : : #include <svtools/txtcmp.hxx>
43 : : #include <editeng/scripttypeitem.hxx>
44 : : #include <svl/itemset.hxx>
45 : : #include <editeng/langitem.hxx>
46 : : #include <swtypes.hxx>
47 : : #include <idxmrk.hxx>
48 : : #include <txttxmrk.hxx>
49 : : #include <wrtsh.hxx>
50 : : #include <view.hxx>
51 : : #include <multmrk.hxx>
52 : : #include <swundo.hxx> // for Undo-Ids
53 : : #include <cmdid.h>
54 : : #include <index.hrc>
55 : : #include <idxmrk.hrc>
56 : : #include <swmodule.hxx>
57 : : #include <fldmgr.hxx>
58 : : #include <fldbas.hxx>
59 : : #include <utlui.hrc>
60 : : #include <swcont.hxx>
61 : : #include <svl/cjkoptions.hxx>
62 : : #include <ndtxt.hxx>
63 : : #include <breakit.hxx>
64 : :
65 [ + - ][ # # ]: 1375 : SFX_IMPL_CHILDWINDOW_WITHID(SwInsertIdxMarkWrapper, FN_INSERT_IDX_ENTRY_DLG)
66 : :
67 : 0 : SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( Window *pParentWindow,
68 : : sal_uInt16 nId,
69 : : SfxBindings* pBindings,
70 : : SfxChildWinInfo* pInfo ) :
71 : 0 : SfxChildWindow(pParentWindow, nId)
72 : : {
73 [ # # ]: 0 : SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
74 : : OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
75 [ # # ]: 0 : pAbstDlg = pFact->CreateIndexMarkFloatDlg( DLG_INSIDXMARK , pBindings, this, pParentWindow, pInfo );
76 : : OSL_ENSURE(pAbstDlg, "Dialogdiet fail!");
77 [ # # ]: 0 : pWindow = pAbstDlg->GetWindow();
78 [ # # ]: 0 : pWindow->Show(); // at this point,because before pSh has to be initialized in ReInitDlg()
79 : : // -> Show() will invoke StateChanged() and save pos
80 : 0 : eChildAlignment = SFX_ALIGN_NOALIGNMENT;
81 : 0 : }
82 : :
83 : 0 : SfxChildWinInfo SwInsertIdxMarkWrapper::GetInfo() const
84 : : {
85 : 0 : SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
86 : :
87 : 0 : return aInfo;
88 : : }
89 : :
90 : 0 : void SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
91 : : {
92 : 0 : pAbstDlg->ReInitDlg(rWrtShell);
93 : 0 : }
94 : :
95 [ + - ][ # # ]: 1375 : SFX_IMPL_CHILDWINDOW_WITHID(SwInsertAuthMarkWrapper, FN_INSERT_AUTH_ENTRY_DLG)
96 : :
97 : 0 : SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper( Window *pParentWindow,
98 : : sal_uInt16 nId,
99 : : SfxBindings* pBindings,
100 : : SfxChildWinInfo* pInfo ) :
101 : 0 : SfxChildWindow(pParentWindow, nId)
102 : : {
103 [ # # ]: 0 : SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
104 : : OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
105 [ # # ]: 0 : pAbstDlg = pFact->CreateAuthMarkFloatDlg( DLG_INSAUTHMARK, pBindings, this, pParentWindow, pInfo );
106 : : OSL_ENSURE(pAbstDlg, "Dialogdiet fail!");
107 [ # # ]: 0 : pWindow = pAbstDlg->GetWindow();
108 : :
109 : 0 : eChildAlignment = SFX_ALIGN_NOALIGNMENT;
110 : 0 : }
111 : :
112 : 0 : SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
113 : : {
114 : 0 : SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
115 : 0 : return aInfo;
116 : : }
117 : :
118 : 0 : void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
119 : : {
120 : 0 : pAbstDlg->ReInitDlg(rWrtShell);
121 : 0 : }
122 : :
123 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|