8 #ifndef __VRV_RUNNING_ELEMENT_H__
9 #define __VRV_RUNNING_ELEMENT_H__
11 #include "atts_shared.h"
12 #include "textlayoutelement.h"
51 bool IsGenerated()
const {
return m_isGenerated; }
52 void IsGenerated(
bool isGenerated) { m_isGenerated = isGenerated; }
59 int GetDrawingX()
const override;
60 int GetDrawingY()
const override;
63 int GetTotalWidth(
const Doc *doc)
const override;
69 void SetDrawingPage(Page *page);
70 Page *GetDrawingPage() {
return m_drawingPage; }
71 const Page *GetDrawingPage()
const {
return m_drawingPage; }
78 int GetDrawingYRel()
const {
return m_drawingYRel; }
79 virtual void SetDrawingYRel(
int drawingYRel);
95 void AddPageNum(data_HORIZONTALALIGNMENT halign, data_VERTICALALIGNMENT valign);
107 FunctorCode AcceptEnd(
Functor &functor)
override;
108 FunctorCode AcceptEnd(
ConstFunctor &functor)
const override;
This abstract class is the base class for all const functors.
Definition: functor.h:126
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition: doc.h:41
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class represents a basic object.
Definition: object.h:61
This class represents a page in a laid-out score (Doc).
Definition: page.h:31
This class represents running elements (headers and footers).
Definition: runningelement.h:28
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
Object * Clone() const override
Disable cloning of the running elements (for now?).
Definition: runningelement.h:45
void LoadFooter(const Doc *doc)
Load the footer from the resources (footer.svg)
void SetCurrentPageNum(const Page *currentPage)
Set the current page number by looking for a <num label="page">#</num> element.
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
void AddPageNum(data_HORIZONTALALIGNMENT halign, data_VERTICALALIGNMENT valign)
Add page numbering to the running element.
This class represents a text element featuring horizontal and vertical layout.
Definition: textlayoutelement.h:24