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

#include <condformatdlg.hxx>

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

Public Member Functions

 ScCondFormatDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pWindow, ScViewData *pViewData, const ScCondFormatDlgItem *pDlgItem)
 
virtual ~ScCondFormatDlg () override
 
std::unique_ptr< ScConditionalFormatGetConditionalFormat () const
 
virtual void SetReference (const ScRange &, ScDocument &) override
 
virtual bool IsRefInputMode () const override
 
virtual void SetActive () override
 
virtual bool IsTableLocked () const override
 
virtual void Close () override
 
void InvalidateRefData ()
 
void OnSelectionChange (size_t nIndex, size_t nSize, bool bSelected=true)
 
 DECL_LINK (BtnPressedHdl, weld::Button &, void)
 
 DECL_LINK (RangeGetFocusHdl, formula::RefEdit &, void)
 
- 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 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
 

Protected Member Functions

virtual void RefInputDone (bool bForced=false) override
 
void OkPressed ()
 
void CancelPressed ()
 
- 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
 
bool ParseWithNames (ScRangeList &rRanges, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Private Member Functions

void updateTitle ()
 
 DECL_LINK (EdRangeModifyHdl, formula::RefEdit &, void)
 

Private Attributes

sal_Int32 mnKey
 
ScAddress maPos
 
ScViewDatampViewData
 
std::shared_ptr< ScCondFormatDlgItemmpDlgItem
 
OUString msBaseTitle
 
formula::RefEditmpLastEdit
 
std::unique_ptr< weld::ButtonmxBtnOk
 
std::unique_ptr< weld::ButtonmxBtnAdd
 
std::unique_ptr< weld::ButtonmxBtnRemove
 
std::unique_ptr< weld::ButtonmxBtnUp
 
std::unique_ptr< weld::ButtonmxBtnDown
 
std::unique_ptr< weld::ButtonmxBtnCancel
 
std::unique_ptr< weld::LabelmxFtRange
 
std::unique_ptr< formula::RefEditmxEdRange
 
std::unique_ptr< formula::RefButtonmxRbRange
 
std::unique_ptr< ScCondFormatListmxCondFormList
 

Additional Inherited Members

- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 

Detailed Description

Definition at line 78 of file condformatdlg.hxx.

Constructor & Destructor Documentation

ScCondFormatDlg::ScCondFormatDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pWindow,
ScViewData pViewData,
const ScCondFormatDlgItem pDlgItem 
)
ScCondFormatDlg::~ScCondFormatDlg ( )
overridevirtual

Definition at line 489 of file condformatdlg.cxx.

Member Function Documentation

void ScCondFormatDlg::CancelPressed ( )
protected
void ScCondFormatDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 590 of file condformatdlg.cxx.

References ScRefHandler::DoClose().

ScCondFormatDlg::DECL_LINK ( EdRangeModifyHdl  ,
formula::RefEdit ,
void   
)
private
ScCondFormatDlg::DECL_LINK ( BtnPressedHdl  ,
weld::Button ,
void   
)
ScCondFormatDlg::DECL_LINK ( RangeGetFocusHdl  ,
formula::RefEdit ,
void   
)
std::unique_ptr< ScConditionalFormat > ScCondFormatDlg::GetConditionalFormat ( ) const
void ScCondFormatDlg::InvalidateRefData ( )

Definition at line 583 of file condformatdlg.cxx.

References mpLastEdit.

bool ScCondFormatDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 524 of file condformatdlg.cxx.

References mxEdRange.

bool ScCondFormatDlg::IsTableLocked ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 519 of file condformatdlg.cxx.

References mpLastEdit, and mxEdRange.

void ScCondFormatDlg::OkPressed ( )
protected
void ScCondFormatDlg::OnSelectionChange ( size_t  nIndex,
size_t  nSize,
bool  bSelected = true 
)

Definition at line 653 of file condformatdlg.cxx.

References mxBtnDown, and mxBtnUp.

Referenced by ScCondFormatList::init().

void ScCondFormatDlg::RefInputDone ( bool  bForced = false)
overrideprotectedvirtual

Reimplemented from ScRefHandler.

Definition at line 503 of file condformatdlg.cxx.

References ScRefHandler::RefInputDone(), and updateTitle().

Referenced by SetActive().

void ScCondFormatDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 493 of file condformatdlg.cxx.

References formula::RefEdit::GrabFocus(), mpLastEdit, mxEdRange, and RefInputDone().

void ScCondFormatDlg::SetReference ( const ScRange rRef,
ScDocument  
)
overridevirtual
void ScCondFormatDlg::updateTitle ( )
private

Definition at line 482 of file condformatdlg.cxx.

References m_xDialog, msBaseTitle, and mxEdRange.

Referenced by RefInputDone(), ScCondFormatDlg(), and SetReference().

Member Data Documentation

ScAddress ScCondFormatDlg::maPos
private

Definition at line 83 of file condformatdlg.hxx.

Referenced by GetConditionalFormat(), OkPressed(), and ScCondFormatDlg().

sal_Int32 ScCondFormatDlg::mnKey
private

Definition at line 81 of file condformatdlg.hxx.

Referenced by OkPressed(), and ScCondFormatDlg().

std::shared_ptr<ScCondFormatDlgItem> ScCondFormatDlg::mpDlgItem
private

Definition at line 86 of file condformatdlg.hxx.

Referenced by CancelPressed(), OkPressed(), and ScCondFormatDlg().

formula::RefEdit* ScCondFormatDlg::mpLastEdit
private

Definition at line 90 of file condformatdlg.hxx.

Referenced by InvalidateRefData(), IsTableLocked(), SetActive(), and SetReference().

ScViewData* ScCondFormatDlg::mpViewData
private
OUString ScCondFormatDlg::msBaseTitle
private

Definition at line 88 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg(), and updateTitle().

std::unique_ptr<weld::Button> ScCondFormatDlg::mxBtnAdd
private

Definition at line 92 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

std::unique_ptr<weld::Button> ScCondFormatDlg::mxBtnCancel
private

Definition at line 96 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

std::unique_ptr<weld::Button> ScCondFormatDlg::mxBtnDown
private

Definition at line 95 of file condformatdlg.hxx.

Referenced by OnSelectionChange(), and ScCondFormatDlg().

std::unique_ptr<weld::Button> ScCondFormatDlg::mxBtnOk
private

Definition at line 91 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

std::unique_ptr<weld::Button> ScCondFormatDlg::mxBtnRemove
private

Definition at line 93 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

std::unique_ptr<weld::Button> ScCondFormatDlg::mxBtnUp
private

Definition at line 94 of file condformatdlg.hxx.

Referenced by OnSelectionChange(), and ScCondFormatDlg().

std::unique_ptr<ScCondFormatList> ScCondFormatDlg::mxCondFormList
private

Definition at line 100 of file condformatdlg.hxx.

Referenced by GetConditionalFormat(), and ScCondFormatDlg().

std::unique_ptr<formula::RefEdit> ScCondFormatDlg::mxEdRange
private
std::unique_ptr<weld::Label> ScCondFormatDlg::mxFtRange
private

Definition at line 97 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

std::unique_ptr<formula::RefButton> ScCondFormatDlg::mxRbRange
private

Definition at line 99 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().


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