73 m_xNumberCharEdit->grab_focus();
74 m_xOkBtn->set_sensitive( !m_xNumberCharEdit->get_text().isEmpty() || m_bExtCharAvailable );
79 m_xNumberCharBtn->set_active(
true);
80 m_xOkBtn->set_sensitive( !m_xNumberCharEdit->get_text().isEmpty() );
85 m_xOkBtn->set_sensitive(
true);
90 m_xNumberCharBtn->set_active(
true);
93 m_rSh.GetCurAttr( aSet );
102 if (
RET_OK != pDlg->Execute())
110 m_xNumberCharEdit->set_text(pItem->
GetValue());
115 m_eCharSet = pFontItem->GetCharSet();
116 vcl::Font aFont(m_aFontName, pFontItem->GetStyleName(), m_xNumberCharEdit->get_font().GetFontSize());
118 aFont.SetPitch( pFontItem->GetPitch() );
119 m_xNumberCharEdit->set_font(aFont);
122 m_bExtCharAvailable =
true;
123 m_xOkBtn->set_sensitive(!m_xNumberCharEdit->get_text().isEmpty());
131 m_rSh.ResetSelect(
nullptr,
false);
132 if (&rBtn == m_xNextBT.get())
133 m_rSh.GotoNextFootnoteAnchor();
135 m_rSh.GotoPrevFootnoteAnchor();
141 : GenericDialogController(pParent,
"modules/swriter/ui/insertfootnote.ui",
"InsertFootnoteDialog")
143 , m_eCharSet(RTL_TEXTENCODING_DONTKNOW)
144 , m_bExtCharAvailable(false)
146 , m_xNumberFrame(m_xBuilder->weld_widget(
"numberingframe"))
147 , m_xNumberAutoBtn(m_xBuilder->weld_radio_button(
"automatic"))
148 , m_xNumberCharBtn(m_xBuilder->weld_radio_button(
"character"))
149 , m_xNumberCharEdit(m_xBuilder->weld_entry(
"characterentry"))
150 , m_xNumberExtChar(m_xBuilder->weld_button(
"choosecharacter"))
151 , m_xFootnoteBtn(m_xBuilder->weld_radio_button(
"footnote"))
152 , m_xEndNoteBtn(m_xBuilder->weld_radio_button(
"endnote"))
153 , m_xOkBtn(m_xBuilder->weld_button(
"ok"))
154 , m_xPrevBT(m_xBuilder->weld_button(
"prev"))
155 , m_xNextBT(m_xBuilder->weld_button(
"next"))
195 if (!aFootnoteNote.
GetNumStr().isEmpty())
215 const bool bNumChar = !sNumStr.isEmpty();
#define LINK(Instance, Class, Member)
std::shared_ptr< weld::Dialog > m_xDialog
bool Right(sal_uInt16 nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
IMPL_LINK_NOARG(SwInsFootNoteDlg, NumberCharHdl, weld::Button &, void)
bool GotoNextFootnoteAnchor()
virtual const SfxItemSet * GetOutputItemSet() const =0
static SvxAbstractDialogFactory * Create()
void SetAttrSet(const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
void SetCharSet(rtl_TextEncoding)
FontPitch GetPitch() const
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
FontFamily GetFamily() const
Used by the UI to modify the document model.
tools::Long ResetSelect(const Point *, bool)
rtl_TextEncoding GetCharSet() const
const OUString & GetStyleName() const
const SfxItemPool & GetAttrPool() const
void SetFamilyName(const OUString &rFamilyName)
void EndAction(const bool bIdleEnd=false, const bool DoSetPosX=false)
const OUString & GetValue() const
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
virtual VclPtr< SfxAbstractDialog > CreateCharMapDialog(weld::Window *pParent, const SfxItemSet &rAttr, const css::uno::Reference< css::frame::XFrame > &rFrame)=0
bool GotoPrevFootnoteAnchor()
const OUString & GetFamilyName() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
bool SetCurFootnote(const SwFormatFootnote &rFillFootnote)
static void SetCareDialog(const std::shared_ptr< weld::Window > &rNew)
bool Left(sal_uInt16 nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
Reference< XExecutableDialog > m_xDialog
bool GetCurFootnote(SwFormatFootnote *pToFillFootnote=nullptr)
Query and set footnote-text/number. Set... to current SSelection!
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
const sal_uInt16 CRSR_SKIP_CHARS
IMPL_LINK(SwInsFootNoteDlg, NextPrevHdl, weld::Button &, rBtn, void)