LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScDataBarFormat Class Referencefinal

#include <colorscale.hxx>

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

Public Member Functions

 ScDataBarFormat (ScDocument *pDoc)
 
 ScDataBarFormat (ScDocument *pDoc, const ScDataBarFormat &rFormat)
 
virtual ScColorFormatClone (ScDocument *pDoc) const override
 
virtual void SetParent (ScConditionalFormat *pParent) override
 
std::unique_ptr< ScDataBarInfoGetDataBarInfo (const ScAddress &rAddr) const
 
void SetDataBarData (ScDataBarFormatData *pData)
 
const ScDataBarFormatDataGetDataBarData () const
 
ScDataBarFormatDataGetDataBarData ()
 
bool IsEqual (const ScFormatEntry &r, bool bIgnoreSrcPos) const override
 
virtual void UpdateReference (sc::RefUpdateContext &rCxt) override
 
virtual void UpdateInsertTab (sc::RefUpdateInsertTabContext &rCxt) override
 
virtual void UpdateDeleteTab (sc::RefUpdateDeleteTabContext &rCxt) override
 
virtual void UpdateMoveTab (sc::RefUpdateMoveTabContext &rCxt) override
 
virtual Type GetType () const override
 
void EnsureSize ()
 Makes sure that the mpFormatData does not contain valid entries. More...
 
- Public Member Functions inherited from ScColorFormat
 ScColorFormat (ScDocument *pDoc)
 
virtual ~ScColorFormat () override
 
const ScRangeListGetRange () const
 
void SetCache (const std::vector< double > &aValues)
 
std::vector< double > GetCache () const
 
virtual void SetParent (ScConditionalFormat *pParent) override
 
virtual void startRendering () override
 
virtual void endRendering () override
 
virtual void updateValues () override
 
- Public Member Functions inherited from ScFormatEntry
 ScFormatEntry (ScDocument *pDoc)
 
virtual ~ScFormatEntry ()
 
virtual Type GetType () const =0
 
virtual void UpdateReference (sc::RefUpdateContext &rCxt)=0
 
virtual void UpdateInsertTab (sc::RefUpdateInsertTabContext &rCxt)=0
 
virtual void UpdateDeleteTab (sc::RefUpdateDeleteTabContext &rCxt)=0
 
virtual void UpdateMoveTab (sc::RefUpdateMoveTabContext &rCxt)=0
 
virtual ScFormatEntryClone (ScDocument *pDoc) const =0
 
virtual void SetParent (ScConditionalFormat *pNew)=0
 
bool operator== (const ScFormatEntry &) const
 
virtual bool IsEqual (const ScFormatEntry &, bool bIgnoreSrcPos) const
 
virtual void startRendering ()
 
virtual void endRendering ()
 
virtual void updateValues ()
 

Private Member Functions

double getMin (double nMin, double nMax) const
 
double getMax (double nMin, double nMax) const
 

Private Attributes

std::unique_ptr< ScDataBarFormatDatampFormatData
 

Additional Inherited Members

- Public Types inherited from ScFormatEntry
enum class  Type {
  Condition ,
  ExtCondition ,
  Colorscale ,
  Databar ,
  Iconset ,
  Date
}
 
- Protected Member Functions inherited from ScColorFormat
std::vector< double > & getValues () const
 
double getMinValue () const
 
double getMaxValue () const
 
- Protected Attributes inherited from ScColorFormat
ScConditionalFormatmpParent
 
- Protected Attributes inherited from ScFormatEntry
ScDocumentmpDoc
 

Detailed Description

Definition at line 301 of file colorscale.hxx.

Constructor & Destructor Documentation

◆ ScDataBarFormat() [1/2]

ScDataBarFormat::ScDataBarFormat ( ScDocument pDoc)

Definition at line 757 of file colorscale.cxx.

Referenced by Clone().

◆ ScDataBarFormat() [2/2]

ScDataBarFormat::ScDataBarFormat ( ScDocument pDoc,
const ScDataBarFormat rFormat 
)

Definition at line 763 of file colorscale.cxx.

Member Function Documentation

◆ Clone()

ScColorFormat * ScDataBarFormat::Clone ( ScDocument pDoc) const
overridevirtual

Implements ScFormatEntry.

Definition at line 789 of file colorscale.cxx.

References ScDataBarFormat().

◆ EnsureSize()

void ScDataBarFormat::EnsureSize ( )

Makes sure that the mpFormatData does not contain valid entries.

Should be called when it is not sure that the format is valid.

Definition at line 1042 of file colorscale.cxx.

References mpFormatData.

◆ GetDataBarData() [1/2]

ScDataBarFormatData * ScDataBarFormat::GetDataBarData ( )

Definition at line 779 of file colorscale.cxx.

References mpFormatData.

◆ GetDataBarData() [2/2]

const ScDataBarFormatData * ScDataBarFormat::GetDataBarData ( ) const

◆ GetDataBarInfo()

std::unique_ptr< ScDataBarInfo > ScDataBarFormat::GetDataBarInfo ( const ScAddress rAddr) const

◆ getMax()

double ScDataBarFormat::getMax ( double  nMin,
double  nMax 
) const
private

◆ getMin()

double ScDataBarFormat::getMin ( double  nMin,
double  nMax 
) const
private

◆ GetType()

ScFormatEntry::Type ScDataBarFormat::GetType ( ) const
overridevirtual

Implements ScFormatEntry.

Definition at line 804 of file colorscale.cxx.

References ScFormatEntry::Databar.

Referenced by IsEqual().

◆ IsEqual()

bool ScDataBarFormat::IsEqual ( const ScFormatEntry r,
bool  bIgnoreSrcPos 
) const
overridevirtual

Reimplemented from ScFormatEntry.

Definition at line 809 of file colorscale.cxx.

References ScFormatEntry::GetType(), GetType(), and mpFormatData.

◆ SetDataBarData()

void ScDataBarFormat::SetDataBarData ( ScDataBarFormatData pData)

◆ SetParent()

void ScDataBarFormat::SetParent ( ScConditionalFormat pParent)
overridevirtual

Reimplemented from ScColorFormat.

Definition at line 794 of file colorscale.cxx.

References mpFormatData, and ScColorFormat::SetParent().

◆ UpdateDeleteTab()

void ScDataBarFormat::UpdateDeleteTab ( sc::RefUpdateDeleteTabContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 856 of file colorscale.cxx.

References mpFormatData.

◆ UpdateInsertTab()

void ScDataBarFormat::UpdateInsertTab ( sc::RefUpdateInsertTabContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 850 of file colorscale.cxx.

References mpFormatData.

◆ UpdateMoveTab()

void ScDataBarFormat::UpdateMoveTab ( sc::RefUpdateMoveTabContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 862 of file colorscale.cxx.

References mpFormatData.

◆ UpdateReference()

void ScDataBarFormat::UpdateReference ( sc::RefUpdateContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 844 of file colorscale.cxx.

References mpFormatData.

Member Data Documentation

◆ mpFormatData

std::unique_ptr<ScDataBarFormatData> ScDataBarFormat::mpFormatData
private

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