Coverage Report

Created: 2026-03-31 11:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sw/source/uibase/index/idxmrk.cxx
Line
Count
Source
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 <idxmrk.hxx>
21
#include <wrtsh.hxx>
22
#include <cmdid.h>
23
24
SFX_IMPL_CHILDWINDOW_WITHID(SwInsertIdxMarkWrapper, FN_INSERT_IDX_ENTRY_DLG)
25
26
SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( vcl::Window *pParentWindow,
27
                            sal_uInt16 nId,
28
                            SfxBindings* pBindings,
29
                            SfxChildWinInfo* pInfo ) :
30
0
        SfxChildWindow(pParentWindow, nId)
31
0
{
32
0
    SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
33
0
    m_xAbstDlg = pFact->CreateIndexMarkFloatDlg(pBindings, this, pParentWindow->GetFrameWeld(), pInfo);
34
0
    SetController(m_xAbstDlg->GetController());
35
0
}
36
37
SfxChildWinInfo SwInsertIdxMarkWrapper::GetInfo() const
38
0
{
39
0
    SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
40
41
0
    return aInfo;
42
0
}
43
44
void SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
45
0
{
46
0
    m_xAbstDlg->ReInitDlg(rWrtShell);
47
0
}
48
49
SFX_IMPL_CHILDWINDOW_WITHID(SwInsertAuthMarkWrapper, FN_INSERT_AUTH_ENTRY_DLG)
50
51
SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper(   vcl::Window *pParentWindow,
52
                            sal_uInt16 nId,
53
                            SfxBindings* pBindings,
54
                            SfxChildWinInfo* pInfo ) :
55
0
        SfxChildWindow(pParentWindow, nId)
56
0
{
57
0
    SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
58
0
    m_xAbstDlg = pFact->CreateAuthMarkFloatDlg(pBindings, this, pParentWindow->GetFrameWeld(), pInfo);
59
0
    SetController(m_xAbstDlg->GetController());
60
0
}
61
62
SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
63
0
{
64
0
    SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
65
0
    return aInfo;
66
0
}
67
68
void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
69
0
{
70
0
    m_xAbstDlg->ReInitDlg(rWrtShell);
71
0
}
72
73
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */