78 return std::tie (act.PageNumber_, x, y, w, h);
81 return toTuple (*
this) < toTuple (other);
107 using LinkAction = std::variant<NoAction, NavigationAction, ExternalNavigationAction, UrlAction, CustomAction>;
118 virtual ~ILink () =
default;
std::optional< PageRelativeRectBase > TargetArea_
virtual PageRelativeRectBase GetArea() const =0
Returns the area on the page of this link.
std::shared_ptr< ILink > ILink_ptr
NavigationAction DocumentNavigation_
A link action that represents navigating to a different document.
Some standard command like printing.
virtual LinkType GetLinkType() const =0
Returns the link type.
LinkType
Describes various link types known to Monocle.
Base interface for links.
A link action that represents navigating inside the document.
std::optional< double > Zoom_
virtual LinkAction GetLinkAction() const =0
Returns the link action.
bool operator<(const NavigationAction &other) const
std::variant< NoAction, NavigationAction, ExternalNavigationAction, UrlAction, CustomAction > LinkAction
virtual QString GetToolTip() const
Returns the tooltip for the link.
bool operator==(const NavigationAction &) const =default
virtual ~ILink()=default
Virtual destructor.
std::function< void()> CustomAction