45 const OUString& rID,
const SfxItemSet *pAttrSet)
46 :
SfxTabPage(pPage, pController, rUIXMLDescription, rID, pAttrSet)
47 , m_pCurField(nullptr)
48 , m_pWrtShell(nullptr)
53 , m_bFieldDlgHtmlMode(false)
55 , m_bFirstHTMLInit(true)
117 const OUString& rPar2, sal_uInt32 nFormatId,
130 SwInsertField_Data aData(nTypeId, nSubType, rPar1, rPar2, nFormatId,
nullptr, cSeparator, bIsAutomaticLanguage );
135 uno::Reference< frame::XDispatchRecorder > xRecorder =
137 if ( xRecorder.is() )
153 (FN_PARAM_1,rPar1.getToken(0,
DB_DELIM, nIdx)));
157 (FN_PARAM_2,rPar1.getToken(0,
DB_DELIM, nIdx)));
163 (FN_PARAM_3, OUString(cSeparator)));
177 OUString sPar1(rPar1);
178 OUString sPar2(rPar2);
198 sPar1 = rPar1.copy(
nPos);
211 OUString sColumn = rPar1.getToken(0,
DB_DELIM, nIdx);
213 auto pOldType =
static_cast<SwDBFieldType*
>(pTmpField->GetTyp());
215 if(
auto pFormatField = pOldType->FindFormatForField(
m_pCurField))
217 pFormatField->RegisterToFieldType(*pType);
218 pTmpField->ChgTyp(pType);
237 !(pTmpField->GetSubType() &
INP_TXT))
259 pTmpField->SetSubType(nSubType);
260 pTmpField->SetAutomaticLanguage(bIsAutomaticLanguage);
326 if (pDlg->GetCurTabPage() ==
this)
327 pDlg->EnableInsert(bEnable);
const css::uno::Reference< css::frame::XDispatchRecorder > & GetRecorder() const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
virtual weld::Button & GetOKButton() const=0
void AppendItem(const SfxPoolItem &)
void Done(bool bRemove=false)
virtual void Reset(const SfxItemSet *)
SfxOkDialogController * GetDialogController() const
SfxBindings & GetBindings()
SfxViewFrame & GetViewFrame() const
void SetName(const OUString &rName)
void StartAllAction()
For all views of this document.
void SetUndoNoResetModified()
SwFieldType * InsertFieldType(const SwFieldType &)
insert field type
void EnableInsert(bool bEnable)
void UpdateCurField(sal_uInt32 nFormat, const OUString &rPar1, const OUString &rPar2, std::unique_ptr< SwField > _pField=nullptr)
void EvalExpFields(SwWrtShell *pSh)
SwFieldType * GetFieldType(SwFieldIds nResId, size_t nField=0) const
void SetWrtShell(SwWrtShell *pShell)
bool InsertField(SwInsertField_Data &rData)
void InsertField(SwFieldTypesEnum nTypeId, sal_uInt16 nSubType, const OUString &rPar1, const OUString &rPar2, sal_uInt32 nFormatId, sal_Unicode cDelim=' ', bool bIsAutomaticLanguage=true)
void SetWrtShell(SwWrtShell *m_pWrtShell)
void SavePos(const weld::TreeView &rLst1)
virtual ~SwFieldPage() override
void EditNewField(bool bOnlyActivate=false)
OUString m_aLstStrArr[coLBCount]
void RestorePos(weld::TreeView &rLst1)
void InsertHdl(weld::Widget *)
void EnableInsert(bool bEnable)
virtual void Activate() override
sal_Int32 m_nSelectionSel
SwFieldPage(weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pAttrSet)
std::unique_ptr< SwField > CopyField() const
void SetOutlineLvl(sal_uInt8 n)
void SetDelimiter(const OUString &s)
virtual OUString GetPar2() const override
Query formula.
void SetPromptText(const OUString &rStr)
SwWrtShell * GetWrtShellPtr() const
Used by the UI to modify the document model.
virtual int find_text(const OUString &rText) const=0
virtual OUString get_selected_text() const=0
virtual int n_children() const=0
virtual void select(int pos)=0
#define FN_INSERT_DBFIELD
#define FN_PARAM_FIELD_SUBTYPE
#define FN_PARAM_FIELD_FORMAT
#define FN_PARAM_FIELD_TYPE
SwFieldTypesEnum
List of FieldTypes at UI.
IMPL_LINK(SwFieldPage, TreeViewInsertHdl, weld::TreeView &, rBox, bool)
IMPL_LINK_NOARG(SwFieldPage, NumFormatHdl, weld::TreeView &, bool)
constexpr OUStringLiteral aData
const SwDocInfoSubType DI_CUSTOM
const SwGetSetExpType GSE_SEQ
Sequence.
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
SwWrtShell * GetActiveWrtShell()
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)