LibreOffice Module sw (master) 1
|
#include <expfld.hxx>
Public Member Functions | |
SwSetExpFieldType (SwDoc *pDoc, OUString aName, sal_uInt16 nType=nsSwGetSetExpType::GSE_EXPR) | |
virtual std::unique_ptr< SwFieldType > | Copy () const override |
virtual OUString | GetName () const override |
Only in derived classes. More... | |
void | SetType (sal_uInt16 nTyp) |
sal_uInt16 | GetType () const |
void | SetSeqFormat (sal_uLong nFormat) |
sal_uLong | GetSeqFormat () const |
bool | IsDeleted () const |
void | SetDeleted (bool b) |
const OUString & | GetSetRefName () const |
Overlay, because set-field takes care for its being updated by itself. More... | |
void | SetSeqRefNo (SwSetExpField &rField) |
size_t | GetSeqFieldList (SwSeqFieldList &rList, SwRootFrame const *pLayout) |
const OUString & | GetDelimiter () const |
Number sequence fields chapterwise if required. More... | |
void | SetDelimiter (const OUString &s) |
sal_uInt8 | GetOutlineLvl () const |
void | SetOutlineLvl (sal_uInt8 n) |
void | SetChapter (SwSetExpField &rField, const SwNode &rNd, SwRootFrame const *pLayout) |
virtual void | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override |
virtual void | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override |
virtual void | UpdateFields () override |
Public Member Functions inherited from SwValueFieldType | |
SwDoc * | GetDoc () const |
void | SetDoc (SwDoc *pNewDoc) |
bool | UseFormat () const |
void | EnableFormat (bool bFormat=true) |
OUString | ExpandValue (const double &rVal, sal_uInt32 nFormat, LanguageType nLng) const |
return value formatted as string More... | |
OUString | DoubleToString (const double &rVal, LanguageType eLng) const |
OUString | DoubleToString (const double &rVal, sal_uInt32 nFormat) const |
OUString | GetInputOrDateTime (const OUString &rInput, const double &rVal, sal_uInt32 nFormat) const |
Query input or formatted value for dialog. More... | |
Public Member Functions inherited from SwFieldType | |
unotools::WeakReference< SwXFieldMaster > const & | GetXObject () const |
void | SetXObject (rtl::Reference< SwXFieldMaster > const &xFieldMaster) |
virtual OUString | GetName () const |
Only in derived classes. More... | |
virtual std::unique_ptr< SwFieldType > | Copy () const =0 |
virtual void | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const |
virtual void | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) |
SwFieldIds | Which () const |
void | PrintHiddenPara () |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
SwFormatField * | FindFormatForField (const SwField *) const |
SwFormatField * | FindFormatForPostItId (sal_uInt32 nPostItId) const |
void | CollectPostIts (std::vector< SwFormatField * > &rvFormatFields, IDocumentRedlineAccess const &rIDRA, bool HideRedlines) |
bool | HasHiddenInformationNotes () const |
void | GatherNodeIndex (std::vector< SwNodeOffset > &rvNodeIndex) |
void | GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp) |
void | GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const |
void | GatherDdeTables (std::vector< SwDDETable * > &rvTables) const |
void | UpdateDocPos (const SwTwips nDocPos) |
virtual void | UpdateFields () |
Private Member Functions | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
Private Attributes | |
OUString | m_sName |
OUString | m_sDelim |
sal_uInt16 | m_nType |
sal_uInt8 | m_nLevel |
bool | m_bDeleted |
Additional Inherited Members | |
Static Public Member Functions inherited from SwFieldType | |
static const OUString & | GetTypeStr (SwFieldTypesEnum nTypeId) |
Protected Member Functions inherited from SwValueFieldType | |
SwValueFieldType (SwDoc *pDocPtr, SwFieldIds nWhichId) | |
SwValueFieldType (const SwValueFieldType &rTyp) | |
Protected Member Functions inherited from SwFieldType | |
SwFieldType (SwFieldIds nWhichId) | |
Single argument ctors shall be explicit. More... | |
Definition at line 148 of file expfld.hxx.
SwSetExpFieldType::SwSetExpFieldType | ( | SwDoc * | pDoc, |
OUString | aName, | ||
sal_uInt16 | nType = nsSwGetSetExpType::GSE_EXPR |
||
) |
Definition at line 503 of file expfld.cxx.
References aName, SwValueFieldType::EnableFormat(), nsSwGetSetExpType::GSE_SEQ, nsSwGetSetExpType::GSE_STRING, m_nLevel, m_nType, m_sName, and SetExp.
Referenced by Copy().
|
overridevirtual |
Implements SwFieldType.
Definition at line 514 of file expfld.cxx.
References SwValueFieldType::GetDoc(), m_bDeleted, m_nLevel, m_nType, m_sDelim, m_sName, and SwSetExpFieldType().
|
inline |
Number sequence fields chapterwise if required.
Definition at line 181 of file expfld.hxx.
Referenced by SwCaptionDialog::DrawSample(), SwCaptionOptPage::InvalidatePreview(), QueryValue(), and SwCaptionOptPage::SwCaptionOptPage().
|
overridevirtual |
Only in derived classes.
Reimplemented from SwFieldType.
Definition at line 524 of file expfld.cxx.
References m_sName.
Referenced by SwFieldRefPage::FillItemSet(), SwFieldRefPage::Reset(), SwSetExpField::SwSetExpField(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
inline |
Definition at line 183 of file expfld.hxx.
References m_nLevel.
Referenced by SwCaptionDialog::DrawSample(), SwCaptionOptPage::InvalidatePreview(), SwCaptionOptPage::SwCaptionOptPage(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
size_t SwSetExpFieldType::GetSeqFieldList | ( | SwSeqFieldList & | rList, |
SwRootFrame const * | pLayout | ||
) |
Definition at line 611 of file expfld.cxx.
References SwSeqFieldList::Clear(), SwSeqFieldList::Count(), SwFieldType::GatherFields(), SwValueFieldType::GetDoc(), SwTextNode::GetExpandText(), SwSetExpField::GetSeqNumber(), SwSeqFieldList::InsertSort(), sw::IsFieldDeletedInModel(), and SwRootFrame::IsHideRedlines().
Referenced by SwFieldRefPage::FillItemSet(), and SwFieldRefPage::UpdateSubType().
sal_uLong SwSetExpFieldType::GetSeqFormat | ( | ) | const |
Definition at line 559 of file expfld.cxx.
References SwFieldType::GatherFields(), and SVX_NUM_ARABIC.
|
inline |
Overlay, because set-field takes care for its being updated by itself.
Definition at line 201 of file expfld.hxx.
References m_sName.
|
inline |
Definition at line 198 of file expfld.hxx.
References m_nType.
Referenced by SwXTextField::attach(), SwFieldMgr::GetSubTypes(), IMPL_LINK_NOARG(), SwFieldMgr::InsertField(), lcl_FindInputField(), QueryValue(), SwTOXSelectTabPage::Reset(), SwFieldRefPage::Reset(), SwFieldVarPage::SubTypeHdl(), SwCaptionDialog::SwCaptionDialog(), SwFormatField::SwFormatField(), and SwCaptionOptPage::UpdateEntry().
|
inline |
Definition at line 170 of file expfld.hxx.
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 687 of file expfld.cxx.
References FIELD_PROP_PAR2, FIELD_PROP_SHORT1, FIELD_PROP_SUBTYPE, lcl_APIToSubType(), MAXLEVEL, SetDelimiter(), SetOutlineLvl(), and SetType().
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 663 of file expfld.cxx.
References FIELD_PROP_PAR2, FIELD_PROP_SHORT1, FIELD_PROP_SUBTYPE, GetDelimiter(), GetType(), lcl_SubTypeToAPI(), m_nLevel, and MAXLEVEL.
void SwSetExpFieldType::SetChapter | ( | SwSetExpField & | rField, |
const SwNode & | rNd, | ||
SwRootFrame const * | pLayout | ||
) |
Definition at line 636 of file expfld.cxx.
References SwSetExpField::ChgExpStr(), SwNode::FindOutlineNodeOfLevel(), SwSetExpField::GetExpStr(), SwTextNode::GetNum(), SwTextNode::GetNumRule(), m_nLevel, m_sDelim, and SwNumRule::MakeNumString().
Referenced by sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
inline |
Definition at line 171 of file expfld.hxx.
|
inline |
Definition at line 182 of file expfld.hxx.
Referenced by SwView::InsertCaption(), SwFieldPage::InsertField(), SwFieldMgr::InsertField(), PutValue(), and SwXFieldMaster::setPropertyValue().
|
inline |
Definition at line 184 of file expfld.hxx.
Referenced by SwView::InsertCaption(), SwFieldPage::InsertField(), SwFieldMgr::InsertField(), PutValue(), and SwXFieldMaster::setPropertyValue().
void SwSetExpFieldType::SetSeqFormat | ( | sal_uLong | nFormat | ) |
Definition at line 551 of file expfld.cxx.
References SwFieldType::GatherFields().
void SwSetExpFieldType::SetSeqRefNo | ( | SwSetExpField & | rField | ) |
Definition at line 569 of file expfld.cxx.
References sw::sidebar::aArr, SwFieldType::GatherFields(), SwSetExpField::GetSeqNumber(), nsSwGetSetExpType::GSE_SEQ, InsertSort(), m_nType, n, and SwSetExpField::SetSeqNumber().
Referenced by SwpHints::TryInsertHint().
|
inline |
Definition at line 192 of file expfld.hxx.
References SwValueFieldType::EnableFormat(), nsSwGetSetExpType::GSE_SEQ, nsSwGetSetExpType::GSE_STRING, and m_nType.
Referenced by PutValue().
|
overrideprivatevirtual |
Definition at line 546 of file expfld.cxx.
|
inlineoverridevirtual |
Reimplemented from SwFieldType.
Definition at line 189 of file expfld.hxx.
|
private |
Definition at line 154 of file expfld.hxx.
Referenced by Copy().
|
private |
Definition at line 153 of file expfld.hxx.
Referenced by Copy(), QueryValue(), and SetChapter().
|
private |
Definition at line 152 of file expfld.hxx.
Referenced by Copy(), GetType(), SetSeqRefNo(), SetType(), and SwSetExpFieldType().
|
private |
Definition at line 151 of file expfld.hxx.
Referenced by Copy(), and SetChapter().
|
private |
Definition at line 150 of file expfld.hxx.
Referenced by Copy(), GetName(), and GetSetRefName().