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)
 
void SetPos (const ScAddress &rPos)
 
bool IsSelected () const
 
void SetIndex (sal_Int32 nIndex)
 
- 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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Protected Member Functions

virtual void Select () override
 
virtual void Deselect () override
 

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 ( ScCondFormatList pParent,
ScDocument pDoc,
ScCondFormatDlg pDialogParent,
const ScAddress rPos,
const ScCondFormatEntry pFormatEntry = nullptr 
)
ScConditionFrmtEntry::~ScConditionFrmtEntry ( )
overridevirtual

Definition at line 210 of file condformatdlgentry.cxx.

Member Function Documentation

sal_Int32 ScConditionFrmtEntry::ConditionModeToEntryPos ( ScConditionMode  eMode)
staticprivate

Definition at line 297 of file condformatdlgentry.cxx.

References assert(), i, mpEntryToCond, and NUM_COND_ENTRIES.

Referenced by ScConditionFrmtEntry().

ScFormatEntry * ScConditionFrmtEntry::createConditionEntry ( ) const
private
ScConditionFrmtEntry::DECL_LINK ( StyleSelectHdl  ,
weld::ComboBox ,
void   
)
private
ScConditionFrmtEntry::DECL_LINK ( ConditionTypeSelectHdl  ,
weld::ComboBox ,
void   
)
private
ScConditionFrmtEntry::DECL_LINK ( OnEdChanged  ,
formula::RefEdit ,
void   
)
private
void ScConditionFrmtEntry::Deselect ( )
overrideprotectedvirtual

Reimplemented from ScCondFrmtEntry.

Definition at line 291 of file condformatdlgentry.cxx.

References ScCondFrmtEntry::Deselect(), and mxFtVal.

Referenced by SetInactive().

ScConditionMode ScConditionFrmtEntry::EntryPosToConditionMode ( sal_Int32  aEntryPos)
staticprivate

Definition at line 310 of file condformatdlgentry.cxx.

References assert(), mpEntryToCond, and NUM_COND_ENTRIES.

Referenced by createConditionEntry(), and SetActive().

ScFormatEntry * ScConditionFrmtEntry::GetEntry ( ) const
overridevirtual

Implements ScCondFrmtEntry.

Definition at line 358 of file condformatdlgentry.cxx.

References createConditionEntry().

OUString ScConditionFrmtEntry::GetExpressionString ( )
overrideprivatevirtual
sal_Int32 ScConditionFrmtEntry::GetNumberEditFields ( ScConditionMode  eMode)
staticprivate
virtual condformat::entry::ScCondFrmtEntryType ScConditionFrmtEntry::GetType ( )
inlineoverridevirtual

Implements ScCondFrmtEntry.

Definition at line 140 of file condformatdlgentry.hxx.

References condformat::entry::CONDITION.

void ScConditionFrmtEntry::Init ( ScCondFormatDlg pDialogParent)
private

Definition at line 214 of file condformatdlgentry.cxx.

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

Referenced by ScConditionFrmtEntry().

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

Reimplemented from SfxListener.

Definition at line 409 of file condformatdlgentry.cxx.

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

void ScConditionFrmtEntry::Select ( )
overrideprotectedvirtual

Reimplemented from ScCondFrmtEntry.

Definition at line 285 of file condformatdlgentry.cxx.

References mxFtVal, and ScCondFrmtEntry::Select().

Referenced by SetActive().

void ScConditionFrmtEntry::SetActive ( )
overridevirtual
void ScConditionFrmtEntry::SetInactive ( )
overridevirtual

Member Data Documentation

SvxFontPrevWindow ScConditionFrmtEntry::maWdPreview
private

Definition at line 95 of file condformatdlgentry.hxx.

bool ScConditionFrmtEntry::mbIsInStyleCreate
private

Definition at line 104 of file condformatdlgentry.hxx.

Referenced by Notify().

const ScConditionMode ScConditionFrmtEntry::mpEntryToCond
staticprivate
std::unique_ptr<formula::RefEdit> ScConditionFrmtEntry::mxEdVal1
private
std::unique_ptr<formula::RefEdit> ScConditionFrmtEntry::mxEdVal2
private
std::unique_ptr<weld::Label> ScConditionFrmtEntry::mxFtStyle
private

Definition at line 100 of file condformatdlgentry.hxx.

Referenced by SetActive(), and SetInactive().

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

Definition at line 99 of file condformatdlgentry.hxx.

Referenced by Deselect(), and Select().

std::unique_ptr<weld::ComboBox> ScConditionFrmtEntry::mxLbCondType
private
std::unique_ptr<weld::ComboBox> ScConditionFrmtEntry::mxLbStyle
private
std::unique_ptr<weld::CustomWeld> ScConditionFrmtEntry::mxWdPreview
private

Definition at line 103 of file condformatdlgentry.hxx.

Referenced by ScConditionFrmtEntry().

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

Definition at line 102 of file condformatdlgentry.hxx.

Referenced by SetActive(), and SetInactive().

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: