Loading...
Searching...
No Matches
ContentItem.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFStructContentItem
6#define PDFTRON_H_CPPPDFStructContentItem
7
8#include <PDF/Page.h>
9
10 namespace pdftron {
11 namespace PDF {
12 namespace Struct {
13
20 class ContentItem
21{
22 public:
26 ContentItem(const ContentItem&);
27 ContentItem& operator= (const ContentItem&);
28
29 enum Type
30 {
31 e_MCR,
32 e_MCID,
33 e_OBJR,
34 e_Unknown
35 };
36
40 Type GetType() const;
41
45 class SElement GetParent();
46
52 Page GetPage();
53
57 SDF::Obj GetSDFObj () const;
58
59 // Type specific methods -----------------------------
60
66 int GetMCID() const;
67
76 SDF::Obj GetContainingStm() const;
77
85 SDF::Obj GetStmOwner() const;
86
91 SDF::Obj GetRefObj() const;
92
93// @cond PRIVATE_DOC
94#ifndef SWIGHIDDEN
95 ContentItem(TRN_ContentItem impl);
96 TRN_ContentItem mp_item;
97#endif
98// @endcond
99};
100
101
102 }; // namespace Struct
103 }; // namespace PDF
104}; // namespace pdftron
105
106#include <Impl/PDFDoc.inl>
107
108#endif // PDFTRON_H_CPPPDFStructContentItem
Page.h
pdftron::PDF::Page
Definition Page.h:32
pdftron::PDF::Struct::ContentItem::GetPage
Page GetPage()
pdftron::PDF::Struct::ContentItem::GetType
Type GetType() const
pdftron::PDF::Struct::ContentItem::operator=
ContentItem & operator=(const ContentItem &)
pdftron::PDF::Struct::ContentItem::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Struct::ContentItem::GetMCID
int GetMCID() const
pdftron::PDF::Struct::ContentItem::GetParent
class SElement GetParent()
pdftron::PDF::Struct::ContentItem::GetContainingStm
SDF::Obj GetContainingStm() const
pdftron::PDF::Struct::ContentItem::ContentItem
ContentItem(const ContentItem &)
pdftron::PDF::Struct::ContentItem::GetRefObj
SDF::Obj GetRefObj() const
pdftron::PDF::Struct::ContentItem::GetStmOwner
SDF::Obj GetStmOwner() const
pdftron::PDF::Struct::ContentItem::Type
Type
Definition ContentItem.h:30
pdftron::PDF::Struct::ContentItem::e_Unknown
@ e_Unknown
unknown content type.
Definition ContentItem.h:34
pdftron::PDF::Struct::ContentItem::e_MCR
@ e_MCR
marked-content reference.
Definition ContentItem.h:31
pdftron::PDF::Struct::ContentItem::e_OBJR
@ e_OBJR
object reference dictionary.
Definition ContentItem.h:33
pdftron::PDF::Struct::ContentItem::e_MCID
@ e_MCID
marked-content identifier.
Definition ContentItem.h:32
pdftron::PDF::Struct::SElement
Definition SElement.h:23
pdftron::SDF::Obj
Definition Obj.h:41
pdftron::PDF::Struct
Definition PDFDoc.h:35
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10