21#include <document.hxx>
27 , bCloseOnButtonUp(false)
29 , bMultiSelection(false)
30 , m_xFtAssign(m_xBuilder->weld_label(
"area"))
31 , m_xEdAssign(new
formula::RefEdit(m_xBuilder->weld_entry(
"assign")))
32 , m_xRbAssign(new
formula::RefButton(m_xBuilder->weld_button(
"assignref")))
33 , m_xBtnOk(m_xBuilder->weld_button(
"ok"))
34 , m_xBtnCancel(m_xBuilder->weld_button(
"cancel"))
92 aVal = aVal.replaceAt( aSel.
Min(), aSel.
Len(), aRefStr );
171 OUString aResult=m_xEdAssign->GetText();
172 aCloseHdl.Call(&aResult);
174 DoClose( ScSimpleRefDlgWrapper::GetChildWindowId() );
175 aUnoLink.
Call( aResult );
183 OUString aResult=m_xEdAssign->GetText();
184 aCloseHdl.Call(
nullptr);
186 DoClose( ScSimpleRefDlgWrapper::GetChildWindowId() );
187 aUnoLink.
Call( aResult );
SC_DLLPUBLIC void Format(OStringBuffer &r, ScRefFlags nFlags, const ScDocument *pDocument=nullptr, const Details &rDetails=detailsOOOa1) const
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const
OUString Format(const ScDocument &rDocument, ScRefFlags nFlags=ScRefFlags::ZERO, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1, bool bFullAddressNotation=false) const
Returns string with formatted cell range from aStart to aEnd, according to provided address conventio...
virtual void RefInputStart(formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
virtual void RefInputDone(bool bForced=false) override
void SetDispatcherLock(bool bLock)
std::unique_ptr< weld::Label > m_xFtAssign
std::unique_ptr< weld::Button > m_xBtnCancel
Link< const OUString &, void > aChangeHdl
std::unique_ptr< weld::Button > m_xBtnOk
std::unique_ptr< formula::RefButton > m_xRbAssign
virtual bool IsRefInputMode() const override
void SetFlags(bool bSetCloseOnButtonUp, bool bSetSingleCell, bool bSetMultiSelection)
Link< const OUString *, void > aCloseHdl
void SetCloseHdl(const Link< const OUString *, void > &rLink)
ScSimpleRefDlg(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent)
void SetUnoLinks(const Link< const OUString &, void > &rDone, const Link< const OUString &, void > &rAbort, const Link< const OUString &, void > &rChange)
Link< const OUString &, void > aDoneHdl
virtual void RefInputDone(bool bForced=false) override
std::unique_ptr< formula::RefEdit > m_xEdAssign
void SetRefString(const OUString &rStr)
virtual void SetReference(const ScRange &rRef, ScDocument &rDoc) override
Link< const OUString &, void > aAbortedHdl
virtual ~ScSimpleRefDlg() override
virtual void Close() override
virtual void SetActive() override
virtual void FillInfo(SfxChildWinInfo &) const override
virtual void FillInfo(SfxChildWinInfo &) const
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(ScSimpleRefDlg, OkBtnHdl, weld::Button &, void)