Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cxfa_texttabstopscontext.cpp
Go to the documentation of this file.
1
// Copyright 2017 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
include
"xfa/fxfa/cxfa_texttabstopscontext.h"
8
9
#
include
<
algorithm
>
10
11
CXFA_TextTabstopsContext
::
CXFA_TextTabstopsContext
() =
default
;
12
13
CXFA_TextTabstopsContext
::~
CXFA_TextTabstopsContext
() =
default
;
14
15
void
CXFA_TextTabstopsContext
::
Append
(uint32_t dwAlign,
float
fTabstops) {
16
XFA_TABSTOPS
tabstop;
17
tabstop
.
dwAlign
= dwAlign;
18
tabstop
.
fTabstops
= fTabstops;
19
20
auto
it = std::lower_bound(m_tabstops.begin(), m_tabstops.end(), tabstop);
21
m_tabstops.insert(it, tabstop);
22
}
23
24
void
CXFA_TextTabstopsContext
::
RemoveAll
() {
25
m_tabstops.clear();
26
}
27
28
void
CXFA_TextTabstopsContext
::
Reset
() {
29
m_iTabIndex
= -1;
30
m_bHasTabstops
=
false
;
31
m_fTabWidth
= 0;
32
m_fLeft
= 0;
33
}
CXFA_TextTabstopsContext
Definition
cxfa_texttabstopscontext.h:23
CXFA_TextTabstopsContext::~CXFA_TextTabstopsContext
~CXFA_TextTabstopsContext()
CXFA_TextTabstopsContext::m_bHasTabstops
bool m_bHasTabstops
Definition
cxfa_texttabstopscontext.h:33
CXFA_TextTabstopsContext::Reset
void Reset()
Definition
cxfa_texttabstopscontext.cpp:28
CXFA_TextTabstopsContext::CXFA_TextTabstopsContext
CXFA_TextTabstopsContext()
CXFA_TextTabstopsContext::m_iTabIndex
int32_t m_iTabIndex
Definition
cxfa_texttabstopscontext.h:32
CXFA_TextTabstopsContext::m_fTabWidth
float m_fTabWidth
Definition
cxfa_texttabstopscontext.h:34
CXFA_TextTabstopsContext::Append
void Append(uint32_t dwAlign, float fTabstops)
Definition
cxfa_texttabstopscontext.cpp:15
CXFA_TextTabstopsContext::RemoveAll
void RemoveAll()
Definition
cxfa_texttabstopscontext.cpp:24
CXFA_TextTabstopsContext::m_fLeft
float m_fLeft
Definition
cxfa_texttabstopscontext.h:35
XFA_TABSTOPS
Definition
cxfa_texttabstopscontext.h:14
XFA_TABSTOPS::fTabstops
float fTabstops
Definition
cxfa_texttabstopscontext.h:16
XFA_TABSTOPS::dwAlign
uint32_t dwAlign
Definition
cxfa_texttabstopscontext.h:15
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fxfa
cxfa_texttabstopscontext.cpp
Generated on Sat Sep 21 2024 01:01:33 for Qt by
1.12.0