LibreOffice Module sw (master) 1
|
#include <expfld.hxx>
Public Member Functions | |
SwInputFieldList (SwEditShell *pShell, bool bBuildTmpLst=false) | |
~SwInputFieldList () | |
size_t | Count () const |
SwField * | GetField (size_t nId) |
void | GotoFieldPos (size_t nId) |
go to position of a field More... | |
void | PushCursor () |
save cursor More... | |
void | PopCursor () |
get cursor More... | |
bool | BuildSortLst () |
Put all that are new into SortList for updating. More... | |
Private Attributes | |
SwEditShell * | mpSh |
std::unique_ptr< SetGetExpFields > | mpSrtLst |
o3tl::sorted_vector< const SwTextField * > | maTmpLst |
Definition at line 348 of file expfld.hxx.
SwInputFieldList::SwInputFieldList | ( | SwEditShell * | pShell, |
bool | bBuildTmpLst = false |
||
) |
Definition at line 34 of file fldlst.cxx.
References Dropdown, SwFieldType::GatherFields(), SwViewShell::GetDoc(), IDocumentFieldsAccess::GetFieldTypes(), SwDoc::getIDocumentFieldsAccess(), SwTextField::GetTextNode(), i, Input, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), maTmpLst, mpSh, mpSrtLst, nType, SetExp, and SwFieldType::Which().
SwInputFieldList::~SwInputFieldList | ( | ) |
Definition at line 68 of file fldlst.cxx.
bool SwInputFieldList::BuildSortLst | ( | ) |
Put all that are new into SortList for updating.
Compare TmpLst with current fields.
All new ones are added to SortList so that they can be updated. For text blocks: update only input fields.
Definition at line 113 of file fldlst.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwFieldType::GatherFields(), SwViewShell::GetDoc(), IDocumentFieldsAccess::GetFieldTypes(), SwDoc::getIDocumentFieldsAccess(), SwTextField::GetTextNode(), i, Input, maTmpLst, mpSh, mpSrtLst, nType, SetExp, and SwFieldType::Which().
Referenced by SwGlossaryHdl::Expand(), and SwGlossaryHdl::InsertGlossary().
size_t SwInputFieldList::Count | ( | ) | const |
Definition at line 72 of file fldlst.cxx.
References mpSrtLst.
Referenced by SwWrtShell::UpdateInputFields().
SwField * SwInputFieldList::GetField | ( | size_t | nId | ) |
Definition at line 78 of file fldlst.cxx.
References SwFormatField::GetField(), SwTextAttr::GetFormatField(), and nId.
Referenced by SwWrtShell::UpdateInputFields().
void SwInputFieldList::GotoFieldPos | ( | size_t | nId | ) |
go to position of a field
Definition at line 99 of file fldlst.cxx.
References SwEditShell::EndAllAction(), SwCursorShell::GetCursor(), SwPaM::GetPoint(), mpSh, nId, and SwEditShell::StartAllAction().
Referenced by SwWrtShell::UpdateInputFields().
void SwInputFieldList::PopCursor | ( | ) |
get cursor
Definition at line 93 of file fldlst.cxx.
References SwCursorShell::DeleteCurrent, mpSh, and SwCursorShell::Pop().
Referenced by SwWrtShell::UpdateInputFields().
void SwInputFieldList::PushCursor | ( | ) |
save cursor
Definition at line 86 of file fldlst.cxx.
References SwCursorShell::ClearMark(), mpSh, and SwCursorShell::Push().
Referenced by SwWrtShell::UpdateInputFields().
|
private |
Definition at line 369 of file expfld.hxx.
Referenced by BuildSortLst(), and SwInputFieldList().
|
private |
Definition at line 367 of file expfld.hxx.
Referenced by BuildSortLst(), GotoFieldPos(), PopCursor(), PushCursor(), and SwInputFieldList().
|
private |
Definition at line 368 of file expfld.hxx.
Referenced by BuildSortLst(), Count(), and SwInputFieldList().