class SwKernPortion : public SwLinePortion
{ short m_nKern; bool m_bBackground; bool m_bGridKern;
public:
// This constructor automatically appends the portion to rPortion // bBG indicates, that the background of the kerning portion has to // be painted, e.g., if the portion if positioned between to fields. // bGridKern indicates, that the kerning portion is used to provide // additional space in grid mode.
SwKernPortion( SwLinePortion &rPortion, short nKrn, bool bBG = false, bool bGridKern = false );
// This constructor only sets the height and ascent to the values // of rPortion. It is only used for kerning portions for grid mode explicit SwKernPortion( const SwLinePortion &rPortion );
/// Indicator that the content does not fit into a fixed height frame (red triangle on the UI). class SwArrowPortion : public SwLinePortion
{
Point m_aPos; bool m_bLeft; public: explicit SwArrowPortion( const SwLinePortion &rPortion ); explicit SwArrowPortion( const SwTextPaintInfo &rInf ); virtualvoid Paint( const SwTextPaintInfo &rInf ) const override; virtual SwLinePortion *Compress() override; bool IsLeft() const { return m_bLeft; } const Point& GetPos() const { return m_aPos; }
};
// The characters which are forbidden at the start of a line like the dot and // other punctuation marks are allowed to display in the margin of the page // by a user option. // The SwHangingPortion is the corresponding textportion to do that. class SwHangingPortion : public SwTextPortion
{
SwTwips m_nInnerWidth; public: explicit SwHangingPortion( SwPositiveSize aSize ) : m_nInnerWidth( aSize.Width() )
{
SetWhichPor( PortionType::Hanging );
SetLen(TextFrameIndex(1));
Height( aSize.Height() );
}
// Used to hide text class SwHiddenTextPortion : public SwLinePortion
{ public: explicit SwHiddenTextPortion(TextFrameIndex const nLen)
{
SetWhichPor( PortionType::HiddenText ); SetLen( nLen );
}
class SwControlCharPortion : public SwLinePortion
{
private: mutable SwTwips mnViewWidth; // used to cache a calculated value protected: mutable SwTwips mnHalfCharWidth; // used to cache a calculated value
sal_Unicode mcChar;
/// for showing bookmark starts and ends; note that in contrast to /// SwControlCharPortion these do not have a character in the text. class SwBookmarkPortion : public SwControlCharPortion
{ // custom colors defined by metadata
std::vector<std::tuple<SwScriptInfo::MarkKind, Color, SwMarkName, OUString>> m_aColors; // number of MarkKind marks
sal_Int16 m_nStart, m_nEnd, m_nPoint; bool m_bHasCustomColor;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.