Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 12894 → Rev 12895

/trunk/Scribus/scribus/gtparagraphstyle.cpp
46,6 → 46,7
adjToBaseline = p.adjToBaseline;
autoLineSpacing = p.autoLineSpacing;
isVisible = p.isVisible;
flags = p.flags;
}
 
gtParagraphStyle::gtParagraphStyle(const gtStyle& s) : gtStyle(s)
67,6 → 68,7
adjToBaseline = false;
autoLineSpacing = false;
isVisible = true;
flags = 0;
}
 
QString gtParagraphStyle::target()
74,6 → 76,11
return QString("paragraph");
}
 
int gtParagraphStyle::getFlags()
{
return flags;
}
 
bool gtParagraphStyle::isDefaultStyle()
{
return defaultStyle;
92,6 → 99,7
void gtParagraphStyle::setLineSpacing(double newLineSpacing)
{
lineSpacing = newLineSpacing;
flags |= lineSpacingWasSet;
}
 
bool gtParagraphStyle::getAutoLineSpacing()
102,6 → 110,7
void gtParagraphStyle::setAutoLineSpacing(bool newALS)
{
autoLineSpacing = newALS;
flags |= autoLineSpacingWasSet;
}
 
int gtParagraphStyle::getAlignment()
112,12 → 121,16
void gtParagraphStyle::setAlignment(Alignment newAlignment)
{
alignment = newAlignment;
flags |= alignmentWasSet;
}
 
void gtParagraphStyle::setAlignment(int newAlignment)
{
if ((newAlignment > -1) && (newAlignment < AlignmentMAX))
{
alignment = newAlignment;
flags |= alignmentWasSet;
}
}
 
double gtParagraphStyle::getIndent()
128,6 → 141,7
void gtParagraphStyle::setIndent(double newIndent)
{
indent = newIndent;
flags |= indentWasSet;
}
 
double gtParagraphStyle::getFirstLineIndent()
138,6 → 152,7
void gtParagraphStyle::setFirstLineIndent(double newFirstLineIndent)
{
firstLineIndent = newFirstLineIndent;
flags |= firstIndentWasSet;
}
 
double gtParagraphStyle::getSpaceAbove()
148,6 → 163,7
void gtParagraphStyle::setSpaceAbove(double newSpaceAbove)
{
spaceAbove = newSpaceAbove;
flags |= spaceAboveWasSet;
}
 
double gtParagraphStyle::getSpaceBelow()
158,6 → 174,7
void gtParagraphStyle::setSpaceBelow(double newSpaceBelow)
{
spaceBelow = newSpaceBelow;
flags |= spaceBelowWasSet;
}
 
QList<ParagraphStyle::TabRecord>* gtParagraphStyle::getTabValues()
172,6 → 189,7
tb.tabType = ttype;
tb.tabFillChar = QChar();
tabValues.append(tb);
flags |= tabValueWasSet;
}
 
bool gtParagraphStyle::hasDropCap()
182,6 → 200,7
void gtParagraphStyle::setDropCap(bool newDropCap)
{
dropCap = newDropCap;
flags |= dropCapWasSet;
}
 
void gtParagraphStyle::setDropCap(int newHeight)
188,6 → 207,7
{
setDropCap(true);
dropCapHeight = newHeight;
flags |= dropCapHeightWasSet;
}
 
int gtParagraphStyle::getDropCapHeight()
198,6 → 218,7
void gtParagraphStyle::setDropCapHeight(int newHeight)
{
dropCapHeight = newHeight;
flags |= dropCapHeightWasSet;
}
 
bool gtParagraphStyle::isAdjToBaseline()
208,6 → 229,7
void gtParagraphStyle::setAdjToBaseline(bool newAdjToBaseline)
{
adjToBaseline = newAdjToBaseline;
flags |= adjToBaselineWasSet;
}
 
void gtParagraphStyle::getStyle(gtStyle* style)