Represents a page text assignment with positioning and page range properties.
More...
|
|
| PageTextAssign (const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci) |
| | Constructor function.
|
| |
|
MusxInstance< TextBlock > | getTextBlock () const |
| | Gets the TextBlock for this assignment, or nullptr if none.
|
| |
| std::optional< PageCmper > | calcStartPageNumber (Cmper forPartId) const |
| | Return the starting page number, taking into account leading blank pages in all parts. This calculation mimics observed behavior in Finale.
|
| |
| std::optional< PageCmper > | calcEndPageNumber (Cmper forPartId) const |
| | Return the ending page number, taking into account leading blank pages in all parts This calculation mimics observed behavior in Finale.
|
| |
| util::EnigmaParsingContext | getRawTextCtx (Cmper forPartId, std::optional< Cmper > forPageId=std::nullopt) const |
| | Gets the raw text for parsing this assignment, or nullptr if none.
|
| |
|
bool | isMultiPage () const |
| | Returns true if this is a multi-page assignment.
|
| |
|
bool | isMultiAssignedThruLastPage () const |
| | Returns true if this is a multi-page assignment that is assigned to through last page, no matter how many.
|
| |
| void | integrityCheck (const std::shared_ptr< EnigmaBase > &ptrToThis) override |
| | Performs a final consistency check after population.
|
| |
|
| OthersBase (const OthersBase &)=default |
| | explicit default copy constructor
|
| |
|
| OthersBase (OthersBase &&) noexcept=default |
| | explicit default move constructor
|
| |
| Cmper | getCmper () const |
| | Gets the cmper key value.
|
| |
| std::optional< Inci > | getInci () const |
| | Gets the optional array index (inci).
|
| |
|
Cmper | getRequestedPartId () const |
| | If this instance was retrieved from an object pool, it contains the part ID that was used to retrieve it. If this value is different than getSourcePartId, then this instance is a copy of the pool instance.
|
| |
| Cmper | getSourcePartId () const |
| | Gets the source partId for this instance. If an instance is fully shared with the score, the source is SCORE_PARTID. If an instance is partially shared or non shared, the source is the ID of the part that sourced it.
|
| |
|
ShareMode | getShareMode () const |
| | Gets the sharing mode for this instance.
|
| |
|
virtual bool | requireAllFields () const |
| | Returns true if all fields are required for valid input.
|
| |
|
virtual | ~DocumentElement () noexcept(false)=default |
| | Virtual destructor for polymorphic behavior.
|
| |
| DocumentPtr | getDocument () const |
| | Gets a reference to the Document.
|
| |
|
Cmper | getPartId () const |
| | Gets the part id associated with this instance.
|
| |
|
|
Cmper | block {} |
| | The Cmper for the assigned TextBlock. (xml tag is <block>)
|
| |
|
Evpu | xDisp {} |
| | The horizontal displacement from the default position. (xml tag is <xdisp>)
|
| |
|
Evpu | yDisp {} |
| | The vertical displacement from the default position. (xml tag is <ydisp>)
|
| |
| PageCmper | startPage {} |
| |
| PageCmper | endPage {} |
| |
|
PageAssignType | oddEven {} |
| | Determines if a multipage assignment appears on all, even (left), or odd (right) pages.
|
| |
|
HorizontalAlignment | hPosLp {} |
| | Horizontal alignment on left or all pages (depending on indRpPos). (xml tag is <hposLp>)
|
| |
|
HorizontalAlignment | hPosRp {} |
| | Horizontal alignment on right pages (if indRpPos is true). (xml tag is <hposRp>)
|
| |
|
bool | hidden {} |
| | Indicates if the page text appears only on screen. (xml tag is <postIt>)
|
| |
|
VerticalAlignment | vPos {} |
| | Vertical alignment. (xml tag is <vpos>)
|
| |
| bool | hPosPageEdge {} |
| |
| bool | vPosPageEdge {} |
| |
|
bool | indRpPos {} |
| | Individual right page positioning indicator. (xml tag is <indRpPos>)
|
| |
|
Evpu | rightPgXDisp {} |
| | Horizontal displacement for right pages (if indRpPos is true). (xml tag is <rightPgXdisp>)
|
| |
|
Evpu | rightPgYDisp {} |
| | Vertical displacement for right pages (if indRpPos is true). (xml tag is <rightPgYdisp>)
|
| |
|
| | OthersBase (const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, std::optional< Inci > inci=std::nullopt) |
| | Constructs an OthersBase object.
|
| |
|
OthersBase & | operator= (const OthersBase &other) |
| | Copy assignment preserves the destination DOM instance's document, source and requested part IDs, sharing mode, cmper, and inci.
|
| |
|
OthersBase & | operator= (OthersBase &&other) noexcept |
| | Move assignment preserves the destination DOM instance's document, source and requested part IDs, sharing mode, cmper, and inci.
|
| |
| | EnigmaBase (const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode) |
| | Constructs the base class.
|
| |
|
| EnigmaBase (const EnigmaBase &)=default |
| | explicit default copy constructor
|
| |
|
| EnigmaBase (EnigmaBase &&) noexcept=default |
| | explicit default move constructor
|
| |
|
EnigmaBase & | operator= (const EnigmaBase &) |
| | Copy assignment preserves the destination DOM instance's document, source part, and sharing mode.
|
| |
|
EnigmaBase & | operator= (EnigmaBase &&) noexcept |
| | Move assignment preserves the destination DOM instance's document, source part, and sharing mode.
|
| |
| | DocumentElement (const DocumentWeakPtr &document, Cmper partId) |
| | Constructs the document element.
|
| |
|
| DocumentElement (const DocumentElement &)=default |
| | explicit default copy constructor
|
| |
|
| DocumentElement (DocumentElement &&) noexcept=default |
| | explicit default move constructor
|
| |
|
DocumentElement & | operator= (const DocumentElement &) |
| | Copy assignment preserves the destination DOM instance's document and part ID.
|
| |
|
DocumentElement & | operator= (DocumentElement &&) noexcept |
| | Move assignment preserves the destination DOM instance's document and part ID.
|
| |
Represents a page text assignment with positioning and page range properties.
Instances of PageTextAssign use page assignment IDs rather than straightforward page numbers. This allows their page assignments to shift based on how many leading blank pages exist in the current score or part view vs. all the others. If all score and parts have the same number of leading blank pages, then page assignment IDs are the same as page numbers.
If the cmper is non-0, the startPage and endPage values are not used and the cmper specifies a page assignment ID that defines which page this text is assigned to.
If the cmper is 0, the startPage and endPage values specify the range of page assignment IDs to which this text is assigned. An endPage of 0 indicates the last page of the document.
If cmper is non-zero, startPage and endPage should have the same value as the cmper.
The inci value specifies a particular page text when more than one exists for the cmper value.
This class is identified by the XML node name "pageTextAssign".