LibreOffice Module sc (master) 1
|
#include <condformatdlgentry.hxx>
Public Member Functions | |
ScConditionFrmtEntry (ScCondFormatList *pParent, ScDocument *pDoc, ScCondFormatDlg *pDialogParent, const ScAddress &rPos, const ScCondFormatEntry *pFormatEntry=nullptr) | |
virtual | ~ScConditionFrmtEntry () override |
virtual ScFormatEntry * | GetEntry () 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 ScFormatEntry * | GetEntry () 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 |
SfxBroadcaster * | GetBroadcasterJOE (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 | |
ScFormatEntry * | createConditionEntry () 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::ComboBox > | mxLbCondType |
std::unique_ptr< formula::RefEdit > | mxEdVal1 |
std::unique_ptr< formula::RefEdit > | mxEdVal2 |
std::unique_ptr< weld::Label > | mxFtVal |
std::unique_ptr< weld::Label > | mxFtStyle |
std::unique_ptr< weld::ComboBox > | mxLbStyle |
std::unique_ptr< weld::Widget > | mxWdPreviewWin |
std::unique_ptr< weld::CustomWeld > | mxWdPreview |
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 | |
ScCondFormatList * | mpParent |
std::unique_ptr< weld::Builder > | mxBuilder |
std::unique_ptr< weld::ComboBox > | mxLbType |
ScDocument * | mpDoc |
ScAddress | maPos |
Definition at line 92 of file condformatdlgentry.hxx.
ScConditionFrmtEntry::ScConditionFrmtEntry | ( | ScCondFormatList * | pParent, |
ScDocument * | pDoc, | ||
ScCondFormatDlg * | pDialogParent, | ||
const ScAddress & | rPos, | ||
const ScCondFormatEntry * | pFormatEntry = nullptr |
||
) |
Definition at line 152 of file condformatdlgentry.cxx.
References CommonWidgetWidth, ConditionModeToEntryPos(), eMode, ScConditionEntry::GetExpression(), GetNumberEditFields(), ScConditionEntry::GetOperation(), ScCondFormatEntry::GetStyle(), ScDocument::GetStyleSheetPool(), Init(), ScCondFrmtEntry::maPos, mxEdVal1, mxEdVal2, mxLbCondType, mxLbStyle, ScCondFrmtEntry::mxLbType, mxWdPreview, and SfxListener::StartListening().
|
overridevirtual |
Definition at line 213 of file condformatdlgentry.cxx.
|
staticprivate |
Definition at line 308 of file condformatdlgentry.cxx.
References eMode, i, mpEntryToCond, and NUM_COND_ENTRIES.
Referenced by ScConditionFrmtEntry().
|
private |
Definition at line 231 of file condformatdlgentry.cxx.
References eMode, EntryPosToConditionMode(), GetNumberEditFields(), ScCondFrmtEntry::maPos, ScCondFrmtEntry::mpDoc, mxEdVal1, mxEdVal2, mxLbCondType, and mxLbStyle.
Referenced by GetEntry().
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Reimplemented from ScCondFrmtEntry.
Definition at line 302 of file condformatdlgentry.cxx.
References ScCondFrmtEntry::Deselect(), and mxFtVal.
Referenced by SetInactive().
|
staticprivate |
Definition at line 321 of file condformatdlgentry.cxx.
References mpEntryToCond, and NUM_COND_ENTRIES.
Referenced by createConditionEntry(), and SetActive().
|
overridevirtual |
Implements ScCondFrmtEntry.
Definition at line 369 of file condformatdlgentry.cxx.
References createConditionEntry().
|
overrideprivatevirtual |
Implements ScCondFrmtEntry.
Definition at line 364 of file condformatdlgentry.cxx.
References CONDITION, ScCondFormatHelper::GetExpression(), mxEdVal1, mxEdVal2, and mxLbCondType.
|
staticprivate |
Definition at line 327 of file condformatdlgentry.cxx.
References AboveAverage, AboveEqualAverage, BeginsWith, BelowAverage, BelowEqualAverage, Between, Bottom10, BottomPercent, ContainsText, Duplicate, eMode, EndsWith, EqGreater, EqLess, Equal, Error, Greater, Less, NoError, NotBetween, NotContainsText, NotDuplicate, NotEqual, Top10, and TopPercent.
Referenced by createConditionEntry(), ScConditionFrmtEntry(), and SetActive().
|
inlineoverridevirtual |
Implements ScCondFrmtEntry.
Definition at line 140 of file condformatdlgentry.hxx.
References condformat::entry::CONDITION.
|
private |
Definition at line 217 of file condformatdlgentry.cxx.
References LINK, ScCondFrmtEntry::mpDoc, mxEdVal1, mxEdVal2, mxLbCondType, and mxLbStyle.
Referenced by ScConditionFrmtEntry().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 420 of file condformatdlgentry.cxx.
References SfxHint::GetId(), mbIsInStyleCreate, ScCondFrmtEntry::mpDoc, and mxLbStyle.
|
overrideprotectedvirtual |
Reimplemented from ScCondFrmtEntry.
Definition at line 296 of file condformatdlgentry.cxx.
References mxFtVal, and ScCondFrmtEntry::Select().
Referenced by SetActive().
|
overridevirtual |
Implements ScCondFrmtEntry.
Definition at line 374 of file condformatdlgentry.cxx.
References eMode, EntryPosToConditionMode(), GetNumberEditFields(), mxEdVal1, mxEdVal2, mxFtStyle, mxLbCondType, mxLbStyle, mxWdPreviewWin, and Select().
|
overridevirtual |
Implements ScCondFrmtEntry.
Definition at line 395 of file condformatdlgentry.cxx.
References Deselect(), mxEdVal1, mxEdVal2, mxFtStyle, mxLbCondType, mxLbStyle, and mxWdPreviewWin.
|
private |
Definition at line 95 of file condformatdlgentry.hxx.
|
private |
Definition at line 104 of file condformatdlgentry.hxx.
Referenced by Notify().
|
staticprivate |
Definition at line 108 of file condformatdlgentry.hxx.
Referenced by ConditionModeToEntryPos(), and EntryPosToConditionMode().
|
private |
Definition at line 97 of file condformatdlgentry.hxx.
Referenced by createConditionEntry(), GetExpressionString(), Init(), ScConditionFrmtEntry(), SetActive(), and SetInactive().
|
private |
Definition at line 98 of file condformatdlgentry.hxx.
Referenced by createConditionEntry(), GetExpressionString(), Init(), ScConditionFrmtEntry(), SetActive(), and SetInactive().
|
private |
Definition at line 100 of file condformatdlgentry.hxx.
Referenced by SetActive(), and SetInactive().
|
private |
Definition at line 99 of file condformatdlgentry.hxx.
Referenced by Deselect(), and Select().
|
private |
Definition at line 96 of file condformatdlgentry.hxx.
Referenced by createConditionEntry(), GetExpressionString(), Init(), ScConditionFrmtEntry(), SetActive(), and SetInactive().
|
private |
Definition at line 101 of file condformatdlgentry.hxx.
Referenced by createConditionEntry(), Init(), Notify(), ScConditionFrmtEntry(), SetActive(), and SetInactive().
|
private |
Definition at line 103 of file condformatdlgentry.hxx.
Referenced by ScConditionFrmtEntry().
|
private |
Definition at line 102 of file condformatdlgentry.hxx.
Referenced by SetActive(), and SetInactive().
|
staticprivate |
Definition at line 106 of file condformatdlgentry.hxx.
Referenced by ConditionModeToEntryPos(), and EntryPosToConditionMode().