13 #ifndef __LAYOUTBREAK_H__ 14 #define __LAYOUTBREAK_H__ 42 bool _startWithLongNames;
43 bool _startWithMeasureOne;
44 Type _layoutBreakType;
46 void draw(QPainter*)
const override;
48 void spatiumChanged(qreal oldValue, qreal newValue)
override;
57 void setLayoutBreakType(
Type);
58 Type layoutBreakType()
const {
return _layoutBreakType; }
60 bool acceptDrop(EditData&)
const override;
61 Element* drop(EditData&)
override;
62 void write(XmlWriter&)
const override;
63 void read(XmlReader&)
override;
65 Measure* measure()
const {
return (Measure*)parent(); }
66 qreal pause()
const {
return _pause; }
67 void setPause(qreal v) { _pause = v; }
68 bool startWithLongNames()
const {
return _startWithLongNames; }
69 void setStartWithLongNames(
bool v) { _startWithLongNames = v; }
70 bool startWithMeasureOne()
const {
return _startWithMeasureOne; }
71 void setStartWithMeasureOne(
bool v) { _startWithMeasureOne = v; }
73 bool isPageBreak()
const {
return _layoutBreakType ==
PAGE; }
74 bool isLineBreak()
const {
return _layoutBreakType ==
LINE; }
75 bool isSectionBreak()
const {
return _layoutBreakType ==
SECTION; }
76 bool isNoBreak()
const {
return _layoutBreakType ==
NOBREAK; }
78 QVariant getProperty(Pid propertyId)
const override;
79 bool setProperty(Pid propertyId,
const QVariant&)
override;
80 QVariant propertyDefault(Pid)
const override;
81 Pid propertyId(
const QStringRef& xmlName)
const override;
symbols for line break, page break etc.
Definition: layoutbreak.h:27
Type
Definition: layoutbreak.h:30
ElementType
Definition: types.h:34
Definition: layoutbreak.h:32
Definition: layoutbreak.h:32
Definition: cursor.cpp:30
Definition: layoutbreak.h:32
Definition: layoutbreak.h:32