chromium/third_party/pdfium/core/fpdfdoc/cpdf_formcontrol.cpp

// Copyright 2016 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "core/fpdfdoc/cpdf_formcontrol.h"

#include <array>
#include <iterator>
#include <utility>

#include "constants/form_fields.h"
#include "core/fpdfapi/font/cpdf_font.h"
#include "core/fpdfapi/page/cpdf_docpagedata.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fpdfapi/parser/fpdf_parser_utility.h"
#include "core/fpdfdoc/cpdf_interactiveform.h"
#include "core/fxcrt/check.h"

namespace {

constexpr std::array<char, 5> kHighlightModes =;

// Order of |kHighlightModes| must match order of HighlightingMode enum.
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

}  // namespace

CPDF_FormControl::CPDF_FormControl(CPDF_FormField* pField,
                                   RetainPtr<CPDF_Dictionary> pWidgetDict,
                                   CPDF_InteractiveForm* pForm)
    :{}

CPDF_FormControl::~CPDF_FormControl() = default;

CFX_FloatRect CPDF_FormControl::GetRect() const {}

ByteString CPDF_FormControl::GetOnStateName() const {}

ByteString CPDF_FormControl::GetCheckedAPState() const {}

WideString CPDF_FormControl::GetExportValue() const {}

bool CPDF_FormControl::IsChecked() const {}

bool CPDF_FormControl::IsDefaultChecked() const {}

void CPDF_FormControl::CheckControl(bool bChecked) {}

CPDF_FormControl::HighlightingMode CPDF_FormControl::GetHighlightingMode()
    const {}

CPDF_ApSettings CPDF_FormControl::GetMK() const {}

bool CPDF_FormControl::HasMKEntry(const ByteString& csEntry) const {}

int CPDF_FormControl::GetRotation() const {}

CFX_Color::TypeAndARGB CPDF_FormControl::GetColorARGB(
    const ByteString& csEntry) {}

float CPDF_FormControl::GetOriginalColorComponent(int index,
                                                  const ByteString& csEntry) {}

CFX_Color CPDF_FormControl::GetOriginalColor(const ByteString& csEntry) {}

WideString CPDF_FormControl::GetCaption(const ByteString& csEntry) const {}

RetainPtr<CPDF_Stream> CPDF_FormControl::GetIcon(const ByteString& csEntry) {}

CPDF_IconFit CPDF_FormControl::GetIconFit() const {}

int CPDF_FormControl::GetTextPosition() const {}

CPDF_DefaultAppearance CPDF_FormControl::GetDefaultAppearance() const {}

std::optional<WideString> CPDF_FormControl::GetDefaultControlFontName() const {}

RetainPtr<CPDF_Font> CPDF_FormControl::GetDefaultControlFont() const {}

int CPDF_FormControl::GetControlAlignment() const {}