73 m_xNumberCharBtn->set_active(
true);
74 m_xOkBtn->set_sensitive( !m_xNumberCharEdit->get_text().isEmpty() );
79 if (!rButton.get_active())
82 if (m_xNumberAutoBtn->get_active())
83 m_xOkBtn->set_sensitive(
true);
84 else if (m_xNumberCharBtn->get_active())
86 m_xNumberCharEdit->grab_focus();
87 m_xOkBtn->set_sensitive( !m_xNumberCharEdit->get_text().isEmpty() || m_bExtCharAvailable );
93 m_xNumberCharBtn->set_active(
true);
96 m_rSh.GetCurAttr( aSet );
101 aAllSet.
Put( rFont );
105 if (
RET_OK != pDlg->Execute())
108 const SfxStringItem* pItem = SfxItemSet::GetItem<SfxStringItem>(pDlg->GetOutputItemSet(), SID_CHARMAP,
false);
109 const SvxFontItem* pFontItem = SfxItemSet::GetItem<SvxFontItem>(pDlg->GetOutputItemSet(), SID_ATTR_CHAR_FONT,
false);
113 m_xNumberCharEdit->set_text(pItem->
GetValue());
119 vcl::Font aFont(m_aFontName, pFontItem->
GetStyleName(), m_xNumberCharEdit->get_font().GetFontSize());
122 m_xNumberCharEdit->set_font(aFont);
125 m_bExtCharAvailable =
true;
126 m_xOkBtn->set_sensitive(!m_xNumberCharEdit->get_text().isEmpty());
134 m_rSh.ResetSelect(
nullptr,
false);
135 if (&rBtn == m_xNextBT.get())
136 m_rSh.GotoNextFootnoteAnchor();
138 m_rSh.GotoPrevFootnoteAnchor();
144 : GenericDialogController(pParent,
"modules/swriter/ui/insertfootnote.ui",
"InsertFootnoteDialog")
146 , m_eCharSet(RTL_TEXTENCODING_DONTKNOW)
147 , m_bExtCharAvailable(false)
149 , m_xNumberFrame(m_xBuilder->weld_widget(
"numberingframe"))
150 , m_xNumberAutoBtn(m_xBuilder->weld_radio_button(
"automatic"))
151 , m_xNumberCharBtn(m_xBuilder->weld_radio_button(
"character"))
152 , m_xNumberCharEdit(m_xBuilder->weld_entry(
"characterentry"))
153 , m_xNumberExtChar(m_xBuilder->weld_button(
"choosecharacter"))
154 , m_xFootnoteBtn(m_xBuilder->weld_radio_button(
"footnote"))
155 , m_xEndNoteBtn(m_xBuilder->weld_radio_button(
"endnote"))
156 , m_xOkBtn(m_xBuilder->weld_button(
"ok"))
157 , m_xPrevBT(m_xBuilder->weld_button(
"prev"))
158 , m_xNextBT(m_xBuilder->weld_button(
"next"))
198 if (!aFootnoteNote.
GetNumStr().isEmpty())
218 const bool bNumChar = !sNumStr.isEmpty();
Reference< XExecutableDialog > m_xDialog
const OUString & GetValue() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
virtual VclPtr< SfxAbstractDialog > CreateCharMapDialog(weld::Window *pParent, const SfxItemSet &rAttr, const css::uno::Reference< css::frame::XFrame > &rFrame)=0
static SvxAbstractDialogFactory * Create()
FontFamily GetFamily() const
FontPitch GetPitch() const
const OUString & GetStyleName() const
rtl_TextEncoding GetCharSet() const
const OUString & GetFamilyName() const
bool GotoNextFootnoteAnchor()
void EndAction(const bool bIdleEnd=false)
bool GotoPrevFootnoteAnchor()
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
bool SetCurFootnote(const SwFormatFootnote &rFillFootnote)
void SetAttrSet(const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
bool GetCurFootnote(SwFormatFootnote *pToFillFootnote=nullptr)
Query and set footnote-text/number. Set... to current SSelection!
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
static void SetCareDialog(const std::shared_ptr< weld::Window > &rNew)
const SfxItemPool & GetAttrPool() const
Used by the UI to modify the document model.
bool Right(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
bool Left(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
tools::Long ResetSelect(const Point *, bool)
void SetPitch(FontPitch ePitch)
void SetCharSet(rtl_TextEncoding)
void SetFamilyName(const OUString &rFamilyName)
std::shared_ptr< weld::Dialog > m_xDialog
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
IMPL_LINK(SwInsFootNoteDlg, NumberToggleHdl, weld::Toggleable &, rButton, void)
IMPL_LINK_NOARG(SwInsFootNoteDlg, NumberEditHdl, weld::Entry &, void)
#define LINK(Instance, Class, Member)