Krita Source Code Documentation
Loading...
Searching...
No Matches
TextIndentModel.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#include "TextIndentModel.h"
7
8TextIndentModel::TextIndentModel(lager::cursor<KoSvgText::TextIndentInfo> _textData)
9 : data(_textData)
10 , lengthData(data[&KoSvgText::TextIndentInfo::length])
11 , lengthModel(lengthData)
14{
15 lager::watch(lengthData, std::bind(&TextIndentModel::lengthChanged, this));
16}
17
19{
20 return &this->lengthModel;
21}
qreal length(const QPointF &vec)
Definition Ellipse.cc:82
LAGER_QT(eachLine)
lager::cursor< KoSvgText::TextIndentInfo > data
CssLengthPercentageModel lengthModel
TextIndentModel(lager::cursor< KoSvgText::TextIndentInfo > _textData=lager::make_state(KoSvgText::TextIndentInfo(), lager::automatic_tag{}))
CssLengthPercentageModel * length
void lengthChanged()
bool hanging
Flip the lines to which text-indent is applied.
Definition KoSvgText.h:659
bool eachLine
Apply the text-indent to each line following a hardbreak.
Definition KoSvgText.h:660