8 #ifndef __VRV_SCOREORPARTELEMENT_H__
9 #define __VRV_SCOREORPARTELEMENT_H__
11 #include "atts_shared.h"
13 #include "pageelement.h"
14 #include "pagemilestone.h"
33 public AttNNumberLike {
45 std::string GetClassName()
const override {
return "score"; }
60 ScoreDef *GetScoreDef() {
return m_scoreDef; }
61 const ScoreDef *GetScoreDef()
const {
return m_scoreDef; }
62 Object *GetScoreDefSubtree() {
return m_scoreDefSubtree; }
88 FunctorCode AcceptEnd(
Functor &functor)
override;
89 FunctorCode AcceptEnd(
ConstFunctor &functor)
const override;
103 Object *m_scoreDefSubtree;
111 int m_drawingPgHeadHeight;
112 int m_drawingPgFootHeight;
113 int m_drawingPgHead2Height;
114 int m_drawingPgFoot2Height;
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:66
This class represents elements appearing within a page.
Definition: pageelement.h:25
This class is an interface for container elements that have to be turned to milestones in a page-base...
Definition: pagemilestone.h:83
This class represents a MEI scoreDef.
Definition: scoredef.h:136
This class represents a <score> or a <part> in MEI.
Definition: scoreorpartelement.h:33
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
bool IsSupportedChild(ClassId classId) override
Base method for checking if a child can be added.
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
void SetScoreDefSubtree(Object *subtree, ScoreDef *scoreScoreDef)
Getter for the score/scoreDef.
bool ScoreDefNeedsOptimization(int optionCondense) const
Check whether we need to optimize score based on the condense option.
void CalcRunningElementHeight(Doc *doc)
Calculate the height of the pgHead/pgHead2 and pgFoot/pgFoot2 (if any) Requires the Doc to have an em...