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 .
24 SFX_IMPL_CHILDWINDOW_WITHID(SwInsertIdxMarkWrapper
, FN_INSERT_IDX_ENTRY_DLG
)
26 SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( vcl::Window
*pParentWindow
,
28 SfxBindings
* pBindings
,
29 SfxChildWinInfo
* pInfo
) :
30 SfxChildWindow(pParentWindow
, nId
)
32 SwAbstractDialogFactory
* pFact
= SwAbstractDialogFactory::Create();
33 m_xAbstDlg
= pFact
->CreateIndexMarkFloatDlg(pBindings
, this, pParentWindow
->GetFrameWeld(), pInfo
);
34 SetController(m_xAbstDlg
->GetController());
37 SfxChildWinInfo
SwInsertIdxMarkWrapper::GetInfo() const
39 SfxChildWinInfo aInfo
= SfxChildWindow::GetInfo();
44 void SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell
& rWrtShell
)
46 m_xAbstDlg
->ReInitDlg(rWrtShell
);
49 SFX_IMPL_CHILDWINDOW_WITHID(SwInsertAuthMarkWrapper
, FN_INSERT_AUTH_ENTRY_DLG
)
51 SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper( vcl::Window
*pParentWindow
,
53 SfxBindings
* pBindings
,
54 SfxChildWinInfo
* pInfo
) :
55 SfxChildWindow(pParentWindow
, nId
)
57 SwAbstractDialogFactory
* pFact
= SwAbstractDialogFactory::Create();
58 m_xAbstDlg
= pFact
->CreateAuthMarkFloatDlg(pBindings
, this, pParentWindow
->GetFrameWeld(), pInfo
);
59 SetController(m_xAbstDlg
->GetController());
62 SfxChildWinInfo
SwInsertAuthMarkWrapper::GetInfo() const
64 SfxChildWinInfo aInfo
= SfxChildWindow::GetInfo();
68 void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell
& rWrtShell
)
70 m_xAbstDlg
->ReInitDlg(rWrtShell
);
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */