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>
35 class XNumberingTypeInfo;
86 sal_uInt32 nFormatId,
SwWrtShell* pShell =
nullptr,
sal_Unicode cSep =
' ',
bool bIsAutoLanguage =
true) :
91 m_nFormatId(nFormatId),
94 m_bIsAutomaticLanguage(bIsAutoLanguage),
116 SAL_DLLPRIVATE css::uno::Reference<css::text::XNumberingTypeInfo>
const & GetNumberingInfo()
const;
123 { m_pWrtShell = pShell; }
129 void UpdateCurField(sal_uInt32 nFormat,
130 const OUString& rPar1,
131 const OUString& rPar2,
132 std::unique_ptr<SwField> _pField =
nullptr);
143 void SetMacroPath(
const OUString& rPath);
148 bool GoNextPrev(
bool bNext =
true,
SwFieldType* pTyp =
nullptr );
150 bool GoPrev() {
return GoNextPrev(
false ); }
152 bool IsDBNumeric(
const OUString& rDBName,
const OUString& rTableQryName,
153 bool bIsTable,
const OUString& rFieldName);
156 bool CanInsertRefMark( std::u16string_view rStr );
159 size_t GetFieldTypeCount()
const;
163 void RemoveFieldType(
SwFieldIds nResId,
const OUString& rName);
167 static const SwFieldGroupRgn& GetGroupRange(
bool bHtmlMode, sal_uInt16 nGrpId);
176 static const OUString & GetTypeStr(sal_uInt16 nPos);
186 OUString GetFormatStr(
SwFieldTypesEnum nTypeId, sal_uInt32 nFormatId)
const;
187 sal_uInt16 GetFormatId(
SwFieldTypesEnum nTypeId, sal_uInt32 nFormatId)
const;
193 inline void SetEvalExpFields(
bool bEval);
Instances of SwFields and those derived from it occur 0 to n times.
const OUString & GetCurFieldPar2() const
css::uno::Any m_aDBColumn
void SetEvalExpFields(bool bEval)
Base class of all fields.
void SetWrtShell(SwWrtShell *pShell)
css::uno::Reference< css::text::XNumberingTypeInfo > m_xNumberingInfo
exports com.sun.star. container
Used by the UI to modify the document model.
bool m_bIsAutomaticLanguage
const OUString & GetMacroName() const
SwFieldTypesEnum m_nTypeId
css::uno::Any m_aDBConnection
exports com.sun.star. text
SwInsertField_Data(SwFieldTypesEnum nType, sal_uInt16 nSub, const OUString &rPar1, const OUString &rPar2, sal_uInt32 nFormatId, SwWrtShell *pShell=nullptr, sal_Unicode cSep= ' ', bool bIsAutoLanguage=true)
PaM is Point and Mark: a selection of the document model.
std::unique_ptr< SwPaM > m_pAnnotationRange
Marks the PostIt field's annotation start/end if it differs from the cursor selection.
const OUString & GetMacroPath() const
SwFieldTypesEnum
List of FieldTypes at UI.
const OUString & GetCurFieldPar1() const
OUString ChooseMacro(weld::Window *pParent, const css::uno::Reference< css::frame::XModel > &rxLimitToDocument, const css::uno::Reference< css::frame::XFrame > &xDocFrame, bool bChooseOnly)
css::uno::Any m_aDBDataSource