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

#include <crnrdlg.hxx>

Inheritance diagram for ScColRowNameRangesDlg:
[legend]
Collaboration diagram for ScColRowNameRangesDlg:
[legend]

Public Member Functions

 ScColRowNameRangesDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData)
 
virtual ~ScColRowNameRangesDlg () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual bool IsRefInputMode () const 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 Types

typedef std::unordered_map< OUString, ScRangeNameRangeMap
 

Private Member Functions

void Init ()
 
void UpdateNames ()
 
void UpdateRangeData (const ScRange &rRange, bool bColName)
 
void SetColRowData (const ScRange &rLabelRange, bool bRef=false)
 
void AdjustColRowData (const ScRange &rDataRange, bool bRef=false)
 
 DECL_LINK (CancelBtnHdl, weld::Button &, void)
 
 DECL_LINK (OkBtnHdl, weld::Button &, void)
 
 DECL_LINK (AddBtnHdl, weld::Button &, void)
 
 DECL_LINK (RemoveBtnHdl, weld::Button &, void)
 
 DECL_LINK (Range1SelectHdl, weld::TreeView &, void)
 
 DECL_LINK (Range1DataModifyHdl, formula::RefEdit &, void)
 
 DECL_LINK (ColRowToggleHdl, weld::Toggleable &, void)
 
 DECL_LINK (Range2DataModifyHdl, formula::RefEdit &, void)
 
 DECL_LINK (GetEditFocusHdl, formula::RefEdit &, void)
 
 DECL_LINK (LoseEditFocusHdl, formula::RefEdit &, void)
 
 DECL_LINK (GetButtonFocusHdl, formula::RefButton &, void)
 
 DECL_LINK (LoseButtonFocusHdl, formula::RefButton &, void)
 

Private Attributes

ScRange theCurArea
 
ScRange theCurData
 
ScRangePairListRef xColNameRanges
 
ScRangePairListRef xRowNameRanges
 
NameRangeMap aRangeMap
 
ScViewDatam_rViewData
 
ScDocumentrDoc
 
bool bDlgLostFocus
 
formula::RefEditm_pEdActive
 
std::unique_ptr< weld::TreeViewm_xLbRange
 
std::unique_ptr< formula::RefEditm_xEdAssign
 
std::unique_ptr< formula::RefButtonm_xRbAssign
 
std::unique_ptr< weld::RadioButtonm_xBtnColHead
 
std::unique_ptr< weld::RadioButtonm_xBtnRowHead
 
std::unique_ptr< formula::RefEditm_xEdAssign2
 
std::unique_ptr< formula::RefButtonm_xRbAssign2
 
std::unique_ptr< weld::Buttonm_xBtnOk
 
std::unique_ptr< weld::Buttonm_xBtnCancel
 
std::unique_ptr< weld::Buttonm_xBtnAdd
 
std::unique_ptr< weld::Buttonm_xBtnRemove
 
std::unique_ptr< weld::Framem_xRangeFrame
 
std::unique_ptr< weld::Labelm_xRangeFT
 
std::unique_ptr< weld::Labelm_xDataFT
 

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

Definition at line 30 of file crnrdlg.hxx.

Member Typedef Documentation

◆ NameRangeMap

typedef std::unordered_map< OUString, ScRange > ScColRowNameRangesDlg::NameRangeMap
private

Definition at line 50 of file crnrdlg.hxx.

Constructor & Destructor Documentation

◆ ScColRowNameRangesDlg()

ScColRowNameRangesDlg::ScColRowNameRangesDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
ScViewData rViewData 
)

◆ ~ScColRowNameRangesDlg()

ScColRowNameRangesDlg::~ScColRowNameRangesDlg ( )
overridevirtual

Definition at line 93 of file crnrdlg.cxx.

Member Function Documentation

◆ AdjustColRowData()

void ScColRowNameRangesDlg::AdjustColRowData ( const ScRange rDataRange,
bool  bRef = false 
)
private

◆ Close()

void ScColRowNameRangesDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 313 of file crnrdlg.cxx.

References ScRefHandler::DoClose().

◆ DECL_LINK() [1/12]

ScColRowNameRangesDlg::DECL_LINK ( AddBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/12]

ScColRowNameRangesDlg::DECL_LINK ( CancelBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/12]

ScColRowNameRangesDlg::DECL_LINK ( ColRowToggleHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [4/12]

ScColRowNameRangesDlg::DECL_LINK ( GetButtonFocusHdl  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [5/12]

ScColRowNameRangesDlg::DECL_LINK ( GetEditFocusHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [6/12]

ScColRowNameRangesDlg::DECL_LINK ( LoseButtonFocusHdl  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [7/12]

ScColRowNameRangesDlg::DECL_LINK ( LoseEditFocusHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [8/12]

ScColRowNameRangesDlg::DECL_LINK ( OkBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [9/12]

ScColRowNameRangesDlg::DECL_LINK ( Range1DataModifyHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [10/12]

ScColRowNameRangesDlg::DECL_LINK ( Range1SelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [11/12]

ScColRowNameRangesDlg::DECL_LINK ( Range2DataModifyHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [12/12]

ScColRowNameRangesDlg::DECL_LINK ( RemoveBtnHdl  ,
weld::Button ,
void   
)
private

◆ Init()

void ScColRowNameRangesDlg::Init ( void  )
private

◆ IsRefInputMode()

bool ScColRowNameRangesDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 471 of file crnrdlg.cxx.

References m_pEdActive.

◆ SetActive()

void ScColRowNameRangesDlg::SetActive ( )
overridevirtual

◆ SetColRowData()

void ScColRowNameRangesDlg::SetColRowData ( const ScRange rLabelRange,
bool  bRef = false 
)
private

◆ SetReference()

void ScColRowNameRangesDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual

◆ UpdateNames()

void ScColRowNameRangesDlg::UpdateNames ( )
private

◆ UpdateRangeData()

void ScColRowNameRangesDlg::UpdateRangeData ( const ScRange rRange,
bool  bColName 
)
private

Member Data Documentation

◆ aRangeMap

NameRangeMap ScColRowNameRangesDlg::aRangeMap
private

Definition at line 51 of file crnrdlg.hxx.

Referenced by UpdateNames().

◆ bDlgLostFocus

bool ScColRowNameRangesDlg::bDlgLostFocus
private

Definition at line 54 of file crnrdlg.hxx.

Referenced by SetActive().

◆ m_pEdActive

formula::RefEdit* ScColRowNameRangesDlg::m_pEdActive
private

Definition at line 56 of file crnrdlg.hxx.

Referenced by Init(), IsRefInputMode(), SetActive(), and SetReference().

◆ m_rViewData

ScViewData& ScColRowNameRangesDlg::m_rViewData
private

Definition at line 52 of file crnrdlg.hxx.

Referenced by Init().

◆ m_xBtnAdd

std::unique_ptr<weld::Button> ScColRowNameRangesDlg::m_xBtnAdd
private

Definition at line 68 of file crnrdlg.hxx.

Referenced by Init(), SetReference(), and UpdateRangeData().

◆ m_xBtnCancel

std::unique_ptr<weld::Button> ScColRowNameRangesDlg::m_xBtnCancel
private

Definition at line 67 of file crnrdlg.hxx.

Referenced by Init().

◆ m_xBtnColHead

std::unique_ptr<weld::RadioButton> ScColRowNameRangesDlg::m_xBtnColHead
private

Definition at line 61 of file crnrdlg.hxx.

Referenced by AdjustColRowData(), Init(), SetColRowData(), SetReference(), and UpdateRangeData().

◆ m_xBtnOk

std::unique_ptr<weld::Button> ScColRowNameRangesDlg::m_xBtnOk
private

Definition at line 66 of file crnrdlg.hxx.

Referenced by Init().

◆ m_xBtnRemove

std::unique_ptr<weld::Button> ScColRowNameRangesDlg::m_xBtnRemove
private

Definition at line 69 of file crnrdlg.hxx.

Referenced by Init(), SetReference(), and UpdateRangeData().

◆ m_xBtnRowHead

std::unique_ptr<weld::RadioButton> ScColRowNameRangesDlg::m_xBtnRowHead
private

Definition at line 62 of file crnrdlg.hxx.

Referenced by Init(), SetColRowData(), SetReference(), and UpdateRangeData().

◆ m_xDataFT

std::unique_ptr<weld::Label> ScColRowNameRangesDlg::m_xDataFT
private

Definition at line 73 of file crnrdlg.hxx.

Referenced by ScColRowNameRangesDlg().

◆ m_xEdAssign

std::unique_ptr<formula::RefEdit> ScColRowNameRangesDlg::m_xEdAssign
private

◆ m_xEdAssign2

std::unique_ptr<formula::RefEdit> ScColRowNameRangesDlg::m_xEdAssign2
private

◆ m_xLbRange

std::unique_ptr<weld::TreeView> ScColRowNameRangesDlg::m_xLbRange
private

Definition at line 57 of file crnrdlg.hxx.

Referenced by Init(), and UpdateNames().

◆ m_xRangeFrame

std::unique_ptr<weld::Frame> ScColRowNameRangesDlg::m_xRangeFrame
private

Definition at line 71 of file crnrdlg.hxx.

◆ m_xRangeFT

std::unique_ptr<weld::Label> ScColRowNameRangesDlg::m_xRangeFT
private

Definition at line 72 of file crnrdlg.hxx.

Referenced by ScColRowNameRangesDlg().

◆ m_xRbAssign

std::unique_ptr<formula::RefButton> ScColRowNameRangesDlg::m_xRbAssign
private

Definition at line 60 of file crnrdlg.hxx.

Referenced by Init(), and ScColRowNameRangesDlg().

◆ m_xRbAssign2

std::unique_ptr<formula::RefButton> ScColRowNameRangesDlg::m_xRbAssign2
private

Definition at line 64 of file crnrdlg.hxx.

Referenced by Init(), ScColRowNameRangesDlg(), SetColRowData(), and UpdateRangeData().

◆ rDoc

ScDocument& ScColRowNameRangesDlg::rDoc
private

◆ theCurArea

ScRange ScColRowNameRangesDlg::theCurArea
private

Definition at line 44 of file crnrdlg.hxx.

Referenced by AdjustColRowData(), SetColRowData(), and UpdateRangeData().

◆ theCurData

ScRange ScColRowNameRangesDlg::theCurData
private

Definition at line 45 of file crnrdlg.hxx.

Referenced by AdjustColRowData(), SetColRowData(), and UpdateRangeData().

◆ xColNameRanges

ScRangePairListRef ScColRowNameRangesDlg::xColNameRanges
private

Definition at line 47 of file crnrdlg.hxx.

Referenced by ScColRowNameRangesDlg(), UpdateNames(), and UpdateRangeData().

◆ xRowNameRanges

ScRangePairListRef ScColRowNameRangesDlg::xRowNameRanges
private

Definition at line 48 of file crnrdlg.hxx.

Referenced by ScColRowNameRangesDlg(), UpdateNames(), and UpdateRangeData().


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