19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_FLDMGR_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_FLDMGR_HXX
25#include <com/sun/star/uno/Reference.h>
26#include <com/sun/star/uno/Any.h>
37 class XNumberingTypeInfo;
88 sal_uInt32 nFormatId,
SwWrtShell* pShell =
nullptr,
sal_Unicode cSep =
' ',
bool bIsAutoLanguage =
true) :
118 SAL_DLLPRIVATE css::uno::Reference<css::text::XNumberingTypeInfo>
const & GetNumberingInfo()
const;
125 { m_pWrtShell = pShell; }
131 void UpdateCurField(sal_uInt32 nFormat,
132 const OUString& rPar1,
133 const OUString& rPar2,
134 std::unique_ptr<SwField> _pField =
nullptr);
145 void SetMacroPath(
const OUString& rPath);
150 bool GoNextPrev(
bool bNext =
true,
SwFieldType* pTyp =
nullptr );
152 bool GoPrev() {
return GoNextPrev(
false ); }
154 bool IsDBNumeric(
const OUString& rDBName,
const OUString& rTableQryName,
155 bool bIsTable,
const OUString& rFieldName);
158 bool CanInsertRefMark( std::u16string_view rStr );
161 size_t GetFieldTypeCount()
const;
165 void RemoveFieldType(
SwFieldIds nResId,
const OUString& rName);
169 static const SwFieldGroupRgn& GetGroupRange(
bool bHtmlMode, sal_uInt16 nGrpId);
178 static const OUString & GetTypeStr(sal_uInt16 nPos);
188 OUString GetFormatStr(
SwFieldTypesEnum nTypeId, sal_uInt32 nFormatId)
const;
189 sal_uInt16 GetFormatId(
SwFieldTypesEnum nTypeId, sal_uInt32 nFormatId)
const;
195 inline void SetEvalExpFields(
bool bEval);
css::uno::Reference< css::text::XNumberingTypeInfo > m_xNumberingInfo
void SetWrtShell(SwWrtShell *pShell)
const OUString & GetMacroPath() const
void SetEvalExpFields(bool bEval)
const OUString & GetCurFieldPar2() const
const OUString & GetMacroName() const
const OUString & GetCurFieldPar1() const
Instances of SwFields and those derived from it occur 0 to n times.
Base class of all fields.
PaM is Point and Mark: a selection of the document model.
Used by the UI to modify the document model.
SwFieldTypesEnum
List of FieldTypes at UI.
OUString ChooseMacro(weld::Window *pParent, const uno::Reference< frame::XModel > &rxLimitToDocument, const uno::Reference< frame::XFrame > &xDocFrame, bool bChooseOnly)
bool m_bIsAutomaticLanguage
css::uno::Any m_aDBColumn
std::optional< SwPaM > m_oAnnotationRange
Marks the PostIt field's annotation start/end if it differs from the cursor selection.
css::uno::Any m_aDBDataSource
SwFieldTypesEnum m_nTypeId
SwInsertField_Data(SwFieldTypesEnum nType, sal_uInt16 nSub, OUString aPar1, OUString aPar2, sal_uInt32 nFormatId, SwWrtShell *pShell=nullptr, sal_Unicode cSep=' ', bool bIsAutoLanguage=true)
css::uno::Any m_aDBConnection