5#ifndef __EDLIDOMTARGET_H__
6#define __EDLIDOMTARGET_H__
71#define edlobj2IDOMTarget(src) edl_cast((IDOMTarget *)NULL, src)
85#define IDOMExternalTargetClassID 0x45192b05, 0xa73c447f, 0xbd0ac312, 0x882e6a7d
127#define edlobj2IDOMExternalTarget(src) edl_cast((IDOMExternalTarget *)NULL, src)
137#define IDOMInternalTargetClassID 0xfcf28aeb, 0xf977476b, 0x884a1ab2, 0xfac79443
166#define edlobj2IDOMInternalTarget(src) edl_cast((IDOMInternalTarget *)NULL, src)
168template <
typename basetype>
218 m_isNull = another.m_isNull;
220 m_value = another.m_value;
226 if (m_isNull != another.m_isNull)
232 if (m_value != another.m_value)
255#define IDOMPageTargetClassID 0x2cb17446, 0xac5741d3, 0xb9ba405e, 0x616c7cee
290#define edlobj2IDOMPageTarget(src) edl_cast((IDOMPageTarget *)NULL, src)
302#define IDOMPageRectTargetClassID 0xd21f80cf, 0x124c495b, 0x9eb05a87, 0x2fa73ef6
447#define edlobj2IDOMPageRectTarget(src) edl_cast((IDOMPageRectTarget *)NULL, src)
456#define IDOMActionLaunchClassID 0x877b883f, 0x5dcf4c04, 0xa469d7f5, 0xf637b394
533#define edlobj2IDOMActionLaunch(src) edl_cast((IDOMActionLaunch *)NULL, src)
545#define IDOMActionArrayClassID 0x52205412, 0xfaf74a65, 0x9d1d5e19, 0x9d15ece6
573 virtual bool addAction(
const IDOMTargetPtr &ptrAction) = 0;
587#define edlobj2IDOMActionArray(src) edl_cast((IDOMActionArray *)NULL, src)
IDOMActionArray interface.
Definition idomtarget.h:544
virtual uint32 getActionsCount()=0
Retrieves count of the actions.
virtual eTargetType getTargetType() const
Implementation of geTargetType for IDOMActionArray.
Definition idomtarget.h:579
virtual void clearActions()=0
Clears collection of actions.
virtual bool addAction(const IDOMTargetPtr &ptrAction)=0
Append a action to the action collection.
DECLARE_CLASS_ID(IDOMActionArrayClassID)
virtual IDOMTargetCollectionEnumPtr getActionsEnum()=0
Retrieves enumerator of the action collection Action collection is analog of entry "Next" of PDF acti...
IDOMActionLaunch interface.
Definition idomtarget.h:455
virtual EDLString getMacParameters() const =0
Retrieves the Mac OS-specific launch parameters.
virtual EDLString getWinParameters() const =0
Retrieves the Windows-specific launch parameters.
virtual EDLString getUnixParameters() const =0
Retrieves the UNIX-specific launch parameters.
virtual bool getNewWindow() const =0
Retrieves the new window flag.
DECLARE_CLASS_ID(IDOMActionLaunchClassID)
virtual EDLString getFile() const =0
Retrieves the file specification.
virtual void setWinParameters(const EDLString ¶ms)=0
Sets the Windows-specific launch parameters.
virtual eTargetType getTargetType() const
Retrieves the target type.
Definition idomtarget.h:525
virtual void setMacParameters(const EDLString ¶ms)=0
Sets the Mac OS-specific launch parameters.
virtual void setFile(const EDLString &file)=0
Sets the file specification.
virtual void setNewWindow(bool bNewWindow)=0
Setter for new window flag.
virtual void setUnixParameters(const EDLString ¶ms)=0
Sets the UNIX-specific launch parameters.
IDOMExternalTarget interface.
Definition idomtarget.h:84
virtual void setTargetUri(const EDLSysString &uri)=0
Sets the target URI.
DECLARE_CLASS_ID(IDOMExternalTargetClassID)
virtual EDLSysString getTargetUri() const =0
Retrieves the target URI.
virtual eTargetType getTargetType() const
Retrieves the target URI type.
Definition idomtarget.h:119
virtual bool getIsMap() const =0
Retrieves the value of the IsMap flag. This is a flag specifying whether to track the mouse position ...
virtual void setIsMap(bool isMap)=0
Sets the value of the IsMap flag.
The IDOMInternalTarget interface describes the targets of hyperlinks that are in the same document bu...
Definition idomtarget.h:136
virtual DOMid getTargetId() const =0
Retrieves the internal target id.
DECLARE_CLASS_ID(IDOMInternalTargetClassID)
virtual void setTargetId(DOMid domId)=0
Sets the internal target id.
virtual eTargetType getTargetType() const
Implementation of getTargetType for IDOMInternalTarget.
Definition idomtarget.h:158
IDOMPageRectTarget nodes are used to describe hyperlinks on a page rectangle to targets on the same p...
Definition idomtarget.h:301
static EDL_API IDOMPageRectTargetPtr create(IEDLClassFactory *pFactory, DOMid pageId, eFitType fitType=eFTFit, double zoom=0.0, const doubleWithNull &left=doubleWithNull(), const doubleWithNull &top=doubleWithNull(), const doubleWithNull &right=doubleWithNull(), const doubleWithNull &bottom=doubleWithNull())
Simplified creator for a page rect target. Throws an exception of type IEDLError on failure.
virtual doubleWithNull getBottom() const =0
Gets the bottom coordinate value of the target.
virtual void setZoom(double zoom)=0
Sets for the zoom value.
virtual void setFitType(eFitType fitType)=0
Sets the fit type. See eFitType.
virtual void setTop(const doubleWithNull &top)=0
Sets the top coordinate value of the target.
DECLARE_CLASS_ID(IDOMPageRectTargetClassID)
virtual eFitType getFitType() const =0
Retrieves the fit type. See eFitType.
virtual doubleWithNull getLeft() const =0
Gets the left coordinate value of the target.
virtual void setPageId(DOMid domId)=0
Sets the target page DOM id.
virtual DOMid getPageId() const =0
Retrieves the target page DOM id.
virtual void setRight(const doubleWithNull &right)=0
Sets the right coordinate value of the target.
virtual doubleWithNull getRight() const =0
Gets the right coordinate value of the target.
virtual eTargetType getTargetType() const
Implementation of getTargetType for IDOMPageTarget.
Definition idomtarget.h:440
virtual doubleWithNull getTop() const =0
Gets the top coordinate value of the target.
virtual double getZoom() const =0
Retrieves the zoom value.
virtual void setLeft(const doubleWithNull &left)=0
Sets the left coordinate value of the target.
virtual void setBottom(const doubleWithNull &bottom)=0
Sets the bottom coordinate value of the target.
@ eFTFit
Definition idomtarget.h:316
@ eFTFitV
Definition idomtarget.h:318
@ eFTFitR
Definition idomtarget.h:319
@ eFTFitB
Definition idomtarget.h:320
@ eFTFitBH
Definition idomtarget.h:321
@ eFTFitBV
Definition idomtarget.h:322
@ eFTFitH
Definition idomtarget.h:317
@ eFTXyz
Definition idomtarget.h:315
@ eFTInvalid
Definition idomtarget.h:314
IDOMPageTarget nodes are used to describe hyperlinks on a page to targets on the same page.
Definition idomtarget.h:254
virtual eTargetType getTargetType() const
Implementation of getTargetType for IDOMPageTarget.
Definition idomtarget.h:282
DECLARE_CLASS_ID(IDOMPageTargetClassID)
virtual uint32 getTargetPage() const =0
Retrieves the target page number for a page target. A page target has the whole page as the target....
virtual void setTargetPage(uint32 page)=0
Sets the target page number for a page target. A page target has the whole page as the target....
Base class for defining hyperlink targets in a document.
Definition idomtarget.h:29
virtual eTargetType getTargetType() const =0
Retrieves the target type.
@ eActionArray
Array of actions.
Definition idomtarget.h:59
@ eActionGoToR
("Go-to remote") Go to a destination in another document.
Definition idomtarget.h:43
@ eActionJavaScript
(PDF 1.3) Execute a JavaScript script.
Definition idomtarget.h:54
@ eActionImportData
(PDF 1.2) Import field values from a file.
Definition idomtarget.h:53
@ eActionLaunch
Launch an application, usually to open a file.
Definition idomtarget.h:45
@ eActionGoTo3DView
(PDF 1.6) Set the current view of a 3D annotation
Definition idomtarget.h:58
@ eExternal
(PDF URI Action) Resolve a uniform resource identifier.
Definition idomtarget.h:39
@ eActionResetForm
(PDF 1.2) Set fields to their default values.
Definition idomtarget.h:52
@ eActionNamed
(PDF 1.2) Execute an action predefined by the viewer application.
Definition idomtarget.h:50
@ eActionHide
(PDF 1.2) Set an annotation's Hidden flag.
Definition idomtarget.h:49
@ ePage
XPS page target.
Definition idomtarget.h:41
@ eActionThread
Begin reading an article thread.
Definition idomtarget.h:46
@ eActionMovie
(PDF 1.2) Play a movie.
Definition idomtarget.h:48
@ ePageRect
(PDF Goto Action) Go to a destination in the current document.
Definition idomtarget.h:42
@ eActionGoToE
("Go-to embedded"; PDF 1.6) Go to a destination in an embedded file.
Definition idomtarget.h:44
@ eActionTrans
(PDF 1.5) Updates the display of a document, using a transition dictionary.
Definition idomtarget.h:57
@ eActionSetOCGState
(PDF 1.5) Set the states of optional content groups.
Definition idomtarget.h:55
@ eActionRendition
(PDF 1.5) Controls the playing of multimedia content.
Definition idomtarget.h:56
@ eInternal
XPS internal target.
Definition idomtarget.h:40
@ eActionSubmitForm
(PDF 1.2) Send data to a uniform resource locator.
Definition idomtarget.h:51
@ eActionSound
(PDF 1.2) Play a sound.
Definition idomtarget.h:47
EDL Factory Interface allows one part of the EDL infrastructure to register class creation methods id...
Definition iedlfactory.h:31
IEDLObject is an abstract base class that is used by all classes that are intended to be created via ...
Definition iedlobject.h:53
Definition idomtarget.h:170
TypeWithNull(basetype value)
Definition idomtarget.h:176
TypeWithNull()
Definition idomtarget.h:173
basetype getValue() const
Definition idomtarget.h:182
basetype getValueOrDefault(basetype defaultVal=basetype())
Definition idomtarget.h:188
void setNull()
Definition idomtarget.h:211
bool equals(const TypeWithNull &another)
Definition idomtarget.h:224
TypeWithNull(const TypeWithNull< basetype > &that)
Definition idomtarget.h:179
bool isNull() const
Definition idomtarget.h:200
const TypeWithNull & operator=(const TypeWithNull &another)
Definition idomtarget.h:216
void setValue(basetype value)
Definition idomtarget.h:205
#define _END_EDL_DOM_NAMESPACE
Definition edlnamespaces.h:110
#define _BEGIN_EDL_DOM_NAMESPACE
Definition edlnamespaces.h:109
EDLString and EDLSysString classes and associated EDL string manipulation functions.
std::string EDLSysString
Definition edlstring.h:158
std::wstring EDLString
Definition edlstring.h:165
EDL "standard" types including known bit-length signed and unsigned integer type[def]s and definition...
unsigned int uint32
Definition edltypes.h:34
#define EDL_API
Definition edltypes.h:86
EDL::uint64 DOMid
Type used to uniquely idenitify a DOM node.
Definition idomid.h:17
eFitType
Destination fit types enumeration.
Definition idomtarget.h:313
eTargetType
An enumeration of target types.
Definition idomtarget.h:38
#define IDOMInternalTargetClassID
Definition idomtarget.h:137
#define IDOMPageTargetClassID
Definition idomtarget.h:255
IInputEnumRC< IDOMTargetPtr > IDOMTargetCollectionEnum
Definition idomtarget.h:535
TypeWithNull< double > doubleWithNull
Definition idomtarget.h:245
#define IDOMPageRectTargetClassID
Definition idomtarget.h:302
#define IDOMExternalTargetClassID
Definition idomtarget.h:85
#define IDOMActionLaunchClassID
Definition idomtarget.h:456
#define IDOMActionArrayClassID
Definition idomtarget.h:545
EDL iterator template classes designed to allow iteration over the contents of a collection....
#define DECL_SMART_PTR(cls)
Definition smartptr.h:211