Coverage Report

Created: 2026-02-14 09:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sw/inc/extinput.hxx
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
#pragma once
20
21
#include "pam.hxx"
22
#include <i18nlangtag/lang.h>
23
#include <vcl/commandevent.hxx>
24
#include <vector>
25
26
class SwExtTextInput final : public SwPaM
27
{
28
    std::vector<ExtTextInputAttr> m_aAttrs;
29
    OUString m_sOverwriteText;
30
    bool m_bInsText : 1;
31
    bool m_bIsOverwriteCursor : 1;
32
    LanguageType m_eInputLanguage;
33
public:
34
    SwExtTextInput( const SwPaM& rPam, Ring* pRing );
35
    virtual ~SwExtTextInput() override;
36
37
    void SetInputData( const CommandExtTextInputData& rData );
38
0
    const std::vector<ExtTextInputAttr>& GetAttrs() const { return m_aAttrs; }
39
0
    void SetInsText( bool bFlag )       { m_bInsText = bFlag; }
40
0
    bool IsOverwriteCursor() const      { return m_bIsOverwriteCursor; }
41
    void SetOverwriteCursor( bool bFlag );
42
0
    void SetLanguage(LanguageType eSet) { m_eInputLanguage = eSet;}
43
44
0
    SwExtTextInput* GetNext()             { return static_cast<SwExtTextInput *>(GetNextInRing()); }
45
0
    const SwExtTextInput* GetNext() const { return static_cast<SwExtTextInput const *>(GetNextInRing()); }
46
0
    SwExtTextInput* GetPrev()             { return static_cast<SwExtTextInput *>(GetPrevInRing()); }
47
0
    const SwExtTextInput* GetPrev() const { return static_cast<SwExtTextInput const *>(GetPrevInRing()); }
48
};
49
50
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */