LibreOffice Module editeng (master) 1
|
#include <numitem.hxx>
Public Types | |
enum | SvxNumPositionAndSpaceMode { LABEL_WIDTH_AND_POSITION , LABEL_ALIGNMENT } |
enum | LabelFollowedBy { LISTTAB , SPACE , NOTHING , NEWLINE } |
Public Member Functions | |
SvxNumberFormat (SvxNumType nNumberingType) | |
SvxNumberFormat (const SvxNumberFormat &rFormat) | |
SvxNumberFormat (SvStream &rStream) | |
virtual | ~SvxNumberFormat () |
void | Store (SvStream &rStream, FontToSubsFontConverter pConverter) |
SvxNumberFormat & | operator= (const SvxNumberFormat &) |
bool | operator== (const SvxNumberFormat &) const |
bool | operator!= (const SvxNumberFormat &rFmt) const |
void | SetNumAdjust (SvxAdjust eSet) |
SvxAdjust | GetNumAdjust () const |
void | SetPrefix (const OUString &rSet) |
const OUString & | GetPrefix () const |
void | SetSuffix (const OUString &rSet) |
const OUString & | GetSuffix () const |
void | SetListFormat (const OUString &rPrefix, const OUString &rSuffix, int nLevel) |
void | SetListFormat (std::optional< OUString > oSet=std::nullopt) |
bool | HasListFormat () const |
OUString | GetListFormat (bool bIncludePrefixSuffix=true) const |
void | SetCharFormatName (const OUString &rSet) |
virtual OUString | GetCharFormatName () const |
void | SetBulletFont (const vcl::Font *pFont) |
const std::optional< vcl::Font > & | GetBulletFont () const |
void | SetBulletChar (sal_UCS4 cSet) |
sal_UCS4 | GetBulletChar () const |
void | SetBulletRelSize (sal_uInt16 nSet) |
sal_uInt16 | GetBulletRelSize () const |
void | SetBulletColor (Color nSet) |
const Color & | GetBulletColor () const |
void | SetIncludeUpperLevels (sal_uInt8 nSet) |
sal_uInt8 | GetIncludeUpperLevels () const |
void | SetStart (sal_uInt16 nSet) |
sal_uInt16 | GetStart () const |
virtual void | SetGraphicBrush (const SvxBrushItem *pBrushItem, const Size *pSize=nullptr, const sal_Int16 *pOrient=nullptr) |
const SvxBrushItem * | GetBrush () const |
void | SetGraphic (const OUString &rName) |
sal_Int16 | GetVertOrient () const |
void | SetGraphicSize (const Size &rSet) |
const Size & | GetGraphicSize () const |
SvxNumPositionAndSpaceMode | GetPositionAndSpaceMode () const |
void | SetPositionAndSpaceMode (SvxNumPositionAndSpaceMode ePositionAndSpaceMode) |
void | SetAbsLSpace (sal_Int32 nSet) |
sal_Int32 | GetAbsLSpace () const |
void | SetFirstLineOffset (sal_Int32 nSet) |
sal_Int32 | GetFirstLineOffset () const |
void | SetCharTextDistance (short nSet) |
short | GetCharTextDistance () const |
void | SetLabelFollowedBy (const LabelFollowedBy eLabelFollowedBy) |
LabelFollowedBy | GetLabelFollowedBy () const |
OUString | GetLabelFollowedByAsString () const |
void | SetListtabPos (const tools::Long nListtabPos) |
tools::Long | GetListtabPos () const |
void | SetFirstLineIndent (const tools::Long nFirstLineIndent) |
tools::Long | GetFirstLineIndent () const |
void | SetIndentAt (const tools::Long nIndentAt) |
tools::Long | GetIndentAt () const |
bool | GetIsLegal () const |
void | SetIsLegal (bool val) |
Public Member Functions inherited from SvxNumberType | |
SvxNumberType (SvxNumType nType=SVX_NUM_ARABIC) | |
SvxNumberType (const SvxNumberType &rType) | |
~SvxNumberType () | |
SvxNumberType & | operator= (SvxNumberType const &)=default |
OUString | GetNumStr (sal_Int32 nNo) const |
OUString | GetNumStr (sal_Int32 nNo, const css::lang::Locale &rLocale, bool bIsLegal=false) const |
void | SetNumberingType (SvxNumType nSet) |
SvxNumType | GetNumberingType () const |
void | SetShowSymbol (bool bSet) |
bool | IsShowSymbol () const |
bool | IsTextFormat () const |
void | dumpAsXml (xmlTextWriterPtr w) const |
Static Public Member Functions | |
static Size | GetGraphicSizeMM100 (const Graphic *pGraphic) |
static OUString | CreateRomanString (sal_Int32 nNo, bool bUpper) |
Private Attributes | |
OUString | sPrefix |
OUString | sSuffix |
std::optional< OUString > | sListFormat |
SvxAdjust | eNumAdjust |
sal_uInt8 | nInclUpperLevels |
sal_uInt16 | nStart |
sal_UCS4 | cBullet |
sal_uInt16 | nBulletRelSize |
Color | nBulletColor |
SvxNumPositionAndSpaceMode | mePositionAndSpaceMode |
sal_Int32 | nFirstLineOffset |
sal_Int32 | nAbsLSpace |
short | nCharTextDistance |
LabelFollowedBy | meLabelFollowedBy |
tools::Long | mnListtabPos |
tools::Long | mnFirstLineIndent |
tools::Long | mnIndentAt |
std::unique_ptr< SvxBrushItem > | pGraphicBrush |
sal_Int16 | eVertOrient |
Size | aGraphicSize |
std::optional< vcl::Font > | pBulletFont |
OUString | sCharStyleName |
bool | mbIsLegal = false |
Definition at line 88 of file numitem.hxx.
Enumerator | |
---|---|
LISTTAB | |
SPACE | |
NOTHING | |
NEWLINE |
Definition at line 96 of file numitem.hxx.
Enumerator | |
---|---|
LABEL_WIDTH_AND_POSITION | |
LABEL_ALIGNMENT |
Definition at line 91 of file numitem.hxx.
|
explicit |
Definition at line 172 of file numitem.cxx.
References COL_BLACK(), eType, Left, nFirstLineOffset, NONE, and text().
SvxNumberFormat::SvxNumberFormat | ( | const SvxNumberFormat & | rFormat | ) |
Definition at line 192 of file numitem.cxx.
SvxNumberFormat::SvxNumberFormat | ( | SvStream & | rStream | ) |
Definition at line 199 of file numitem.cxx.
References aGraphicSize, BRUSH_GRAPHIC_VERSION, cBullet, legacy::SvxBrush::Create(), eNumAdjust, eVertOrient, SvStream::GetStreamCharSet(), meLabelFollowedBy, mePositionAndSpaceMode, mnFirstLineIndent, mnIndentAt, mnListtabPos, nAbsLSpace, nBulletColor, nBulletRelSize, nCharTextDistance, nFirstLineOffset, nFirstLineOffset, nInclUpperLevels, nStart, pBulletFont, pGraphicBrush, tools::GenericTypeSerializer::readColor(), ReadFont(), SvStream::ReadInt16(), SvStream::ReadInt32(), tools::GenericTypeSerializer::readSize(), SvStream::ReadUInt16(), SvStream::ReadUniOrByteString(), sCharStyleName, SvStream::SeekRel(), SvxNumberType::SetNumberingType(), SvxNumberType::SetShowSymbol(), sPrefix, and sSuffix.
|
virtual |
Definition at line 263 of file numitem.cxx.
|
static |
Definition at line 551 of file numitem.cxx.
sal_Int32 SvxNumberFormat::GetAbsLSpace | ( | ) | const |
Definition at line 478 of file numitem.cxx.
References GetFirstLineIndent(), GetIndentAt(), LABEL_WIDTH_AND_POSITION, mePositionAndSpaceMode, and nAbsLSpace.
Referenced by OutlinerView::ApplyBulletsNumbering(), SvxUnoNumberingRules::getNumberingRuleByIndex(), ImpEditEngine::GetSpaceBeforeAndMinLabelWidth(), and Outliner::ImpCalcBulletArea().
|
inline |
Definition at line 200 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), Outliner::PaintBullet(), SvxUnoNumberingRules::setNumberingRuleByIndex(), and SvxNumRule::UnLinkGraphics().
|
inline |
Definition at line 188 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), and Outliner::ImplCalcBulletText().
|
inline |
Definition at line 192 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), and Outliner::ImpCalcBulletFont().
|
inline |
Definition at line 186 of file numitem.hxx.
Referenced by Outliner::GetBulletInfo(), SvxUnoNumberingRules::getNumberingRuleByIndex(), and Outliner::ImpCalcBulletFont().
|
inline |
Definition at line 190 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), and Outliner::ImpCalcBulletFont().
|
virtual |
Definition at line 665 of file numitem.cxx.
References sCharStyleName.
short SvxNumberFormat::GetCharTextDistance | ( | ) | const |
Definition at line 490 of file numitem.cxx.
References LABEL_WIDTH_AND_POSITION, mePositionAndSpaceMode, and nCharTextDistance.
Referenced by Outliner::ImpCalcBulletArea().
|
inline |
Definition at line 222 of file numitem.hxx.
Referenced by GetAbsLSpace(), and GetFirstLineOffset().
sal_Int32 SvxNumberFormat::GetFirstLineOffset | ( | ) | const |
Definition at line 484 of file numitem.cxx.
References GetFirstLineIndent(), LABEL_WIDTH_AND_POSITION, mePositionAndSpaceMode, and nFirstLineOffset.
Referenced by OutlinerView::ApplyBulletsNumbering(), SvxUnoNumberingRules::getNumberingRuleByIndex(), ImpEditEngine::GetSpaceBeforeAndMinLabelWidth(), and Outliner::ImpCalcBulletArea().
|
inline |
Definition at line 204 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), Outliner::ImplGetBulletSize(), and SvxNumRule::UnLinkGraphics().
Definition at line 533 of file numitem.cxx.
References Application::GetDefaultDevice(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), OutputDevice::LogicToLogic(), OutputDevice::PixelToLogic(), and OutputDevice::SetMapMode().
|
inline |
Definition at line 195 of file numitem.hxx.
Referenced by SvxNumRule::MakeNumString().
|
inline |
Definition at line 224 of file numitem.hxx.
Referenced by GetAbsLSpace().
|
inline |
Definition at line 229 of file numitem.hxx.
Referenced by SvxNumRule::MakeNumString().
|
inline |
Definition at line 217 of file numitem.hxx.
OUString SvxNumberFormat::GetLabelFollowedByAsString | ( | ) | const |
Definition at line 500 of file numitem.cxx.
References LISTTAB, meLabelFollowedBy, NEWLINE, NOTHING, SAL_WARN, and SPACE.
OUString SvxNumberFormat::GetListFormat | ( | bool | bIncludePrefixSuffix = true | ) | const |
Definition at line 654 of file numitem.cxx.
References sListFormat, sPrefix, and sSuffix.
|
inline |
Definition at line 220 of file numitem.hxx.
|
inline |
Definition at line 171 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), and Outliner::ImpCalcBulletArea().
|
inline |
Definition at line 206 of file numitem.hxx.
|
inline |
Definition at line 173 of file numitem.hxx.
References sPrefix.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), Outliner::ImplCalcBulletText(), isSameNumbering(), and SvxNumRule::MakeNumString().
|
inline |
Definition at line 197 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), and Outliner::ImplGetNumbering().
|
inline |
Definition at line 175 of file numitem.hxx.
References sSuffix.
Referenced by SvxUnoNumberingRules::getNumberingRuleByIndex(), Outliner::ImplCalcBulletText(), isSameNumbering(), and SvxNumRule::MakeNumString().
sal_Int16 SvxNumberFormat::GetVertOrient | ( | ) | const |
Definition at line 460 of file numitem.cxx.
References eVertOrient.
Referenced by SvxNumRule::UnLinkGraphics().
|
inline |
Definition at line 179 of file numitem.hxx.
|
inline |
Definition at line 168 of file numitem.hxx.
SvxNumberFormat & SvxNumberFormat::operator= | ( | const SvxNumberFormat & | rFormat | ) |
Definition at line 342 of file numitem.cxx.
References aGraphicSize, cBullet, eNumAdjust, eVertOrient, SvxNumberType::GetNumberingType(), SvxNumberType::IsShowSymbol(), mbIsLegal, meLabelFollowedBy, mePositionAndSpaceMode, mnFirstLineIndent, mnIndentAt, mnListtabPos, nAbsLSpace, nBulletColor, nBulletRelSize, nCharTextDistance, nFirstLineOffset, nInclUpperLevels, nStart, pBulletFont, pGraphicBrush, sCharStyleName, SvxNumberType::SetNumberingType(), SvxNumberType::SetShowSymbol(), sListFormat, sPrefix, and sSuffix.
bool SvxNumberFormat::operator== | ( | const SvxNumberFormat & | rFormat | ) | const |
Definition at line 380 of file numitem.cxx.
References aGraphicSize, cBullet, eNumAdjust, eVertOrient, SvxNumberType::GetNumberingType(), SvxNumberType::IsShowSymbol(), mbIsLegal, meLabelFollowedBy, mePositionAndSpaceMode, mnFirstLineIndent, mnIndentAt, mnListtabPos, nAbsLSpace, nBulletColor, nBulletRelSize, nCharTextDistance, nFirstLineOffset, nInclUpperLevels, nStart, pBulletFont, pGraphicBrush, sCharStyleName, sListFormat, sPrefix, and sSuffix.
|
inline |
Definition at line 209 of file numitem.hxx.
Referenced by OutlinerView::ApplyBulletsNumbering(), and SvxUnoNumberingRules::setNumberingRuleByIndex().
|
inline |
Definition at line 187 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
|
inline |
Definition at line 191 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
void SvxNumberFormat::SetBulletFont | ( | const vcl::Font * | pFont | ) |
Definition at line 465 of file numitem.cxx.
References pBulletFont.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
|
inline |
Definition at line 189 of file numitem.hxx.
References SVX_NUM_REL_SIZE_MIN.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
|
inline |
Definition at line 182 of file numitem.hxx.
References rSet, and sCharStyleName.
|
inline |
Definition at line 213 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
void SvxNumberFormat::SetFirstLineIndent | ( | const tools::Long | nFirstLineIndent | ) |
Definition at line 524 of file numitem.cxx.
References mnFirstLineIndent.
|
inline |
Definition at line 211 of file numitem.hxx.
References nFirstLineOffset.
Referenced by OutlinerView::ApplyBulletsNumbering(), and SvxUnoNumberingRules::setNumberingRuleByIndex().
void SvxNumberFormat::SetGraphic | ( | const OUString & | rName | ) |
Definition at line 447 of file numitem.cxx.
References aGraphicSize, eVertOrient, GPOS_AREA, pGraphicBrush, Size::setHeight(), and Size::setWidth().
|
virtual |
Definition at line 426 of file numitem.cxx.
References aGraphicSize, SvxBrushItem::Clone(), eVertOrient, pGraphicBrush, Size::setHeight(), and Size::setWidth().
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex(), and SvxNumRule::UnLinkGraphics().
|
inline |
Definition at line 203 of file numitem.hxx.
References rSet.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
|
inline |
Definition at line 194 of file numitem.hxx.
void SvxNumberFormat::SetIndentAt | ( | const tools::Long | nIndentAt | ) |
Definition at line 528 of file numitem.cxx.
References mnIndentAt.
|
inline |
Definition at line 230 of file numitem.hxx.
void SvxNumberFormat::SetLabelFollowedBy | ( | const LabelFollowedBy | eLabelFollowedBy | ) |
Definition at line 495 of file numitem.cxx.
References meLabelFollowedBy.
void SvxNumberFormat::SetListFormat | ( | const OUString & | rPrefix, |
const OUString & | rSuffix, | ||
int | nLevel | ||
) |
Definition at line 589 of file numitem.cxx.
References i, nInclUpperLevels, sListFormat, sPrefix, and sSuffix.
void SvxNumberFormat::SetListFormat | ( | std::optional< OUString > | oSet = std::nullopt | ) |
Definition at line 614 of file numitem.cxx.
References getLength(), i, nInclUpperLevels, sListFormat, sPrefix, and sSuffix.
void SvxNumberFormat::SetListtabPos | ( | const tools::Long | nListtabPos | ) |
Definition at line 520 of file numitem.cxx.
References mnListtabPos.
|
inline |
Definition at line 170 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
void SvxNumberFormat::SetPositionAndSpaceMode | ( | SvxNumPositionAndSpaceMode | ePositionAndSpaceMode | ) |
Definition at line 473 of file numitem.cxx.
References mePositionAndSpaceMode.
void SvxNumberFormat::SetPrefix | ( | const OUString & | rSet | ) |
Definition at line 571 of file numitem.cxx.
References rSet, sListFormat, and sPrefix.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
|
inline |
Definition at line 196 of file numitem.hxx.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
void SvxNumberFormat::SetSuffix | ( | const OUString & | rSet | ) |
Definition at line 580 of file numitem.cxx.
References rSet, sListFormat, and sSuffix.
Referenced by SvxUnoNumberingRules::setNumberingRuleByIndex().
void SvxNumberFormat::Store | ( | SvStream & | rStream, |
FontToSubsFontConverter | pConverter | ||
) |
Definition at line 267 of file numitem.cxx.
References aGraphicSize, BRUSH_GRAPHIC_VERSION, cBullet, COL_AUTO(), COL_BLACK(), ConvertFontToSubsFontChar(), eNumAdjust, eVertOrient, GetFontToSubsFontName(), SvxNumberType::GetNumberingType(), SvxNumberType::IsShowSymbol(), meLabelFollowedBy, mePositionAndSpaceMode, mnFirstLineIndent, mnIndentAt, mnListtabPos, nAbsLSpace, nBulletColor, nBulletRelSize, nCharTextDistance, nFirstLineOffset, nInclUpperLevels, nStart, NUMITEM_VERSION_04, pBulletFont, pGraphicBrush, SAL_MAX_INT16, SAL_MIN_INT16, sCharStyleName, sPrefix, sSuffix, legacy::SvxBrush::Store(), tools::GenericTypeSerializer::writeColor(), WriteFont(), SvStream::WriteInt16(), SvStream::WriteInt32(), tools::GenericTypeSerializer::writeSize(), SvStream::WriteUInt16(), and SvStream::WriteUniOrByteString().
|
private |
Definition at line 149 of file numitem.hxx.
Referenced by operator=(), operator==(), SetGraphic(), SetGraphicBrush(), Store(), and SvxNumberFormat().
|
private |
Definition at line 116 of file numitem.hxx.
Referenced by operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 111 of file numitem.hxx.
Referenced by operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 147 of file numitem.hxx.
Referenced by GetVertOrient(), operator=(), operator==(), SetGraphic(), SetGraphicBrush(), Store(), and SvxNumberFormat().
|
private |
Definition at line 155 of file numitem.hxx.
Referenced by operator=(), and operator==().
|
private |
Definition at line 137 of file numitem.hxx.
Referenced by GetLabelFollowedByAsString(), operator=(), operator==(), SetLabelFollowedBy(), Store(), and SvxNumberFormat().
|
private |
Definition at line 129 of file numitem.hxx.
Referenced by GetAbsLSpace(), GetCharTextDistance(), GetFirstLineOffset(), operator=(), operator==(), SetPositionAndSpaceMode(), Store(), and SvxNumberFormat().
|
private |
Definition at line 141 of file numitem.hxx.
Referenced by operator=(), operator==(), SetFirstLineIndent(), Store(), and SvxNumberFormat().
|
private |
Definition at line 143 of file numitem.hxx.
Referenced by operator=(), operator==(), SetIndentAt(), Store(), and SvxNumberFormat().
|
private |
Definition at line 139 of file numitem.hxx.
Referenced by operator=(), operator==(), SetListtabPos(), Store(), and SvxNumberFormat().
|
private |
Definition at line 132 of file numitem.hxx.
Referenced by GetAbsLSpace(), operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 118 of file numitem.hxx.
Referenced by operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 117 of file numitem.hxx.
Referenced by operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 133 of file numitem.hxx.
Referenced by GetCharTextDistance(), operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 131 of file numitem.hxx.
Referenced by GetFirstLineOffset(), operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 113 of file numitem.hxx.
Referenced by operator=(), operator==(), SetListFormat(), Store(), and SvxNumberFormat().
|
private |
Definition at line 114 of file numitem.hxx.
Referenced by operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 151 of file numitem.hxx.
Referenced by operator=(), operator==(), SetBulletFont(), Store(), and SvxNumberFormat().
|
private |
Definition at line 146 of file numitem.hxx.
Referenced by operator=(), operator==(), SetGraphic(), SetGraphicBrush(), Store(), and SvxNumberFormat().
|
private |
Definition at line 153 of file numitem.hxx.
Referenced by GetCharFormatName(), operator=(), operator==(), Store(), and SvxNumberFormat().
|
private |
Definition at line 107 of file numitem.hxx.
Referenced by GetListFormat(), operator=(), operator==(), SetListFormat(), SetPrefix(), and SetSuffix().
|
private |
Definition at line 105 of file numitem.hxx.
Referenced by GetListFormat(), operator=(), operator==(), SetListFormat(), SetPrefix(), Store(), and SvxNumberFormat().
|
private |
Definition at line 106 of file numitem.hxx.
Referenced by GetListFormat(), operator=(), operator==(), SetListFormat(), SetSuffix(), Store(), and SvxNumberFormat().