Coverage Report

Created: 2026-10-14 09:33

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, sal_uInt16 nId,
27
                                               SfxBindings& rBindings, SfxChildWinInfo& rInfo)
28
0
    : SfxChildWindow(pParentWindow, nId)
29
0
{
30
0
    SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
31
0
    m_xAbstDlg
32
0
        = pFact->CreateIndexMarkFloatDlg(&rBindings, this, pParentWindow->GetFrameWeld(), rInfo);
33
0
    SetController(m_xAbstDlg->GetController());
34
0
}
35
36
SfxChildWinInfo SwInsertIdxMarkWrapper::GetInfo() const
37
0
{
38
0
    SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
39
40
0
    return aInfo;
41
0
}
42
43
void SwInsertIdxMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
44
0
{
45
0
    m_xAbstDlg->ReInitDlg(rWrtShell);
46
0
}
47
48
SFX_IMPL_CHILDWINDOW_WITHID(SwInsertAuthMarkWrapper, FN_INSERT_AUTH_ENTRY_DLG)
49
50
SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper(vcl::Window* pParentWindow, sal_uInt16 nId,
51
                                                 SfxBindings& rBindings, SfxChildWinInfo& rInfo)
52
0
    : SfxChildWindow(pParentWindow, nId)
53
0
{
54
0
    SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
55
0
    m_xAbstDlg
56
0
        = pFact->CreateAuthMarkFloatDlg(&rBindings, this, pParentWindow->GetFrameWeld(), rInfo);
57
0
    SetController(m_xAbstDlg->GetController());
58
0
}
59
60
SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
61
0
{
62
0
    SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
63
0
    return aInfo;
64
0
}
65
66
void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
67
0
{
68
0
    m_xAbstDlg->ReInitDlg(rWrtShell);
69
0
}
70
71
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */