30 SwField* pField,
bool bPrevButton,
bool bNextButton)
31 : GenericDialogController(pParent,
"modules/swriter/ui/inputfielddialog.ui",
"InputFieldDialog")
33 , m_pInpField(nullptr)
34 , m_pSetField(nullptr)
36 , m_pPressedButton(nullptr)
37 , m_xLabelED(m_xBuilder->weld_entry(
"name"))
38 , m_xEditED(m_xBuilder->weld_text_view(
"text"))
39 , m_xPrevBT(m_xBuilder->weld_button(
"prev"))
40 , m_xNextBT(m_xBuilder->weld_button(
"next"))
41 , m_xOKBT(m_xBuilder->weld_button(
"ok"))
45 if( bPrevButton || bNextButton )
65 switch(nSubType & 0xff)
100 m_xOKBT->set_sensitive( bEnable );
103 if( !
aStr.isEmpty() )
119 OUString aTmp =
m_xEditED->get_text().replaceAll(
"\r",
"");
121 bool bModified =
false;
165 m_pPressedButton = m_xPrevBT.get();
171 m_pPressedButton = m_xNextBT.get();
Reference< XExecutableDialog > m_xDialog
bool isNumeric(const OUString &rStr) const
bool IsCursorReadonly() const
void StartAllAction()
For all views of this document.
void SetUndoNoResetModified()
SwFieldType * GetFieldType(size_t nField, SwFieldIds nResId=SwFieldIds::Unknown) const
get field types with a ResId, if 0 get all
virtual void UpdateFields()
Base class of all fields.
OUString ExpandField(bool bCached, SwRootFrame const *pLayout) const
expand the field.
SwFieldType * GetTyp() const
LanguageType GetLanguage() const
Language at field position.
const OUString & GetPromptText() const
virtual OUString GetPar2() const override
Query formula.
virtual void SetPar2(const OUString &rStr) override
The shared part of a user field.
OUString GetContent(sal_uInt32 nFormat=0) const
void SetContent(const OUString &rStr, sal_uInt32 nFormat=0)
SwRootFrame * GetLayout() const
Used by the UI to modify the document model.
IMPL_LINK_NOARG(SwFieldInputDlg, PrevHdl, weld::Button &, void)
LineEnd GetSystemLineEnd()
TOOLS_DLLPUBLIC OString convertLineEnd(const OString &rIn, LineEnd eLineEnd)
#define LINK(Instance, Class, Member)