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

Dialog to create or edit sparkline group attributes. More...

#include <SparklineDialog.hxx>

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

Public Member Functions

 SparklineDialog (SfxBindings *pBindings, SfxChildWindow *pChildWindow, weld::Window *pWindow, ScViewData &rViewData)
 
virtual ~SparklineDialog () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDocument) override
 
virtual void SetActive () override
 
virtual 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)
 
 DECL_LINK (ToggleHandler, weld::Toggleable &, void)
 
 DECL_LINK (SelectSparklineType, weld::ComboBox &, void)
 
 DECL_LINK (ComboValueChanged, weld::ComboBox &, void)
 
 DECL_LINK (SpinLineWidthChanged, weld::SpinButton &, void)
 
 DECL_LINK (SpinCustomChanged, weld::FormattedSpinButton &, void)
 
void setupValues ()
 
void setInputSelection ()
 
void perform ()
 
bool checkValidInputOutput ()
 

Private Attributes

ScViewDatamrViewData
 
ScDocumentmrDocument
 
ScRange maInputRange
 
ScRange maOutputRange
 
formula::RefEditmpActiveEdit
 
bool mbDialogLostFocus
 
std::unique_ptr< weld::ButtonmxButtonOk
 
std::unique_ptr< weld::ButtonmxButtonCancel
 
std::unique_ptr< weld::FramemxFrameData
 
std::unique_ptr< weld::LabelmxInputRangeLabel
 
std::unique_ptr< formula::RefEditmxInputRangeEdit
 
std::unique_ptr< formula::RefButtonmxInputRangeButton
 
std::unique_ptr< weld::LabelmxOutputRangeLabel
 
std::unique_ptr< formula::RefEditmxOutputRangeEdit
 
std::unique_ptr< formula::RefButtonmxOutputRangeButton
 
std::unique_ptr< ColorListBoxmxColorSeries
 
std::unique_ptr< ColorListBoxmxColorNegative
 
std::unique_ptr< ColorListBoxmxColorMarker
 
std::unique_ptr< ColorListBoxmxColorHigh
 
std::unique_ptr< ColorListBoxmxColorLow
 
std::unique_ptr< ColorListBoxmxColorFirst
 
std::unique_ptr< ColorListBoxmxColorLast
 
std::unique_ptr< weld::CheckButtonmxCheckButtonNegative
 
std::unique_ptr< weld::CheckButtonmxCheckButtonMarker
 
std::unique_ptr< weld::CheckButtonmxCheckButtonHigh
 
std::unique_ptr< weld::CheckButtonmxCheckButtonLow
 
std::unique_ptr< weld::CheckButtonmxCheckButtonFirst
 
std::unique_ptr< weld::CheckButtonmxCheckButtonLast
 
std::unique_ptr< weld::SpinButtonmxSpinLineWidth
 
std::unique_ptr< weld::ComboBoxmxType
 
std::unique_ptr< weld::CheckButtonmxCheckDisplayXAxis
 
std::unique_ptr< weld::CheckButtonmxCheckDisplayHidden
 
std::unique_ptr< weld::CheckButtonmxCheckRightToLeft
 
std::unique_ptr< weld::ComboBoxmxDisplayEmptyGap
 
std::unique_ptr< weld::ComboBoxmxComboMinAxisType
 
std::unique_ptr< weld::ComboBoxmxComboMaxAxisType
 
std::unique_ptr< weld::FormattedSpinButtonmxSpinCustomMin
 
std::unique_ptr< weld::FormattedSpinButtonmxSpinCustomMax
 
std::shared_ptr< sc::SparklineGroupmpSparklineGroup
 
sc::SparklineAttributes maAttributes
 
bool mbEditMode
 

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 create or edit sparkline group attributes.

Definition at line 24 of file SparklineDialog.hxx.

Constructor & Destructor Documentation

◆ SparklineDialog()

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

Definition at line 23 of file SparklineDialog.cxx.

References u.

◆ ~SparklineDialog()

sc::SparklineDialog::~SparklineDialog ( )
overridevirtualdefault

Member Function Documentation

◆ checkValidInputOutput()

bool sc::SparklineDialog::checkValidInputOutput ( )
private

◆ Close()

void sc::SparklineDialog::Close ( )
overridevirtual

◆ DECL_LINK() [1/11]

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

◆ DECL_LINK() [2/11]

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

◆ DECL_LINK() [3/11]

sc::SparklineDialog::DECL_LINK ( ComboValueChanged  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [4/11]

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

◆ DECL_LINK() [5/11]

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

◆ DECL_LINK() [6/11]

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

◆ DECL_LINK() [7/11]

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

◆ DECL_LINK() [8/11]

sc::SparklineDialog::DECL_LINK ( SelectSparklineType  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [9/11]

sc::SparklineDialog::DECL_LINK ( SpinCustomChanged  ,
weld::FormattedSpinButton ,
void   
)
private

◆ DECL_LINK() [10/11]

sc::SparklineDialog::DECL_LINK ( SpinLineWidthChanged  ,
weld::SpinButton ,
void   
)
private

◆ DECL_LINK() [11/11]

sc::SparklineDialog::DECL_LINK ( ToggleHandler  ,
weld::Toggleable ,
void   
)
private

◆ perform()

void sc::SparklineDialog::perform ( )
private

◆ SetActive()

void sc::SparklineDialog::SetActive ( )
overridevirtual

◆ setInputSelection()

void sc::SparklineDialog::setInputSelection ( )
private

◆ SetReference()

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

◆ setupValues()

void sc::SparklineDialog::setupValues ( )
private

Definition at line 147 of file SparklineDialog.cxx.

References ScRange::aStart, sc::Column, sc::Custom, sc::Gap, sc::SparklineAttributes::getColorFirst(), sc::SparklineAttributes::getColorHigh(), sc::SparklineAttributes::getColorLast(), sc::SparklineAttributes::getColorLow(), sc::SparklineAttributes::getColorMarkers(), sc::SparklineAttributes::getColorNegative(), sc::SparklineAttributes::getColorSeries(), sc::SparklineAttributes::getDisplayEmptyCellsAs(), sc::SparklineAttributes::getLineWeight(), sc::SparklineAttributes::getManualMax(), sc::SparklineAttributes::getManualMin(), sc::SparklineAttributes::getMaxAxisType(), sc::SparklineAttributes::getMinAxisType(), ScViewData::GetSimpleArea(), ScDocument::GetSparkline(), sc::SparklineAttributes::getType(), sc::Group, ScDocument::HasOneSparklineGroup(), sc::Individual, sc::SparklineAttributes::isFirst(), sc::SparklineAttributes::isHigh(), sc::SparklineAttributes::isLast(), sc::SparklineAttributes::isLow(), sc::SparklineAttributes::isMarkers(), sc::SparklineAttributes::isNegative(), sc::SparklineAttributes::isRightToLeft(), sc::Line, maAttributes, maInputRange, mbEditMode, mpSparklineGroup, mrDocument, mrViewData, mxCheckButtonFirst, mxCheckButtonHigh, mxCheckButtonLast, mxCheckButtonLow, mxCheckButtonMarker, mxCheckButtonNegative, mxCheckDisplayHidden, mxCheckDisplayXAxis, mxCheckRightToLeft, mxColorFirst, mxColorHigh, mxColorLast, mxColorLow, mxColorMarker, mxColorNegative, mxColorSeries, mxComboMaxAxisType, mxComboMinAxisType, mxDisplayEmptyGap, mxFrameData, mxSpinCustomMax, mxSpinCustomMin, mxSpinLineWidth, mxType, setInputSelection(), sc::SparklineAttributes::shouldDisplayHidden(), sc::SparklineAttributes::shouldDisplayXAxis(), sc::Span, sc::Stacked, and sc::Zero.

Member Data Documentation

◆ maAttributes

sc::SparklineAttributes sc::SparklineDialog::maAttributes
private

Definition at line 92 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ maInputRange

ScRange sc::SparklineDialog::maInputRange
private

◆ maOutputRange

ScRange sc::SparklineDialog::maOutputRange
private

Definition at line 31 of file SparklineDialog.hxx.

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

◆ mbDialogLostFocus

bool sc::SparklineDialog::mbDialogLostFocus
private

Definition at line 34 of file SparklineDialog.hxx.

Referenced by SetActive().

◆ mbEditMode

bool sc::SparklineDialog::mbEditMode
private

Definition at line 94 of file SparklineDialog.hxx.

Referenced by checkValidInputOutput(), and setupValues().

◆ mpActiveEdit

formula::RefEdit* sc::SparklineDialog::mpActiveEdit
private

Definition at line 33 of file SparklineDialog.hxx.

Referenced by SetActive(), and SetReference().

◆ mpSparklineGroup

std::shared_ptr<sc::SparklineGroup> sc::SparklineDialog::mpSparklineGroup
private

Definition at line 91 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mrDocument

ScDocument& sc::SparklineDialog::mrDocument
private

Definition at line 28 of file SparklineDialog.hxx.

Referenced by setInputSelection(), and setupValues().

◆ mrViewData

ScViewData& sc::SparklineDialog::mrViewData
private

Definition at line 27 of file SparklineDialog.hxx.

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

◆ mxButtonCancel

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

Definition at line 37 of file SparklineDialog.hxx.

◆ mxButtonOk

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

Definition at line 36 of file SparklineDialog.hxx.

Referenced by SetReference().

◆ mxCheckButtonFirst

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckButtonFirst
private

Definition at line 61 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckButtonHigh

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckButtonHigh
private

Definition at line 59 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckButtonLast

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckButtonLast
private

Definition at line 62 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckButtonLow

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckButtonLow
private

Definition at line 60 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckButtonMarker

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckButtonMarker
private

Definition at line 58 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckButtonNegative

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckButtonNegative
private

Definition at line 57 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckDisplayHidden

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckDisplayHidden
private

Definition at line 68 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckDisplayXAxis

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckDisplayXAxis
private

Definition at line 67 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxCheckRightToLeft

std::unique_ptr<weld::CheckButton> sc::SparklineDialog::mxCheckRightToLeft
private

Definition at line 69 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxColorFirst

std::unique_ptr<ColorListBox> sc::SparklineDialog::mxColorFirst
private

Definition at line 54 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxColorHigh

std::unique_ptr<ColorListBox> sc::SparklineDialog::mxColorHigh
private

Definition at line 52 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxColorLast

std::unique_ptr<ColorListBox> sc::SparklineDialog::mxColorLast
private

Definition at line 55 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxColorLow

std::unique_ptr<ColorListBox> sc::SparklineDialog::mxColorLow
private

Definition at line 53 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxColorMarker

std::unique_ptr<ColorListBox> sc::SparklineDialog::mxColorMarker
private

Definition at line 51 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxColorNegative

std::unique_ptr<ColorListBox> sc::SparklineDialog::mxColorNegative
private

Definition at line 50 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxColorSeries

std::unique_ptr<ColorListBox> sc::SparklineDialog::mxColorSeries
private

Definition at line 49 of file SparklineDialog.hxx.

Referenced by perform(), and setupValues().

◆ mxComboMaxAxisType

std::unique_ptr<weld::ComboBox> sc::SparklineDialog::mxComboMaxAxisType
private

Definition at line 74 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxComboMinAxisType

std::unique_ptr<weld::ComboBox> sc::SparklineDialog::mxComboMinAxisType
private

Definition at line 73 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxDisplayEmptyGap

std::unique_ptr<weld::ComboBox> sc::SparklineDialog::mxDisplayEmptyGap
private

Definition at line 71 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxFrameData

std::unique_ptr<weld::Frame> sc::SparklineDialog::mxFrameData
private

Definition at line 39 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxInputRangeButton

std::unique_ptr<formula::RefButton> sc::SparklineDialog::mxInputRangeButton
private

Definition at line 43 of file SparklineDialog.hxx.

◆ mxInputRangeEdit

std::unique_ptr<formula::RefEdit> sc::SparklineDialog::mxInputRangeEdit
private

Definition at line 42 of file SparklineDialog.hxx.

Referenced by setInputSelection(), and SetReference().

◆ mxInputRangeLabel

std::unique_ptr<weld::Label> sc::SparklineDialog::mxInputRangeLabel
private

Definition at line 41 of file SparklineDialog.hxx.

◆ mxOutputRangeButton

std::unique_ptr<formula::RefButton> sc::SparklineDialog::mxOutputRangeButton
private

Definition at line 47 of file SparklineDialog.hxx.

◆ mxOutputRangeEdit

std::unique_ptr<formula::RefEdit> sc::SparklineDialog::mxOutputRangeEdit
private

Definition at line 46 of file SparklineDialog.hxx.

Referenced by SetReference().

◆ mxOutputRangeLabel

std::unique_ptr<weld::Label> sc::SparklineDialog::mxOutputRangeLabel
private

Definition at line 45 of file SparklineDialog.hxx.

◆ mxSpinCustomMax

std::unique_ptr<weld::FormattedSpinButton> sc::SparklineDialog::mxSpinCustomMax
private

Definition at line 77 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxSpinCustomMin

std::unique_ptr<weld::FormattedSpinButton> sc::SparklineDialog::mxSpinCustomMin
private

Definition at line 76 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxSpinLineWidth

std::unique_ptr<weld::SpinButton> sc::SparklineDialog::mxSpinLineWidth
private

Definition at line 64 of file SparklineDialog.hxx.

Referenced by setupValues().

◆ mxType

std::unique_ptr<weld::ComboBox> sc::SparklineDialog::mxType
private

Definition at line 65 of file SparklineDialog.hxx.

Referenced by setupValues().


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