LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwFieldMgr Class Reference

#include <fldmgr.hxx>

Collaboration diagram for SwFieldMgr:

Public Member Functions

 SwFieldMgr (SwWrtShell *pSh=nullptr)
 ~SwFieldMgr ()
void SetWrtShell (SwWrtShell *pShell)
bool InsertField (const SwInsertField_Data &rData)
void UpdateCurField (sal_uInt32 nFormat, const OUString &rPar1, const OUString &rPar2, std::unique_ptr< SwField > _pField=nullptr)
const OUString & GetCurFieldPar1 () const
const OUString & GetCurFieldPar2 () const
SwFieldGetCurField ()
void InsertFieldType (SwFieldType const &rType)
bool ChooseMacro (weld::Window *pDialogParent)
void SetMacroPath (const OUString &rPath)
const OUString & GetMacroPath () const
const OUString & GetMacroName () const
bool GoNextPrev (bool bNext=true, SwFieldType *pTyp=nullptr)
bool GoNext ()
bool GoPrev ()
bool IsDBNumeric (const OUString &rDBName, const OUString &rTableQryName, bool bIsTable, const OUString &rFieldName)
bool CanInsertRefMark (const OUString &rStr)
size_t GetFieldTypeCount () const
SwFieldTypeGetFieldType (SwFieldIds nResId, size_t nField=0) const
SwFieldTypeGetFieldType (SwFieldIds nResId, const OUString &rName) const
void RemoveFieldType (SwFieldIds nResId, const OUString &rName)
SwFieldTypesEnum GetCurTypeId () const
void GetSubTypes (SwFieldTypesEnum nId, std::vector< OUString > &rToFill)
sal_uInt16 GetFormatCount (SwFieldTypesEnum nTypeId, bool bHtmlMode) const
OUString GetFormatStr (SwFieldTypesEnum nTypeId, sal_uInt32 nFormatId) const
sal_uInt16 GetFormatId (SwFieldTypesEnum nTypeId, sal_uInt32 nFormatId) const
sal_uInt32 GetDefaultFormat (SwFieldTypesEnum nTypeId, bool bIsText, SvNumberFormatter *pFormatter)
void SetEvalExpFields (bool bEval)
void EvalExpFields (SwWrtShell *pSh)

Static Public Member Functions

static const SwFieldGroupRgnGetGroupRange (bool bHtmlMode, sal_uInt16 nGrpId)
static sal_uInt16 GetGroup (SwFieldTypesEnum nTypeId, sal_uInt16 nSubType)
static SwFieldTypesEnum GetTypeId (sal_uInt16 nPos)
static OUString GetTypeStr (sal_uInt16 nPos)
static sal_uInt16 GetPos (SwFieldTypesEnum nTypeId)

Private Member Functions

SAL_DLLPRIVATE LanguageType GetCurrLanguage () const
SAL_DLLPRIVATE css::uno::Reference< css::text::XNumberingTypeInfo > const & GetNumberingInfo () const

Private Attributes

OUString m_aCurPar1
OUString m_aCurPar2
OUString m_sCurFrame
OUString m_sMacroPath
OUString m_sMacroName
sal_uInt32 m_nCurFormat
bool m_bEvalExp
css::uno::Reference< css::text::XNumberingTypeInfo > m_xNumberingInfo

Detailed Description

Definition at line 99 of file fldmgr.hxx.

Constructor & Destructor Documentation

SwFieldMgr::SwFieldMgr ( SwWrtShell pSh = nullptr)

Definition at line 363 of file fldmgr.cxx.

References GetCurField().

SwFieldMgr::~SwFieldMgr ( )

Definition at line 371 of file fldmgr.cxx.

Member Function Documentation

bool SwFieldMgr::CanInsertRefMark ( const OUString &  rStr)

Definition at line 376 of file fldmgr.cxx.

References SwCursorShell::GetCursorCnt(), SwEditShell::GetRefMark(), lcl_GetShell(), and m_pWrtShell.

Referenced by InsertField().

bool SwFieldMgr::ChooseMacro ( weld::Window pDialogParent)

Definition at line 1772 of file fldmgr.cxx.

References SfxApplication::ChooseScript(), and SetMacroPath().

void SwFieldMgr::EvalExpFields ( SwWrtShell pSh)
SwField * SwFieldMgr::GetCurField ( )
const OUString& SwFieldMgr::GetCurFieldPar1 ( ) const

Definition at line 135 of file fldmgr.hxx.

const OUString& SwFieldMgr::GetCurFieldPar2 ( ) const

Definition at line 136 of file fldmgr.hxx.

LanguageType SwFieldMgr::GetCurrLanguage ( ) const
SwFieldTypesEnum SwFieldMgr::GetCurTypeId ( ) const

Definition at line 884 of file fldmgr.cxx.

References SwField::GetTypeId(), m_pCurField, and Unknown.

Referenced by SwTextShell::Execute().

sal_uInt32 SwFieldMgr::GetDefaultFormat ( SwFieldTypesEnum  nTypeId,
bool  bIsText,
SvNumberFormatter pFormatter 

Definition at line 1812 of file fldmgr.cxx.

References Date, GetCurrLanguage(), SvNumberFormatter::GetStandardFormat(), and Time.

Referenced by SwTextShell::ExecField().

SwFieldType * SwFieldMgr::GetFieldType ( SwFieldIds  nResId,
size_t  nField = 0 
) const
SwFieldType * SwFieldMgr::GetFieldType ( SwFieldIds  nResId,
const OUString &  rName 
) const

Definition at line 417 of file fldmgr.cxx.

References SwEditShell::GetFieldType(), lcl_GetShell(), and m_pWrtShell.

size_t SwFieldMgr::GetFieldTypeCount ( ) const

Definition at line 403 of file fldmgr.cxx.

References SwEditShell::GetFieldTypeCount(), lcl_GetShell(), and m_pWrtShell.

Referenced by SwView::InsertCaption().

sal_uInt16 SwFieldMgr::GetFormatCount ( SwFieldTypesEnum  nTypeId,
bool  bHtmlMode 
) const
sal_uInt16 SwFieldMgr::GetFormatId ( SwFieldTypesEnum  nTypeId,
sal_uInt32  nFormatId 
) const
OUString SwFieldMgr::GetFormatStr ( SwFieldTypesEnum  nTypeId,
sal_uInt32  nFormatId 
) const
sal_uInt16 SwFieldMgr::GetGroup ( SwFieldTypesEnum  nTypeId,
sal_uInt16  nSubType 
const SwFieldGroupRgn & SwFieldMgr::GetGroupRange ( bool  bHtmlMode,
sal_uInt16  nGrpId 
const OUString& SwFieldMgr::GetMacroName ( ) const

Definition at line 146 of file fldmgr.hxx.

const OUString& SwFieldMgr::GetMacroPath ( ) const

Definition at line 145 of file fldmgr.hxx.

Referenced by SwFieldFuncPage::FillItemSet(), and SwFieldFuncPage::UpdateSubType().

Reference< XNumberingTypeInfo > const & SwFieldMgr::GetNumberingInfo ( ) const

Definition at line 1840 of file fldmgr.cxx.

References comphelper::getProcessComponentContext(), and m_xNumberingInfo.

Referenced by GetFormatCount().

sal_uInt16 SwFieldMgr::GetPos ( SwFieldTypesEnum  nTypeId)
void SwFieldMgr::GetSubTypes ( SwFieldTypesEnum  nId,
std::vector< OUString > &  rToFill 
SwFieldTypesEnum SwFieldMgr::GetTypeId ( sal_uInt16  nPos)
OUString SwFieldMgr::GetTypeStr ( sal_uInt16  nPos)
bool SwFieldMgr::GoNext ( )

Definition at line 150 of file fldmgr.hxx.

Referenced by SwFieldEditDlg::Init().

bool SwFieldMgr::GoNextPrev ( bool  bNext = true,
SwFieldType pTyp = nullptr 
bool SwFieldMgr::GoPrev ( )

Definition at line 151 of file fldmgr.hxx.

Referenced by SwFieldEditDlg::Init().

bool SwFieldMgr::InsertField ( const SwInsertField_Data rData)

Definition at line 890 of file fldmgr.cxx.

References aEntries, Author, Authority, CanInsertRefMark(), Chapter, SwWrtShell::ChgDBData(), CombinedChars, ConditionalText, CRSR_SKIP_CHARS, sfx2::cTokenSeparator, Database, DatabaseName, DatabaseNextSet, DatabaseNumberSet, DatabaseSetNumber, Date, DATE_VAR, DATEFLD, DateTime, DB_DELIM, DbNextSet, DbNumSet, DbSetNumber, DDE, SwCursorShell::DeleteCurrent, DocInfo, DocStat, DocumentInfo, DocumentStatistics, Dropdown, SwEditShell::EndAllAction(), ExtendedUser, ExtUser, Filename, FIXEDFLD, FMT_REF_ARY, FN_NUMBER_FORMAT, Formel, Get, SwViewShell::GetAttrPool(), SwDBManager::GetColumnFormat(), SwUserFieldType::GetContent(), GetCurrLanguage(), SwEditShell::GetDBData(), SwEditShell::GetDBManager(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDoc(), SvNumberFormatter::GetEntry(), GetExp, SwEditShell::GetFieldType(), SvNumberformat::GetFormatstring(), SwFEShell::GetFrameType(), SvtUserOptions::GetID(), SwEditShell::GetNumberFormatter(), SwDoc::GetNumberFormatter(), GetRef, GetRefPage, comphelper::string::getTokenCount(), SwSetExpFieldType::GetType(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), nsSwGetSetExpType::GSE_FORMULA, nsSwGetSetExpType::GSE_SEQ, HiddenPara, HiddenParagraph, HiddenText, INP_VAR, Input, SwWrtShell::Insert(), SwEditShell::InsertFieldType(), SwEditShell::InsertURL(), Internet, SwViewOption::IsFieldName(), JumpEdit, LANGUAGE_HUNGARIAN, lcl_GetShell(), SwWrtShell::Left(), SwInsertField_Data::m_aDBColumn, SwInsertField_Data::m_aDBConnection, SwInsertField_Data::m_aDBDataSource, m_bEvalExp, SwInsertField_Data::m_bIsAutomaticLanguage, SwInsertField_Data::m_cSeparator, SwInsertField_Data::m_nFormatId, SwInsertField_Data::m_nSubType, SwInsertField_Data::m_nTypeId, SwInsertField_Data::m_pAnnotationRange, SwInsertField_Data::m_pParent, SwInsertField_Data::m_pSh, m_pWrtShell, m_sCurFrame, SwInsertField_Data::m_sPar1, SwInsertField_Data::m_sPar2, Macro, MAXLEVEL, SwDBData::nCommandType, NextPage, nIndex, nLang, nPos, nTablePos, nToken, PageNumber, ParagraphSignature, PG_NEXT, PG_PREV, PG_RANDOM, SwWrtShell::Pop(), Postit, PreviousPage, SwCursorShell::Push(), RefPageGet, RefPageSet, SwWrtShell::Right(), SAL_N_ELEMENTS, SwDBData::sCommand, Script, SwDBData::sDataSource, Sequence, Set, SwEditShell::SetAttrItem(), SwUserFieldType::SetContent(), SwSetExpFieldType::SetDelimiter(), SetExp, SwSetExpFieldType::SetOutlineLvl(), SetRef, SetRefPage, SwEditShell::SetTableBoxFormulaAttrs(), SwEditShell::SignParagraph(), SwEditShell::StartAllAction(), SwWrtShell::StartInputFieldDlg(), comphelper::string::stripStart(), nsSwExtendedSubType::SUB_INVISIBLE, nsSwExtendedSubType::SUB_OWN_FMT, SVX_NUM_CHAR_SPECIAL, DateTime::SYSTEM, TABLE, TableOfAuthorities, TemplateName, Time, TIMEFLD, type, SwEditShell::UpdateExpFields(), SwFieldType::UpdateFields(), SwEditShell::UpdateOneField(), SwEditShell::UpdateTable(), User, and xColumn.

Referenced by SwTextShell::ExecDB(), SwTextShell::ExecField(), SwTextShell::Execute(), IMPL_LINK_NOARG(), SwMailMergeLayoutPage::InsertAddressFrame(), SwFieldPage::InsertField(), SwMailMergeLayoutPage::InsertGreeting(), InsertLabEnvText(), SwWrtShell::InsertPostIt(), and lcl_InsertLabText().

void SwFieldMgr::InsertFieldType ( SwFieldType const &  rType)

Definition at line 875 of file fldmgr.cxx.

References SwEditShell::InsertFieldType(), lcl_GetShell(), and m_pWrtShell.

Referenced by SwView::InsertCaption().

bool SwFieldMgr::IsDBNumeric ( const OUString &  rDBName,
const OUString &  rTableQryName,
bool  bIsTable,
const OUString &  rFieldName 
void SwFieldMgr::RemoveFieldType ( SwFieldIds  nResId,
const OUString &  rName 

Definition at line 395 of file fldmgr.cxx.

References lcl_GetShell(), m_pWrtShell, and SwEditShell::RemoveFieldType().

void SwFieldMgr::SetEvalExpFields ( bool  bEval)

Definition at line 198 of file fldmgr.hxx.

References m_bEvalExp.

void SwFieldMgr::SetMacroPath ( const OUString &  rPath)

Definition at line 1789 of file fldmgr.cxx.

References m_sMacroName, m_sMacroPath, and xFactory.

Referenced by ChooseMacro(), and SwFieldFuncPage::Reset().

void SwFieldMgr::SetWrtShell ( SwWrtShell pShell)

Definition at line 123 of file fldmgr.hxx.

Referenced by SwFieldPage::SetWrtShell().

void SwFieldMgr::UpdateCurField ( sal_uInt32  nFormat,
const OUString &  rPar1,
const OUString &  rPar2,
std::unique_ptr< SwField _pField = nullptr 

Member Data Documentation

OUString SwFieldMgr::m_aCurPar1

Definition at line 104 of file fldmgr.hxx.

Referenced by GetCurField().

OUString SwFieldMgr::m_aCurPar2

Definition at line 105 of file fldmgr.hxx.

Referenced by GetCurField().

bool SwFieldMgr::m_bEvalExp

Definition at line 112 of file fldmgr.hxx.

Referenced by InsertField(), and SetEvalExpFields().

sal_uInt32 SwFieldMgr::m_nCurFormat

Definition at line 111 of file fldmgr.hxx.

Referenced by GetCurField().

SwField* SwFieldMgr::m_pCurField

Definition at line 102 of file fldmgr.hxx.

Referenced by GetCurField(), GetCurTypeId(), GoNextPrev(), and UpdateCurField().

SwWrtShell* SwFieldMgr::m_pWrtShell
OUString SwFieldMgr::m_sCurFrame

Definition at line 106 of file fldmgr.hxx.

Referenced by GetCurField(), and InsertField().

OUString SwFieldMgr::m_sMacroName

Definition at line 109 of file fldmgr.hxx.

Referenced by SetMacroPath().

OUString SwFieldMgr::m_sMacroPath

Definition at line 108 of file fldmgr.hxx.

Referenced by SetMacroPath().

css::uno::Reference<css::text::XNumberingTypeInfo> SwFieldMgr::m_xNumberingInfo

Definition at line 116 of file fldmgr.hxx.

Referenced by GetFormatCount(), GetFormatId(), GetFormatStr(), and GetNumberingInfo().

The documentation for this class was generated from the following files: