LibreOffice Module sw (master) 1
|
#include <authfld.hxx>
Public Member Functions | |
SwAuthorityFieldType (SwDoc *pDoc) | |
virtual | ~SwAuthorityFieldType () override |
virtual std::unique_ptr< SwFieldType > | Copy () const override |
virtual void | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const override |
virtual void | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId) override |
void | SetDoc (SwDoc *pNewDoc) |
SwDoc * | GetDoc () |
void | RemoveField (const SwAuthEntry *nHandle) |
SwAuthEntry * | AddField (std::u16string_view rFieldContents) |
void | DelSequenceArray () |
void | GetAllEntryIdentifiers (std::vector< OUString > &rToFill) const |
SwAuthEntry * | GetEntryByIdentifier (std::u16string_view rIdentifier) const |
bool | ChangeEntryContent (const SwAuthEntry *pNewEntry) |
SwAuthEntry * | AppendField (const SwAuthEntry &rInsert) |
appends a new entry (if new) and returns the copied entry More... | |
sal_uInt16 | GetSequencePos (const SwAuthEntry *pAuthEntry, SwRootFrame const *pLayout) |
std::unique_ptr< SwTOXInternational > | CreateTOXInternational () const |
bool | IsSequence () const |
void | SetSequence (bool bSet) |
void | SetPreSuffix (sal_Unicode cPre, sal_Unicode cSuf) |
sal_Unicode | GetPrefix () const |
sal_Unicode | GetSuffix () const |
bool | IsSortByDocument () const |
void | SetSortByDocument (bool bSet) |
sal_uInt16 | GetSortKeyCount () const |
const SwTOXSortKey * | GetSortKey (sal_uInt16 nIdx) const |
void | SetSortKeys (sal_uInt16 nKeyCount, SwTOXSortKey const nKeys[]) |
LanguageType | GetLanguage () const |
void | SetLanguage (LanguageType nLang) |
const OUString & | GetSortAlgorithm () const |
void | SetSortAlgorithm (const OUString &rSet) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
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 () |
Static Public Member Functions | |
static OUString const & | GetAuthFieldName (ToxAuthorityField eType) |
static OUString const & | GetAuthTypeName (ToxAuthorityType eType) |
Static Public Member Functions inherited from SwFieldType | |
static const OUString & | GetTypeStr (SwFieldTypesEnum nTypeId) |
Private Member Functions | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
Private Attributes | |
SwDoc * | m_pDoc |
SwAuthDataArr | m_DataArr |
std::vector< SwAuthEntry * > | m_SequArr |
std::vector< SwAuthEntry * > | m_SequArrRLHidden |
hidden redlines More... | |
SortKeyArr | m_SortKeyArr |
sal_Unicode | m_cPrefix |
sal_Unicode | m_cSuffix |
bool | m_bIsSequence:1 |
bool | m_bSortByDocument:1 |
LanguageType | m_eLanguage |
OUString | m_sSortAlgorithm |
Additional Inherited Members | |
Protected Member Functions inherited from SwFieldType | |
SwFieldType (SwFieldIds nWhichId) | |
Single argument ctors shall be explicit. More... | |
Definition at line 65 of file authfld.hxx.
SwAuthorityFieldType::SwAuthorityFieldType | ( | SwDoc * | pDoc | ) |
Definition at line 75 of file authfld.cxx.
References TableOfAuthorities.
|
overridevirtual |
Definition at line 86 of file authfld.cxx.
SwAuthEntry * SwAuthorityFieldType::AddField | ( | std::u16string_view | rFieldContents | ) |
Definition at line 113 of file authfld.cxx.
References AUTH_FIELD_END, DelSequenceArray(), o3tl::getToken(), i, m_DataArr, and TOX_STYLE_DELIMITER.
Referenced by SwAuthorityField::SetPar1(), and SwAuthorityField::SwAuthorityField().
SwAuthEntry * SwAuthorityFieldType::AppendField | ( | const SwAuthEntry & | rInsert | ) |
appends a new entry (if new) and returns the copied entry
Definition at line 177 of file authfld.cxx.
References m_DataArr.
bool SwAuthorityFieldType::ChangeEntryContent | ( | const SwAuthEntry * | pNewEntry | ) |
Definition at line 158 of file authfld.cxx.
References AUTH_FIELD_END, AUTH_FIELD_IDENTIFIER, SwAuthEntry::GetAuthorField(), i, and m_DataArr.
Referenced by SwDoc::ChangeAuthorityData(), and SwFieldMgr::UpdateCurField().
|
overridevirtual |
std::unique_ptr< SwTOXInternational > SwAuthorityFieldType::CreateTOXInternational | ( | ) | const |
Definition at line 190 of file authfld.cxx.
References m_eLanguage, m_sSortAlgorithm, and NONE.
Referenced by SwAuthorityField::GetAuthority(), and GetSequencePos().
|
inline |
Definition at line 94 of file authfld.hxx.
Referenced by AddField(), GetSequencePos(), RemoveField(), and SwClientNotify().
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 294 of file initui.cxx.
References SwFieldType::dumpAsXml(), and m_DataArr.
void SwAuthorityFieldType::GetAllEntryIdentifiers | ( | std::vector< OUString > & | rToFill | ) | const |
Definition at line 136 of file authfld.cxx.
References AUTH_FIELD_IDENTIFIER, and m_DataArr.
Referenced by IMPL_LINK_NOARG().
|
static |
Definition at line 244 of file initui.cxx.
References AUTH_FIELD_END, eType, i, and SwResId().
Referenced by SwTokenWindow::CreateQuickHelp(), SwTokenWindow::InsertAtSelection(), and SwTokenWindow::InsertItem().
|
static |
Definition at line 282 of file initui.cxx.
References AUTH_TYPE_END, eType, i, STR_AUTH_TYPE_ARY, and SwResId().
Referenced by SwTOXEntryTabPage::ActivatePage(), SwAuthorityField::GetAuthority(), and SwTOXAuthority::GetText().
|
inline |
Definition at line 91 of file authfld.hxx.
Referenced by SwAuthorityField::ConditionalExpandAuthIdentifier(), and SwAuthorityField::ExpandCitation().
SwAuthEntry * SwAuthorityFieldType::GetEntryByIdentifier | ( | std::u16string_view | rIdentifier | ) | const |
Definition at line 145 of file authfld.cxx.
References AUTH_FIELD_IDENTIFIER, and m_DataArr.
Referenced by IMPL_LINK(), and IMPL_LINK_NOARG().
|
inline |
Definition at line 140 of file authfld.hxx.
Referenced by QueryValue().
|
inline |
Definition at line 122 of file authfld.hxx.
Referenced by SwAuthorityField::ConditionalExpandAuthIdentifier(), SwAuthorityField::GetAuthority(), SwTOXAuthority::GetText(), SwMultiTOXTabDialog::GetTOXDescription(), and SwMultiTOXTabDialog::SwMultiTOXTabDialog().
sal_uInt16 SwAuthorityFieldType::GetSequencePos | ( | const SwAuthEntry * | pAuthEntry, |
SwRootFrame const * | pLayout | ||
) |
Definition at line 195 of file authfld.cxx.
References CreateTOXInternational(), DelSequenceArray(), SwTOXSortTabBase::equivalent(), SwFieldType::GatherFields(), SwAuthorityField::GetAuthEntry(), GetBodyTextNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwFormatField::GetField(), SwTOXAuthority::GetFieldFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentRedlineAccess(), SwContentNode::getLayoutFrame(), SwNode::GetNodes(), SwTextField::GetpTextNode(), SwTextNode::GetText(), SwTextField::GetTextNode(), i, SwNodes::IsDocNodes(), sw::IsFieldDeletedInModel(), SwRootFrame::IsHideRedlines(), SwFrame::IsInDocBody(), m_DataArr, m_pDoc, m_SequArr, m_SequArrRLHidden, and SwTOXSortTabBase::sort_lt().
Referenced by SwAuthorityField::ConditionalExpandAuthIdentifier(), and SwAuthorityField::ExpandCitation().
|
inline |
Definition at line 143 of file authfld.hxx.
Referenced by QueryValue().
const SwTOXSortKey * SwAuthorityFieldType::GetSortKey | ( | sal_uInt16 | nIdx | ) | const |
Definition at line 441 of file authfld.cxx.
References m_SortKeyArr.
Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXAuthority::sort_lt().
sal_uInt16 SwAuthorityFieldType::GetSortKeyCount | ( | ) | const |
Definition at line 436 of file authfld.cxx.
References m_SortKeyArr.
Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXAuthority::sort_lt().
|
inline |
Definition at line 123 of file authfld.hxx.
Referenced by SwAuthorityField::ConditionalExpandAuthIdentifier(), SwAuthorityField::GetAuthority(), SwTOXAuthority::GetText(), SwMultiTOXTabDialog::GetTOXDescription(), and SwMultiTOXTabDialog::SwMultiTOXTabDialog().
|
inline |
Definition at line 110 of file authfld.hxx.
Referenced by SwAuthorityField::ConditionalExpandAuthIdentifier(), SwAuthorityField::ExpandCitation(), SwMultiTOXTabDialog::GetTOXDescription(), and SwMultiTOXTabDialog::SwMultiTOXTabDialog().
|
inline |
Definition at line 125 of file authfld.hxx.
Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXAuthority::sort_lt().
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 354 of file authfld.cxx.
References aSeq, AUTH_FIELD_END, SwTOXSortKey::bSortAscending, LanguageTag::convertToLanguageType(), SwTOXSortKey::eField, FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_LOCALE, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PROP_SEQ, i, m_bIsSequence, m_bSortByDocument, m_cPrefix, m_cSuffix, m_SortKeyArr, pValues, SAL_MAX_UINT16, SetLanguage(), SetSortAlgorithm(), UNO_NAME_IS_SORT_ASCENDING, and UNO_NAME_SORT_KEY.
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 302 of file authfld.cxx.
References SwTOXSortKey::bSortAscending, SwTOXSortKey::eField, FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_LOCALE, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PROP_SEQ, GetLanguage(), LanguageTag::getLocale(), GetSortAlgorithm(), i, m_bIsSequence, m_bSortByDocument, m_cPrefix, m_cSuffix, m_SortKeyArr, pValues, UNO_NAME_IS_SORT_ASCENDING, and UNO_NAME_SORT_KEY.
void SwAuthorityFieldType::RemoveField | ( | const SwAuthEntry * | nHandle | ) |
Definition at line 95 of file authfld.cxx.
References DelSequenceArray(), sw::proofreadingiterator::get(), m_DataArr, and m_nCount.
Referenced by SwAuthorityField::ChgTyp(), and SwAuthorityField::SetPar1().
|
inline |
Definition at line 90 of file authfld.hxx.
|
inline |
Definition at line 141 of file authfld.hxx.
References nLang.
Referenced by PutValue(), and SwTOXMgr::UpdateOrInsertTOX().
|
inline |
Definition at line 117 of file authfld.hxx.
Referenced by SwTOXMgr::UpdateOrInsertTOX().
|
inline |
Definition at line 111 of file authfld.hxx.
Referenced by SwTOXMgr::UpdateOrInsertTOX().
|
inline |
Definition at line 144 of file authfld.hxx.
References rSet.
Referenced by PutValue(), and SwTOXMgr::UpdateOrInsertTOX().
|
inline |
Definition at line 126 of file authfld.hxx.
Referenced by SwTOXMgr::UpdateOrInsertTOX().
void SwAuthorityFieldType::SetSortKeys | ( | sal_uInt16 | nKeyCount, |
SwTOXSortKey const | nKeys[] | ||
) |
Definition at line 449 of file authfld.cxx.
References AUTH_FIELD_END, i, and m_SortKeyArr.
Referenced by SwTOXMgr::UpdateOrInsertTOX().
|
overrideprivatevirtual |
Definition at line 429 of file authfld.cxx.
References DelSequenceArray().
|
private |
Definition at line 74 of file authfld.hxx.
Referenced by PutValue(), and QueryValue().
|
private |
Definition at line 75 of file authfld.hxx.
Referenced by PutValue(), and QueryValue().
|
private |
Definition at line 72 of file authfld.hxx.
Referenced by PutValue(), and QueryValue().
|
private |
Definition at line 73 of file authfld.hxx.
Referenced by PutValue(), and QueryValue().
|
private |
Definition at line 68 of file authfld.hxx.
Referenced by AddField(), AppendField(), ChangeEntryContent(), dumpAsXml(), GetAllEntryIdentifiers(), GetEntryByIdentifier(), GetSequencePos(), and RemoveField().
|
private |
Definition at line 76 of file authfld.hxx.
Referenced by CreateTOXInternational().
|
private |
Definition at line 67 of file authfld.hxx.
Referenced by Copy(), and GetSequencePos().
|
private |
Definition at line 69 of file authfld.hxx.
Referenced by GetSequencePos().
|
private |
|
private |
Definition at line 71 of file authfld.hxx.
Referenced by GetSortKey(), GetSortKeyCount(), PutValue(), QueryValue(), and SetSortKeys().
|
private |
Definition at line 77 of file authfld.hxx.
Referenced by CreateTOXInternational().