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 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)
 

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 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)
 

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 77 of file condformatdlg.hxx.

Constructor & Destructor Documentation

◆ ScCondFormatDlg()

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

◆ ~ScCondFormatDlg()

ScCondFormatDlg::~ScCondFormatDlg ( )
overridevirtual

Definition at line 498 of file condformatdlg.cxx.

Member Function Documentation

◆ CancelPressed()

void ScCondFormatDlg::CancelPressed ( )
protected

◆ Close()

void ScCondFormatDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 599 of file condformatdlg.cxx.

References ScRefHandler::DoClose().

◆ DECL_LINK() [1/3]

ScCondFormatDlg::DECL_LINK ( BtnPressedHdl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [2/3]

ScCondFormatDlg::DECL_LINK ( EdRangeModifyHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [3/3]

ScCondFormatDlg::DECL_LINK ( RangeGetFocusHdl  ,
formula::RefEdit ,
void   
)

◆ GetConditionalFormat()

std::unique_ptr< ScConditionalFormat > ScCondFormatDlg::GetConditionalFormat ( ) const

◆ InvalidateRefData()

void ScCondFormatDlg::InvalidateRefData ( )

Definition at line 592 of file condformatdlg.cxx.

References mpLastEdit.

◆ IsRefInputMode()

bool ScCondFormatDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 533 of file condformatdlg.cxx.

References mxEdRange.

◆ IsTableLocked()

bool ScCondFormatDlg::IsTableLocked ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 528 of file condformatdlg.cxx.

References mpLastEdit, and mxEdRange.

◆ OkPressed()

void ScCondFormatDlg::OkPressed ( )
protected

◆ OnSelectionChange()

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

Definition at line 662 of file condformatdlg.cxx.

References mxBtnDown, mxBtnUp, and nIndex.

Referenced by ScCondFormatList::init().

◆ RefInputDone()

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

Reimplemented from ScRefHandler.

Definition at line 512 of file condformatdlg.cxx.

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

Referenced by SetActive().

◆ SetActive()

void ScCondFormatDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 502 of file condformatdlg.cxx.

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

◆ SetReference()

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

◆ updateTitle()

void ScCondFormatDlg::updateTitle ( )
private

Definition at line 491 of file condformatdlg.cxx.

References m_xDialog, msBaseTitle, and mxEdRange.

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

Member Data Documentation

◆ maPos

ScAddress ScCondFormatDlg::maPos
private

Definition at line 82 of file condformatdlg.hxx.

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

◆ mnKey

sal_Int32 ScCondFormatDlg::mnKey
private

Definition at line 80 of file condformatdlg.hxx.

Referenced by OkPressed(), and ScCondFormatDlg().

◆ mpDlgItem

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

Definition at line 85 of file condformatdlg.hxx.

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

◆ mpLastEdit

formula::RefEdit* ScCondFormatDlg::mpLastEdit
private

Definition at line 89 of file condformatdlg.hxx.

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

◆ mpViewData

ScViewData* ScCondFormatDlg::mpViewData
private

◆ msBaseTitle

OUString ScCondFormatDlg::msBaseTitle
private

Definition at line 87 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg(), and updateTitle().

◆ mxBtnAdd

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

Definition at line 91 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

◆ mxBtnCancel

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

Definition at line 95 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

◆ mxBtnDown

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

Definition at line 94 of file condformatdlg.hxx.

Referenced by OnSelectionChange(), and ScCondFormatDlg().

◆ mxBtnOk

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

Definition at line 90 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

◆ mxBtnRemove

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

Definition at line 92 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

◆ mxBtnUp

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

Definition at line 93 of file condformatdlg.hxx.

Referenced by OnSelectionChange(), and ScCondFormatDlg().

◆ mxCondFormList

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

Definition at line 99 of file condformatdlg.hxx.

Referenced by GetConditionalFormat(), and ScCondFormatDlg().

◆ mxEdRange

std::unique_ptr<formula::RefEdit> ScCondFormatDlg::mxEdRange
private

◆ mxFtRange

std::unique_ptr<weld::Label> ScCondFormatDlg::mxFtRange
private

Definition at line 96 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().

◆ mxRbRange

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

Definition at line 98 of file condformatdlg.hxx.

Referenced by ScCondFormatDlg().


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