#include "core/fpdfdoc/cpdf_annotlist.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "constants/annotation_common.h"
#include "constants/annotation_flags.h"
#include "constants/form_fields.h"
#include "constants/form_flags.h"
#include "core/fpdfapi/page/cpdf_occontext.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fpdfapi/render/cpdf_renderoptions.h"
#include "core/fpdfdoc/cpdf_annot.h"
#include "core/fpdfdoc/cpdf_formfield.h"
#include "core/fpdfdoc/cpdf_generateap.h"
#include "core/fpdfdoc/cpdf_interactiveform.h"
#include "core/fxcrt/check.h"
namespace {
bool PopupAppearsForAnnotType(CPDF_Annot::Subtype subtype) { … }
std::unique_ptr<CPDF_Annot> CreatePopupAnnot(CPDF_Document* pDocument,
CPDF_Page* pPage,
CPDF_Annot* pAnnot) { … }
void GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict) { … }
}
CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage)
: … { … }
CPDF_AnnotList::~CPDF_AnnotList() { … }
bool CPDF_AnnotList::Contains(const CPDF_Annot* pAnnot) const { … }
void CPDF_AnnotList::DisplayPass(CPDF_RenderContext* pContext,
bool bPrinting,
const CFX_Matrix& mtMatrix,
bool bWidgetPass) { … }
void CPDF_AnnotList::DisplayAnnots(CPDF_RenderContext* pContext,
bool bPrinting,
const CFX_Matrix& mtUser2Device,
bool bShowWidget) { … }