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)
sal_uInt16 GetCurTypeId () const
void GetSubTypes (sal_uInt16 nId, std::vector< OUString > &rToFill)
sal_uInt16 GetFormatCount (sal_uInt16 nTypeId, bool bHtmlMode) const
OUString GetFormatStr (sal_uInt16 nTypeId, sal_uInt32 nFormatId) const
sal_uInt16 GetFormatId (sal_uInt16 nTypeId, sal_uInt32 nFormatId) const
sal_uInt32 GetDefaultFormat (sal_uInt16 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 (sal_uInt16 nTypeId, sal_uInt16 nSubType)
static sal_uInt16 GetTypeId (sal_uInt16 nPos)
static OUString GetTypeStr (sal_uInt16 nPos)
static sal_uInt16 GetPos (sal_uInt16 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 97 of file fldmgr.hxx.

Constructor & Destructor Documentation

SwFieldMgr::SwFieldMgr ( SwWrtShell pSh = nullptr)

Definition at line 371 of file fldmgr.cxx.

References GetCurField().

SwFieldMgr::~SwFieldMgr ( )

Definition at line 379 of file fldmgr.cxx.

Member Function Documentation

bool SwFieldMgr::CanInsertRefMark ( const OUString &  rStr)

Definition at line 384 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 1786 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 133 of file fldmgr.hxx.

const OUString& SwFieldMgr::GetCurFieldPar2 ( ) const

Definition at line 134 of file fldmgr.hxx.

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

Definition at line 900 of file fldmgr.cxx.

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

Referenced by SwTextShell::Execute().

sal_uInt32 SwFieldMgr::GetDefaultFormat ( sal_uInt16  nTypeId,
bool  bIsText,
SvNumberFormatter pFormatter 
SwFieldType * SwFieldMgr::GetFieldType ( SwFieldIds  nResId,
size_t  nField = 0 
) const
SwFieldType * SwFieldMgr::GetFieldType ( SwFieldIds  nResId,
const OUString &  rName 
) const

Definition at line 425 of file fldmgr.cxx.

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

size_t SwFieldMgr::GetFieldTypeCount ( ) const

Definition at line 411 of file fldmgr.cxx.

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

Referenced by SwView::InsertCaption().

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

Definition at line 144 of file fldmgr.hxx.

const OUString& SwFieldMgr::GetMacroPath ( ) const

Definition at line 143 of file fldmgr.hxx.

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

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

Definition at line 1854 of file fldmgr.cxx.

References comphelper::getProcessComponentContext(), and m_xNumberingInfo.

Referenced by GetFormatCount().

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

Definition at line 148 of file fldmgr.hxx.

Referenced by SwFieldEditDlg::Init().

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

Definition at line 149 of file fldmgr.hxx.

Referenced by SwFieldEditDlg::Init().

bool SwFieldMgr::InsertField ( const SwInsertField_Data rData)

Definition at line 906 of file fldmgr.cxx.

References aEntries, Author, CanInsertRefMark(), Chapter, SwWrtShell::ChgDBData(), CombinedChars, CRSR_SKIP_CHARS, sfx2::cTokenSeparator, DatabaseName, DATE_VAR, DATEFLD, DateTime, DB_DELIM, DbNextSet, DbNumSet, DbSetNumber, SwCursorShell::DeleteCurrent, DocInfo, DocStat, Dropdown, SwEditShell::EndAllAction(), ExtUser, Filename, FIXEDFLD, FMT_REF_ARY, FN_NUMBER_FORMAT, 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, comphelper::string::getTokenCount(), SwSetExpFieldType::GetType(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), nsSwGetSetExpType::GSE_FORMULA, nsSwGetSetExpType::GSE_SEQ, HiddenPara, HiddenText, INP_VAR, Input, SwWrtShell::Insert(), SwEditShell::InsertFieldType(), SwEditShell::InsertURL(), 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_pParent, SwInsertField_Data::m_pSh, m_pWrtShell, m_sCurFrame, SwInsertField_Data::m_sPar1, SwInsertField_Data::m_sPar2, Macro, MAXLEVEL, SwClient::ModifyNotification(), SwDBData::nCommandType, nLang, nPos, nTablePos, nToken, PageNumber, PG_NEXT, PG_PREV, PG_RANDOM, SwWrtShell::Pop(), Postit, SwCursorShell::Push(), RefPageGet, RefPageSet, SwWrtShell::Right(), SAL_N_ELEMENTS, SwDBData::sCommand, Script, SwDBData::sDataSource, SwEditShell::SetAttrItem(), SwUserFieldType::SetContent(), SwSetExpFieldType::SetDelimiter(), SetExp, SwSetExpFieldType::SetOutlineLvl(), 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, TIMEFLD, TYP_AUTHORFLD, TYP_AUTHORITY, TYP_CHAPTERFLD, TYP_COMBINED_CHARS, TYP_CONDTXTFLD, TYP_DATEFLD, TYP_DBFLD, TYP_DBNAMEFLD, TYP_DBNEXTSETFLD, TYP_DBNUMSETFLD, TYP_DBSETNUMBERFLD, TYP_DDEFLD, TYP_DOCINFOFLD, TYP_DOCSTATFLD, TYP_DROPDOWN, TYP_EXTUSERFLD, TYP_FILENAMEFLD, TYP_FORMELFLD, TYP_GETFLD, TYP_GETREFFLD, TYP_GETREFPAGEFLD, TYP_HIDDENPARAFLD, TYP_HIDDENTXTFLD, TYP_INPUTFLD, TYP_INTERNETFLD, TYP_JUMPEDITFLD, TYP_MACROFLD, TYP_NEXTPAGEFLD, TYP_PAGENUMBERFLD, TYP_PARAGRAPHSIGFLD, TYP_POSTITFLD, TYP_PREVPAGEFLD, TYP_SCRIPTFLD, TYP_SEQFLD, TYP_SETFLD, TYP_SETREFFLD, TYP_SETREFPAGEFLD, TYP_TEMPLNAMEFLD, TYP_TIMEFLD, TYP_USERFLD, SwEditShell::UpdateExpFields(), SwEditShell::UpdateOneField(), SwEditShell::UpdateTable(), and User.

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

void SwFieldMgr::InsertFieldType ( SwFieldType const &  rType)

Definition at line 891 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 403 of file fldmgr.cxx.

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

void SwFieldMgr::SetEvalExpFields ( bool  bEval)

Definition at line 196 of file fldmgr.hxx.

References m_bEvalExp.

void SwFieldMgr::SetMacroPath ( const OUString &  rPath)

Definition at line 1803 of file fldmgr.cxx.

References m_sMacroName, and m_sMacroPath.

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

void SwFieldMgr::SetWrtShell ( SwWrtShell pShell)

Definition at line 121 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 102 of file fldmgr.hxx.

Referenced by GetCurField().

OUString SwFieldMgr::m_aCurPar2

Definition at line 103 of file fldmgr.hxx.

Referenced by GetCurField().

bool SwFieldMgr::m_bEvalExp

Definition at line 110 of file fldmgr.hxx.

Referenced by InsertField(), and SetEvalExpFields().

sal_uInt32 SwFieldMgr::m_nCurFormat

Definition at line 109 of file fldmgr.hxx.

Referenced by GetCurField().

SwField* SwFieldMgr::m_pCurField

Definition at line 100 of file fldmgr.hxx.

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

SwWrtShell* SwFieldMgr::m_pWrtShell
OUString SwFieldMgr::m_sCurFrame

Definition at line 104 of file fldmgr.hxx.

Referenced by GetCurField(), and InsertField().

OUString SwFieldMgr::m_sMacroName

Definition at line 107 of file fldmgr.hxx.

Referenced by SetMacroPath().

OUString SwFieldMgr::m_sMacroPath

Definition at line 106 of file fldmgr.hxx.

Referenced by SetMacroPath().

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

Definition at line 114 of file fldmgr.hxx.

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

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