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
12
14
15void 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
25 m_tabstops.clear();
26}
27
29 m_iTabIndex = -1;
30 m_bHasTabstops = false;
31 m_fTabWidth = 0;
32 m_fLeft = 0;
33}
void Append(uint32_t dwAlign, float fTabstops)