LibreOffice Module sw (master)
1
|
invariant for SwAuthorityField is that it is always registered at its SwAuthorityFieldType via AddField()/RemoveField() & therefore has m_nHandle set - but it's possible that multiple SwAuthorityField have the same m_nHandle & so the number of instances is an upper bound on SwAuthorityField::m_DataArr.size() - it's not clear to me if more than one one of the instances with the same m_nHandle is actually in the document, they're all cloned via CopyField()... More...
#include <authfld.hxx>
Public Member Functions | |
OUString | ConditionalExpandAuthIdentifier (SwRootFrame const *pLayout) const |
For internal use only, in general continue using ExpandField() instead. More... | |
SW_DLLPUBLIC OUString | ExpandCitation (ToxAuthorityField eField, SwRootFrame const *pLayout) const |
SwAuthorityField (SwAuthorityFieldType *pType, const OUString &rFieldContents) | |
SwAuthorityField (SwAuthorityFieldType *pType, SwAuthEntry *pAuthEntry) | |
virtual | ~SwAuthorityField () override |
const OUString & | GetFieldText (ToxAuthorityField eField) const |
virtual void | SetPar1 (const OUString &rStr) override |
virtual SwFieldType * | ChgTyp (SwFieldType *) override |
Set new type (used for copying among documents). More... | |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId) override |
SwAuthEntry * | GetAuthEntry () const |
virtual OUString | GetDescription () const override |
![]() | |
virtual | ~SwField () |
SwField (SwField const &)=default | |
SwField (SwField &&)=default | |
SwField & | operator= (SwField const &)=default |
SwField & | operator= (SwField &&)=default |
SwFieldType * | GetTyp () const |
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 | SetPar2 (const OUString &rStr) |
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) |
bool | IsClickable () const |
Is this field clickable? More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Member Functions | |
virtual OUString | ExpandImpl (SwRootFrame const *pLayout) const override |
virtual std::unique_ptr< SwField > | Copy () const override |
Private Attributes | |
rtl::Reference< SwAuthEntry > | m_xAuthEntry |
sal_IntPtr | m_nTempSequencePos |
sal_IntPtr | m_nTempSequencePosRLHidden |
hidden redlines More... | |
Additional Inherited Members | |
![]() | |
void | SetFormat (sal_uInt32 const nSet) |
SwField (SwFieldType *pTyp, sal_uInt32 nFormat=0, LanguageType nLang=LANGUAGE_SYSTEM, bool m_bUseFieldValueCache=true) | |
invariant for SwAuthorityField is that it is always registered at its SwAuthorityFieldType via AddField()/RemoveField() & therefore has m_nHandle set - but it's possible that multiple SwAuthorityField have the same m_nHandle & so the number of instances is an upper bound on SwAuthorityField::m_DataArr.size() - it's not clear to me if more than one one of the instances with the same m_nHandle is actually in the document, they're all cloned via CopyField()...
Definition at line 148 of file authfld.hxx.
SwAuthorityField::SwAuthorityField | ( | SwAuthorityFieldType * | pType, |
const OUString & | rFieldContents | ||
) |
Definition at line 442 of file authfld.cxx.
References SwAuthorityFieldType::AddField(), and m_xAuthEntry.
SwAuthorityField::SwAuthorityField | ( | SwAuthorityFieldType * | pType, |
SwAuthEntry * | pAuthEntry | ||
) |
Definition at line 451 of file authfld.cxx.
|
overridevirtual |
Definition at line 460 of file authfld.cxx.
References SwField::GetTyp(), and m_xAuthEntry.
|
overridevirtual |
Set new type (used for copying among documents).
Set a new type.
This is needed/used for copying between documents. Needs to be always of the same type.
pNewType | The new type. |
Reimplemented from SwField.
Definition at line 654 of file authfld.cxx.
References SwField::ChgTyp(), SwField::GetTyp(), m_xAuthEntry, and SwAuthorityFieldType::RemoveField().
OUString SwAuthorityField::ConditionalExpandAuthIdentifier | ( | SwRootFrame const * | pLayout | ) | const |
For internal use only, in general continue using ExpandField() instead.
Definition at line 470 of file authfld.cxx.
References AUTH_FIELD_IDENTIFIER, AUTH_FIELD_TITLE, SwAuthorityFieldType::GetDoc(), SwDoc::getIDocumentFieldsAccess(), SwAuthorityFieldType::GetPrefix(), SwAuthorityFieldType::GetSequencePos(), SwAuthorityFieldType::GetSuffix(), SwField::GetTyp(), IDocumentFieldsAccess::IsExpFieldsLocked(), SwRootFrame::IsHideRedlines(), SwAuthorityFieldType::IsSequence(), m_nTempSequencePos, m_nTempSequencePosRLHidden, and m_xAuthEntry.
Referenced by SwField::ExpandField(), and ExpandImpl().
|
overrideprivatevirtual |
Implements SwField.
Definition at line 529 of file authfld.cxx.
References SwField::GetTyp(), and m_xAuthEntry.
OUString SwAuthorityField::ExpandCitation | ( | ToxAuthorityField | eField, |
SwRootFrame const * | pLayout | ||
) | const |
Definition at line 505 of file authfld.cxx.
References SwAuthorityFieldType::GetDoc(), SwDoc::getIDocumentFieldsAccess(), SwAuthorityFieldType::GetSequencePos(), SwField::GetTyp(), IDocumentFieldsAccess::IsExpFieldsLocked(), SwRootFrame::IsHideRedlines(), SwAuthorityFieldType::IsSequence(), m_nTempSequencePos, m_nTempSequencePosRLHidden, and m_xAuthEntry.
|
overrideprivatevirtual |
Implements SwField.
Definition at line 465 of file authfld.cxx.
References ConditionalExpandAuthIdentifier().
|
inline |
Definition at line 176 of file authfld.hxx.
Referenced by SwAuthorityFieldType::GetSequencePos().
|
overridevirtual |
const OUString & SwAuthorityField::GetFieldText | ( | ToxAuthorityField | eField | ) | const |
Definition at line 535 of file authfld.cxx.
References m_xAuthEntry.
Referenced by SwTOXAuthority::FillText(), SwTOXAuthority::sort_lt(), and SwFieldMgr::UpdateCurField().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 617 of file authfld.cxx.
References AUTH_FIELD_AUTHORITY_TYPE, AUTH_FIELD_ISBN, SwField::GetTyp(), lcl_Find(), m_xAuthEntry, comphelper::string::padToLength(), comphelper::string::setToken(), and TOX_STYLE_DELIMITER.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 587 of file authfld.cxx.
References aFieldNames, AUTH_FIELD_AUTHORITY_TYPE, AUTH_FIELD_END, SwField::GetTyp(), i, m_xAuthEntry, and pValues.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 540 of file authfld.cxx.
References SwAuthorityFieldType::AddField(), SwField::GetTyp(), m_xAuthEntry, and SwAuthorityFieldType::RemoveField().
|
mutableprivate |
Definition at line 151 of file authfld.hxx.
Referenced by ConditionalExpandAuthIdentifier(), and ExpandCitation().
|
mutableprivate |
hidden redlines
Definition at line 152 of file authfld.hxx.
Referenced by ConditionalExpandAuthIdentifier(), and ExpandCitation().
|
private |
Definition at line 150 of file authfld.hxx.
Referenced by ChgTyp(), ConditionalExpandAuthIdentifier(), Copy(), ExpandCitation(), GetFieldText(), PutValue(), QueryValue(), SetPar1(), SwAuthorityField(), and ~SwAuthorityField().