LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sc::SparklineDataRangeDialog Class Reference

Dialog to change input data range for a sparkline
More...

#include <SparklineDataRangeDialog.hxx>

Inheritance diagram for sc::SparklineDataRangeDialog:
[legend]
Collaboration diagram for sc::SparklineDataRangeDialog:
[legend]

Public Member Functions

 SparklineDataRangeDialog (SfxBindings *pBindings, SfxChildWindow *pChildWindow, weld::Window *pWindow, ScViewData &rViewData)
 
virtual ~SparklineDataRangeDialog () override
 
void SetReference (const ScRange &rRef, ScDocument &rDocument) override
 
void SetActive () override
 
void Close () override
 
- Public Member Functions inherited from ScAnyRefDlgController
 ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OUString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override=0
 
virtual void AddRefEntry () override
 
virtual bool IsRefInputMode () const override
 
virtual bool IsTableLocked () const override
 
virtual bool IsDocAllowed (SfxObjectShell *pDocSh) const override
 
virtual void ShowReference (const OUString &rStr) override
 
virtual void HideReference (bool bDoneRefMode=true) override
 
virtual void ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override
 
virtual void ReleaseFocus (formula::RefEdit *pEdit) override
 
virtual void ViewShellChanged () override
 
void SwitchToDocument ()
 
virtual void SetActive () override=0
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 

Private Member Functions

 DECL_LINK (ButtonClicked, weld::Button &, void)
 
 DECL_LINK (EditFocusHandler, formula::RefEdit &, void)
 
 DECL_LINK (ButtonFocusHandler, formula::RefButton &, void)
 
 DECL_LINK (LoseEditFocusHandler, formula::RefEdit &, void)
 
 DECL_LINK (LoseButtonFocusHandler, formula::RefButton &, void)
 
 DECL_LINK (RefInputModifyHandler, formula::RefEdit &, void)
 
void setupValues ()
 
void perform ()
 
bool checkValidInputOutput ()
 

Private Attributes

ScViewDatamrViewData
 
ScDocumentmrDocument
 
std::shared_ptr< sc::SparklinempSparkline
 
ScRange maDataRange
 
formula::RefEditmpActiveEdit
 
bool mbDialogLostFocus
 
std::unique_ptr< weld::ButtonmxButtonOk
 
std::unique_ptr< weld::ButtonmxButtonCancel
 
std::unique_ptr< weld::LabelmxDataRangeLabel
 
std::unique_ptr< formula::RefEditmxDataRangeEdit
 
std::unique_ptr< formula::RefButtonmxDataRangeButton
 

Additional Inherited Members

- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Protected Member Functions inherited from ScRefHandler
void disposeRefHandler ()
 
bool DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
 
virtual void RefInputDone (bool bForced=false) override
 
bool ParseWithNames (ScRangeList &rRanges, std::u16string_view rStr, const ScDocument &pDoc)
 

Detailed Description

Dialog to change input data range for a sparkline

Definition at line 24 of file SparklineDataRangeDialog.hxx.

Constructor & Destructor Documentation

◆ SparklineDataRangeDialog()

sc::SparklineDataRangeDialog::SparklineDataRangeDialog ( SfxBindings pBindings,
SfxChildWindow pChildWindow,
weld::Window pWindow,
ScViewData rViewData 
)

◆ ~SparklineDataRangeDialog()

sc::SparklineDataRangeDialog::~SparklineDataRangeDialog ( )
overridevirtualdefault

Member Function Documentation

◆ checkValidInputOutput()

bool sc::SparklineDataRangeDialog::checkValidInputOutput ( )
private

◆ Close()

void sc::SparklineDataRangeDialog::Close ( )
overridevirtual

◆ DECL_LINK() [1/6]

sc::SparklineDataRangeDialog::DECL_LINK ( ButtonClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/6]

sc::SparklineDataRangeDialog::DECL_LINK ( ButtonFocusHandler  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [3/6]

sc::SparklineDataRangeDialog::DECL_LINK ( EditFocusHandler  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [4/6]

sc::SparklineDataRangeDialog::DECL_LINK ( LoseButtonFocusHandler  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [5/6]

sc::SparklineDataRangeDialog::DECL_LINK ( LoseEditFocusHandler  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [6/6]

sc::SparklineDataRangeDialog::DECL_LINK ( RefInputModifyHandler  ,
formula::RefEdit ,
void   
)
private

◆ perform()

void sc::SparklineDataRangeDialog::perform ( )
private

◆ SetActive()

void sc::SparklineDataRangeDialog::SetActive ( )
overridevirtual

◆ SetReference()

void sc::SparklineDataRangeDialog::SetReference ( const ScRange rRef,
ScDocument rDocument 
)
overridevirtual

◆ setupValues()

void sc::SparklineDataRangeDialog::setupValues ( )
private

Member Data Documentation

◆ maDataRange

ScRange sc::SparklineDataRangeDialog::maDataRange
private

Definition at line 32 of file SparklineDataRangeDialog.hxx.

Referenced by perform(), SetReference(), and setupValues().

◆ mbDialogLostFocus

bool sc::SparklineDataRangeDialog::mbDialogLostFocus
private

Definition at line 35 of file SparklineDataRangeDialog.hxx.

Referenced by SetActive().

◆ mpActiveEdit

formula::RefEdit* sc::SparklineDataRangeDialog::mpActiveEdit
private

Definition at line 34 of file SparklineDataRangeDialog.hxx.

Referenced by SetActive(), and SetReference().

◆ mpSparkline

std::shared_ptr<sc::Sparkline> sc::SparklineDataRangeDialog::mpSparkline
private

Definition at line 30 of file SparklineDataRangeDialog.hxx.

Referenced by perform(), and setupValues().

◆ mrDocument

ScDocument& sc::SparklineDataRangeDialog::mrDocument
private

Definition at line 28 of file SparklineDataRangeDialog.hxx.

Referenced by setupValues().

◆ mrViewData

ScViewData& sc::SparklineDataRangeDialog::mrViewData
private

Definition at line 27 of file SparklineDataRangeDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxButtonCancel

std::unique_ptr<weld::Button> sc::SparklineDataRangeDialog::mxButtonCancel
private

Definition at line 38 of file SparklineDataRangeDialog.hxx.

Referenced by SparklineDataRangeDialog().

◆ mxButtonOk

std::unique_ptr<weld::Button> sc::SparklineDataRangeDialog::mxButtonOk
private

Definition at line 37 of file SparklineDataRangeDialog.hxx.

Referenced by setupValues(), and SparklineDataRangeDialog().

◆ mxDataRangeButton

std::unique_ptr<formula::RefButton> sc::SparklineDataRangeDialog::mxDataRangeButton
private

Definition at line 42 of file SparklineDataRangeDialog.hxx.

Referenced by SparklineDataRangeDialog().

◆ mxDataRangeEdit

std::unique_ptr<formula::RefEdit> sc::SparklineDataRangeDialog::mxDataRangeEdit
private

◆ mxDataRangeLabel

std::unique_ptr<weld::Label> sc::SparklineDataRangeDialog::mxDataRangeLabel
private

Definition at line 40 of file SparklineDataRangeDialog.hxx.

Referenced by SparklineDataRangeDialog().


The documentation for this class was generated from the following files: