LibreOffice Module sw (master) 1
|
#include <chpfld.hxx>
Classes | |
struct | State |
Public Member Functions | |
SwChapterField (SwChapterFieldType *, sal_uInt32 nFormat=0) | |
void | ChangeExpansion (const SwFrame &, const SwContentNode *, bool bSrchNum=false) |
void | ChangeExpansion (const SwTextNode &rNd, bool bSrchNum, SwRootFrame const *pLayout=nullptr) |
sal_uInt8 | GetLevel (SwRootFrame const *pLayout=nullptr) const |
void | SetLevel (sal_uInt8) |
const OUString & | GetNumber (SwRootFrame const *pLayout=nullptr) const |
const OUString & | GetTitle (SwRootFrame const *pLayout=nullptr) const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override |
Public Member Functions inherited from SwField | |
virtual | ~SwField () |
SwField (SwField const &)=default | |
SwField (SwField &&)=default | |
SwField & | operator= (SwField const &)=default |
SwField & | operator= (SwField &&)=default |
SwFieldType * | GetTyp () const |
virtual SwFieldType * | ChgTyp (SwFieldType *) |
Set new type (used for copying among documents). More... | |
OUString | ExpandField (bool bCached, SwRootFrame const *pLayout) const |
expand the field. More... | |
virtual OUString | GetFieldName () const |
get name or content More... | |
std::unique_ptr< SwField > | CopyField () const |
SwFieldIds | Which () const |
ResId. More... | |
SwFieldTypesEnum | GetTypeId () const |
virtual sal_uInt16 | GetSubType () const |
virtual void | SetSubType (sal_uInt16) |
LanguageType | GetLanguage () const |
Language at field position. More... | |
virtual void | SetLanguage (LanguageType nLng) |
sal_uInt32 | GetFormat () const |
Query parameters for dialog and for BASIC. More... | |
virtual OUString | GetPar1 () const |
virtual OUString | GetPar2 () const |
virtual OUString | GetFormula () const |
void | ChangeFormat (sal_uInt32 n) |
virtual void | SetPar1 (const OUString &rStr) |
virtual void | SetPar2 (const OUString &rStr) |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId) |
bool | HasClickHdl () const |
Does the field possess an action on its ClickHandler? (e.g. INetFields, ...). More... | |
bool | IsFixed () const |
bool | IsAutomaticLanguage () const |
void | SetAutomaticLanguage (bool const bSet) |
virtual OUString | GetDescription () const |
bool | IsClickable () const |
Is this field clickable? More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
const OUString & | GetTitle () const |
void | SetTitle (const OUString &rTitle) |
Private Member Functions | |
virtual OUString | ExpandImpl (SwRootFrame const *pLayout) const override |
virtual std::unique_ptr< SwField > | Copy () const override |
Private Attributes | |
State | m_State |
State | m_StateRLHidden |
Friends | |
class | SwChapterFieldType |
class | ToxTextGeneratorTest |
Additional Inherited Members | |
Protected Member Functions inherited from SwField | |
void | SetFormat (sal_uInt32 const nSet) |
SwField (SwFieldType *pTyp, sal_uInt32 nFormat=0, LanguageType nLang=LANGUAGE_SYSTEM, bool m_bUseFieldValueCache=true) | |
Definition at line 48 of file chpfld.hxx.
SwChapterField::SwChapterField | ( | SwChapterFieldType * | pTyp, |
sal_uInt32 | nFormat = 0 |
||
) |
Definition at line 74 of file chpfld.cxx.
Referenced by Copy().
void SwChapterField::ChangeExpansion | ( | const SwFrame & | rFrame, |
const SwContentNode * | pContentNode, | ||
bool | bSrchNum = false |
||
) |
Definition at line 133 of file chpfld.cxx.
References ChangeExpansion(), GetBodyTextNode(), SwNode::GetDoc(), SwNodes::GetEndOfContent(), SwDoc::GetNodes(), SwFrame::getRootFrame(), SwNode::GetTextNode(), and SwFrame::IsInDocBody().
Referenced by ChangeExpansion(), sw::ToxTextGenerator::ObtainChapterField(), AttributeOutputBase::TextField(), and SwGetRefField::UpdateField().
void SwChapterField::ChangeExpansion | ( | const SwTextNode & | rNd, |
bool | bSrchNum, | ||
SwRootFrame const * | pLayout = nullptr |
||
) |
Definition at line 152 of file chpfld.cxx.
References SwNode::FindOutlineNodeOfLevel(), SwNumRule::Get(), SwTextNode::GetActualListLevel(), SwTextNode::GetAttrOutlineLevel(), SwNode::GetDoc(), sw::GetExpandTextMerged(), SvxNumberFormat::GetLabelFollowedByAsString(), SvxNumberType::GetNumberingType(), SwTextNode::GetNumRule(), SwTextNode::GetNumString(), SwDoc::GetOutlineNumRule(), SvxNumberFormat::GetPrefix(), SvxNumberFormat::GetSuffix(), SwTextNode::GetTextColl(), SwTextNode::IsCountedInList(), SwRootFrame::IsHideRedlines(), SwTextNode::IsOutline(), m_State, m_StateRLHidden, MAXLEVEL, SwChapterField::State::nLevel, SwChapterField::State::sLabelFollowedBy, SwChapterField::State::sNumber, SwChapterField::State::sPost, SwChapterField::State::sPre, SwChapterField::State::sTitle, and SVX_NUM_NUMBER_NONE.
|
overrideprivatevirtual |
Implements SwField.
Definition at line 122 of file chpfld.cxx.
References SwField::GetFormat(), SwField::GetTyp(), m_State, m_StateRLHidden, and SwChapterField().
|
overrideprivatevirtual |
Implements SwField.
Definition at line 104 of file chpfld.cxx.
References CF_NUM_NOPREPST_TITLE, CF_NUM_TITLE, CF_NUMBER, CF_TITLE, SwField::GetFormat(), SwRootFrame::IsHideRedlines(), m_State, m_StateRLHidden, SwChapterField::State::sLabelFollowedBy, SwChapterField::State::sNumber, SwChapterField::State::sPost, SwChapterField::State::sPre, and SwChapterField::State::sTitle.
sal_uInt8 SwChapterField::GetLevel | ( | SwRootFrame const * | pLayout = nullptr | ) | const |
Definition at line 79 of file chpfld.cxx.
References SwRootFrame::IsHideRedlines(), m_State, m_StateRLHidden, and SwChapterField::State::nLevel.
Referenced by AttributeOutputBase::TextField().
const OUString & SwChapterField::GetNumber | ( | SwRootFrame const * | pLayout = nullptr | ) | const |
Definition at line 92 of file chpfld.cxx.
References SwRootFrame::IsHideRedlines(), m_State, m_StateRLHidden, and SwChapterField::State::sNumber.
Referenced by sw::ToxTextGenerator::GenerateTextForChapterToken(), and SwGetRefField::UpdateField().
const OUString & SwChapterField::GetTitle | ( | SwRootFrame const * | pLayout = nullptr | ) | const |
Definition at line 98 of file chpfld.cxx.
References SwRootFrame::IsHideRedlines(), m_State, m_StateRLHidden, and SwChapterField::State::sTitle.
Referenced by sw::ToxTextGenerator::GenerateTextForChapterToken().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 264 of file chpfld.cxx.
References CF_NUM_NOPREPST_TITLE, CF_NUM_TITLE, CF_NUMBER, CF_NUMBER_NOPREPST, CF_TITLE, FIELD_PROP_BYTE1, FIELD_PROP_USHORT1, m_State, m_StateRLHidden, MAXLEVEL, NAME, SwChapterField::State::nLevel, and SwField::SetFormat().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 230 of file chpfld.cxx.
References CF_NUM_NOPREPST_TITLE, CF_NUM_TITLE, CF_NUMBER, CF_NUMBER_NOPREPST, CF_TITLE, FIELD_PROP_BYTE1, FIELD_PROP_USHORT1, SwField::GetFormat(), m_State, NAME, and SwChapterField::State::nLevel.
void SwChapterField::SetLevel | ( | sal_uInt8 | nLev | ) |
Definition at line 86 of file chpfld.cxx.
References m_State, m_StateRLHidden, and SwChapterField::State::nLevel.
Referenced by SwXTextField::attach(), sw::ToxTextGenerator::ObtainChapterField(), SwWW8ImplReader::Read_F_Styleref(), and SwGetRefField::UpdateField().
|
friend |
Definition at line 50 of file chpfld.hxx.
|
friend |
Definition at line 51 of file chpfld.hxx.
|
private |
Definition at line 63 of file chpfld.hxx.
Referenced by ChangeExpansion(), Copy(), ExpandImpl(), GetLevel(), GetNumber(), GetTitle(), PutValue(), QueryValue(), and SetLevel().
|
private |
Definition at line 64 of file chpfld.hxx.
Referenced by ChangeExpansion(), Copy(), ExpandImpl(), GetLevel(), GetNumber(), GetTitle(), PutValue(), and SetLevel().