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
cpdf_pagelabel.h
Go to the documentation of this file.
1// Copyright 2016 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#ifndef CORE_FPDFDOC_CPDF_PAGELABEL_H_
8#define CORE_FPDFDOC_CPDF_PAGELABEL_H_
9
10#include <optional>
11
12#include "core/fxcrt/unowned_ptr.h"
13#include "core/fxcrt/widestring.h"
14
15class CPDF_Document;
16
18 public:
19 explicit CPDF_PageLabel(CPDF_Document* doc);
21
22 std::optional<WideString> GetLabel(int page_index) const;
23
24 private:
25 UnownedPtr<CPDF_Document> const doc_;
26};
27
28#endif // CORE_FPDFDOC_CPDF_PAGELABEL_H_
fxcrt::ByteString ByteString
Definition bytestring.h:180
bool KeyExist(const ByteString &key) const
ByteString GetByteStringFor(const ByteString &key, const ByteString &default_str) const
WideString GetUnicodeTextFor(const ByteString &key) const
int GetIntegerFor(const ByteString &key, int default_int) const
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
CPDF_PageLabel(CPDF_Document *doc)
std::optional< WideString > GetLabel(int page_index) const
ByteString()=default
bool operator==(const char *ptr) const
WideString & operator+=(const WideString &str)
WideString & operator=(WideString &&that) noexcept
WideString()=default
static WideString FormatInteger(int i)
fxcrt::WideStringView WideStringView
fxcrt::WideString WideString
Definition widestring.h:207