8 #ifndef __VRV_TEXT_LAYOUT_ELEMENT_H__
9 #define __VRV_TEXT_LAYOUT_ELEMENT_H__
11 #include "atts_shared.h"
48 void AppendTextToCell(
int index,
TextElement *text);
55 void ResetDrawingScaling();
85 virtual int GetTotalWidth(
const Doc *doc)
const = 0;
110 FunctorCode AcceptEnd(
Functor &functor)
override;
111 FunctorCode AcceptEnd(
ConstFunctor &functor)
const override;
119 void FilterList(ListOfConstObjects &childList)
const override;
130 ArrayOfTextElements m_cells[9];
135 int m_drawingScalingPercent[3];
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 is an pseudo interface for elements maintaining a flat list of children LayerElement for p...
Definition: object.h:893
Definition: textelement.h:22
This class represents a text element featuring horizontal and vertical layout.
Definition: textlayoutelement.h:24
int GetContentHeight() const
Content height.
int GetCellWidth(int cell) const
Row from 0 to 8.
int GetRowHeight(int row) const
Row from 0 to 2.
int GetCellHeight(int cell) const
Row from 0 to 8.
bool AdjustRunningElementYPos()
Adjust the postition of the content of the running element.
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
int GetRowWidth(int col) const
Row from 0 to 2.
int GetColHeight(int col) const
Col from 0 to 2.
bool AdjustDrawingScaling(int width)
Scale the content of the running element.
virtual int GetTotalHeight(const Doc *doc) const =0
Height including margins.
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
int GetAlignmentPos(data_HORIZONTALALIGNMENT h, data_VERTICALALIGNMENT v) const
Calculate the cell position.
int GetColWidth(int col) const
Col from 0 to 2.
int GetContentWidth() const
Content width.
bool IsSupportedChild(ClassId classId) override
Base method for checking if a child can be added.
void FilterList(ListOfConstObjects &childList) const override
Filter the list for a specific class.