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 OString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void EndDialog () 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 OString &rDialogId)
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void AddRefEntry () 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 ()
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 

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 (ColClickHdl, weld::Button &, void)
 
 DECL_LINK (RowClickHdl, weld::Button &, 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 OString &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, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Detailed Description

Definition at line 31 of file crnrdlg.hxx.

Member Typedef Documentation

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

Definition at line 51 of file crnrdlg.hxx.

Constructor & Destructor Documentation

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

Definition at line 92 of file crnrdlg.cxx.

Member Function Documentation

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

Reimplemented from SfxModelessDialogController.

Definition at line 313 of file crnrdlg.cxx.

References ScRefHandler::DoClose().

ScColRowNameRangesDlg::DECL_LINK ( CancelBtnHdl  ,
weld::Button ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( OkBtnHdl  ,
weld::Button ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( AddBtnHdl  ,
weld::Button ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( RemoveBtnHdl  ,
weld::Button ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( Range1SelectHdl  ,
weld::TreeView ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( Range1DataModifyHdl  ,
formula::RefEdit ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( ColClickHdl  ,
weld::Button ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( RowClickHdl  ,
weld::Button ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( Range2DataModifyHdl  ,
formula::RefEdit ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( GetEditFocusHdl  ,
formula::RefEdit ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( LoseEditFocusHdl  ,
formula::RefEdit ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( GetButtonFocusHdl  ,
formula::RefButton ,
void   
)
private
ScColRowNameRangesDlg::DECL_LINK ( LoseButtonFocusHdl  ,
formula::RefButton ,
void   
)
private
void ScColRowNameRangesDlg::Init ( void  )
private
bool ScColRowNameRangesDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 471 of file crnrdlg.cxx.

References m_pEdActive.

void ScColRowNameRangesDlg::SetActive ( )
overridevirtual
void ScColRowNameRangesDlg::SetColRowData ( const ScRange rLabelRange,
bool  bRef = false 
)
private
void ScColRowNameRangesDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual
void ScColRowNameRangesDlg::UpdateNames ( )
private
void ScColRowNameRangesDlg::UpdateRangeData ( const ScRange rRange,
bool  bColName 
)
private

Member Data Documentation

NameRangeMap ScColRowNameRangesDlg::aRangeMap
private

Definition at line 52 of file crnrdlg.hxx.

Referenced by UpdateNames().

bool ScColRowNameRangesDlg::bDlgLostFocus
private

Definition at line 55 of file crnrdlg.hxx.

Referenced by SetActive().

formula::RefEdit* ScColRowNameRangesDlg::m_pEdActive
private

Definition at line 57 of file crnrdlg.hxx.

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

ScViewData& ScColRowNameRangesDlg::m_rViewData
private

Definition at line 53 of file crnrdlg.hxx.

Referenced by Init().

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

Definition at line 69 of file crnrdlg.hxx.

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

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

Definition at line 68 of file crnrdlg.hxx.

Referenced by Init().

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

Definition at line 62 of file crnrdlg.hxx.

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

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

Definition at line 67 of file crnrdlg.hxx.

Referenced by Init().

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

Definition at line 70 of file crnrdlg.hxx.

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

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

Definition at line 63 of file crnrdlg.hxx.

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

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

Definition at line 74 of file crnrdlg.hxx.

Referenced by ScColRowNameRangesDlg().

std::unique_ptr<formula::RefEdit> ScColRowNameRangesDlg::m_xEdAssign
private
std::unique_ptr<formula::RefEdit> ScColRowNameRangesDlg::m_xEdAssign2
private
std::unique_ptr<weld::TreeView> ScColRowNameRangesDlg::m_xLbRange
private

Definition at line 58 of file crnrdlg.hxx.

Referenced by Init(), and UpdateNames().

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

Definition at line 72 of file crnrdlg.hxx.

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

Definition at line 73 of file crnrdlg.hxx.

Referenced by ScColRowNameRangesDlg().

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

Definition at line 61 of file crnrdlg.hxx.

Referenced by Init(), and ScColRowNameRangesDlg().

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

Definition at line 65 of file crnrdlg.hxx.

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

ScDocument& ScColRowNameRangesDlg::rDoc
private
ScRange ScColRowNameRangesDlg::theCurArea
private

Definition at line 45 of file crnrdlg.hxx.

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

ScRange ScColRowNameRangesDlg::theCurData
private

Definition at line 46 of file crnrdlg.hxx.

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

ScRangePairListRef ScColRowNameRangesDlg::xColNameRanges
private

Definition at line 48 of file crnrdlg.hxx.

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

ScRangePairListRef ScColRowNameRangesDlg::xRowNameRanges
private

Definition at line 49 of file crnrdlg.hxx.

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


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