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

#include <condformatdlgentry.hxx>

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

Public Member Functions

 ScConditionFrmtEntry (ScCondFormatList *pParent, ScDocument *pDoc, ScCondFormatDlg *pDialogParent, const ScAddress &rPos, const ScCondFormatEntry *pFormatEntry=nullptr)
 
virtual ~ScConditionFrmtEntry () override
 
virtual ScFormatEntryGetEntry () const override
 
virtual void SetActive () override
 
virtual void SetInactive () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual condformat::entry::ScCondFrmtEntryType GetType () override
 
- Public Member Functions inherited from ScCondFrmtEntry
 ScCondFrmtEntry (ScCondFormatList *pParent, ScDocument *pDoc, const ScAddress &rPos)
 
virtual ~ScCondFrmtEntry ()
 
void Show ()
 
void set_grid_top_attach (int nAttach)
 
int get_preferred_height () const
 
void SetPos (const ScAddress &rPos)
 
bool IsSelected () const
 
void SetIndex (sal_Int32 nIndex)
 
virtual ScFormatEntryGetEntry () const =0
 
virtual void SetActive ()=0
 
virtual void SetInactive ()=0
 
virtual condformat::entry::ScCondFrmtEntryType GetType ()=0
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Protected Member Functions

virtual void Select () override
 
virtual void Deselect () override
 
virtual void Select ()
 
virtual void Deselect ()
 
virtual OUString GetExpressionString ()=0
 

Private Member Functions

ScFormatEntrycreateConditionEntry () const
 
virtual OUString GetExpressionString () override
 
void Init (ScCondFormatDlg *pDialogParent)
 
 DECL_LINK (StyleSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (ConditionTypeSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (OnEdChanged, formula::RefEdit &, void)
 

Static Private Member Functions

static sal_Int32 ConditionModeToEntryPos (ScConditionMode eMode)
 
static ScConditionMode EntryPosToConditionMode (sal_Int32 aEntryPos)
 
static sal_Int32 GetNumberEditFields (ScConditionMode eMode)
 

Private Attributes

SvxFontPrevWindow maWdPreview
 
std::unique_ptr< weld::ComboBoxmxLbCondType
 
std::unique_ptr< formula::RefEditmxEdVal1
 
std::unique_ptr< formula::RefEditmxEdVal2
 
std::unique_ptr< weld::LabelmxFtVal
 
std::unique_ptr< weld::LabelmxFtStyle
 
std::unique_ptr< weld::ComboBoxmxLbStyle
 
std::unique_ptr< weld::WidgetmxWdPreviewWin
 
std::unique_ptr< weld::CustomWeldmxWdPreview
 
bool mbIsInStyleCreate
 

Static Private Attributes

static const sal_Int32 NUM_COND_ENTRIES = 24
 
static const ScConditionMode mpEntryToCond [NUM_COND_ENTRIES]
 

Additional Inherited Members

- Protected Attributes inherited from ScCondFrmtEntry
ScCondFormatListmpParent
 
std::unique_ptr< weld::BuildermxBuilder
 
std::unique_ptr< weld::ComboBoxmxLbType
 
ScDocumentmpDoc
 
ScAddress maPos
 

Detailed Description

Definition at line 92 of file condformatdlgentry.hxx.

Constructor & Destructor Documentation

◆ ScConditionFrmtEntry()

ScConditionFrmtEntry::ScConditionFrmtEntry ( ScCondFormatList pParent,
ScDocument pDoc,
ScCondFormatDlg pDialogParent,
const ScAddress rPos,
const ScCondFormatEntry pFormatEntry = nullptr 
)

◆ ~ScConditionFrmtEntry()

ScConditionFrmtEntry::~ScConditionFrmtEntry ( )
overridevirtual

Definition at line 213 of file condformatdlgentry.cxx.

Member Function Documentation

◆ ConditionModeToEntryPos()

sal_Int32 ScConditionFrmtEntry::ConditionModeToEntryPos ( ScConditionMode  eMode)
staticprivate

Definition at line 308 of file condformatdlgentry.cxx.

References eMode, i, mpEntryToCond, and NUM_COND_ENTRIES.

Referenced by ScConditionFrmtEntry().

◆ createConditionEntry()

ScFormatEntry * ScConditionFrmtEntry::createConditionEntry ( ) const
private

◆ DECL_LINK() [1/3]

ScConditionFrmtEntry::DECL_LINK ( ConditionTypeSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/3]

ScConditionFrmtEntry::DECL_LINK ( OnEdChanged  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [3/3]

ScConditionFrmtEntry::DECL_LINK ( StyleSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ Deselect()

void ScConditionFrmtEntry::Deselect ( )
overrideprotectedvirtual

Reimplemented from ScCondFrmtEntry.

Definition at line 302 of file condformatdlgentry.cxx.

References ScCondFrmtEntry::Deselect(), and mxFtVal.

Referenced by SetInactive().

◆ EntryPosToConditionMode()

ScConditionMode ScConditionFrmtEntry::EntryPosToConditionMode ( sal_Int32  aEntryPos)
staticprivate

Definition at line 321 of file condformatdlgentry.cxx.

References mpEntryToCond, and NUM_COND_ENTRIES.

Referenced by createConditionEntry(), and SetActive().

◆ GetEntry()

ScFormatEntry * ScConditionFrmtEntry::GetEntry ( ) const
overridevirtual

Implements ScCondFrmtEntry.

Definition at line 369 of file condformatdlgentry.cxx.

References createConditionEntry().

◆ GetExpressionString()

OUString ScConditionFrmtEntry::GetExpressionString ( )
overrideprivatevirtual

◆ GetNumberEditFields()

sal_Int32 ScConditionFrmtEntry::GetNumberEditFields ( ScConditionMode  eMode)
staticprivate

◆ GetType()

virtual condformat::entry::ScCondFrmtEntryType ScConditionFrmtEntry::GetType ( )
inlineoverridevirtual

Implements ScCondFrmtEntry.

Definition at line 140 of file condformatdlgentry.hxx.

References condformat::entry::CONDITION.

◆ Init()

void ScConditionFrmtEntry::Init ( ScCondFormatDlg pDialogParent)
private

Definition at line 217 of file condformatdlgentry.cxx.

References LINK, ScCondFrmtEntry::mpDoc, mxEdVal1, mxEdVal2, mxLbCondType, and mxLbStyle.

Referenced by ScConditionFrmtEntry().

◆ Notify()

void ScConditionFrmtEntry::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 420 of file condformatdlgentry.cxx.

References SfxHint::GetId(), mbIsInStyleCreate, ScCondFrmtEntry::mpDoc, and mxLbStyle.

◆ Select()

void ScConditionFrmtEntry::Select ( )
overrideprotectedvirtual

Reimplemented from ScCondFrmtEntry.

Definition at line 296 of file condformatdlgentry.cxx.

References mxFtVal, and ScCondFrmtEntry::Select().

Referenced by SetActive().

◆ SetActive()

void ScConditionFrmtEntry::SetActive ( )
overridevirtual

◆ SetInactive()

void ScConditionFrmtEntry::SetInactive ( )
overridevirtual

Member Data Documentation

◆ maWdPreview

SvxFontPrevWindow ScConditionFrmtEntry::maWdPreview
private

Definition at line 95 of file condformatdlgentry.hxx.

◆ mbIsInStyleCreate

bool ScConditionFrmtEntry::mbIsInStyleCreate
private

Definition at line 104 of file condformatdlgentry.hxx.

Referenced by Notify().

◆ mpEntryToCond

const ScConditionMode ScConditionFrmtEntry::mpEntryToCond
staticprivate
Initial value:
= {
}

Definition at line 108 of file condformatdlgentry.hxx.

Referenced by ConditionModeToEntryPos(), and EntryPosToConditionMode().

◆ mxEdVal1

std::unique_ptr<formula::RefEdit> ScConditionFrmtEntry::mxEdVal1
private

◆ mxEdVal2

std::unique_ptr<formula::RefEdit> ScConditionFrmtEntry::mxEdVal2
private

◆ mxFtStyle

std::unique_ptr<weld::Label> ScConditionFrmtEntry::mxFtStyle
private

Definition at line 100 of file condformatdlgentry.hxx.

Referenced by SetActive(), and SetInactive().

◆ mxFtVal

std::unique_ptr<weld::Label> ScConditionFrmtEntry::mxFtVal
private

Definition at line 99 of file condformatdlgentry.hxx.

Referenced by Deselect(), and Select().

◆ mxLbCondType

std::unique_ptr<weld::ComboBox> ScConditionFrmtEntry::mxLbCondType
private

◆ mxLbStyle

std::unique_ptr<weld::ComboBox> ScConditionFrmtEntry::mxLbStyle
private

◆ mxWdPreview

std::unique_ptr<weld::CustomWeld> ScConditionFrmtEntry::mxWdPreview
private

Definition at line 103 of file condformatdlgentry.hxx.

Referenced by ScConditionFrmtEntry().

◆ mxWdPreviewWin

std::unique_ptr<weld::Widget> ScConditionFrmtEntry::mxWdPreviewWin
private

Definition at line 102 of file condformatdlgentry.hxx.

Referenced by SetActive(), and SetInactive().

◆ NUM_COND_ENTRIES

const sal_Int32 ScConditionFrmtEntry::NUM_COND_ENTRIES = 24
staticprivate

Definition at line 106 of file condformatdlgentry.hxx.

Referenced by ConditionModeToEntryPos(), and EntryPosToConditionMode().


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