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 ()
 
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
 
virtual void startRendering () override
 
virtual void endRendering () override
 
- Public Member Functions inherited from ScFormatEntry
 ScFormatEntry (ScDocument *pDoc)
 
virtual ~ScFormatEntry ()
 
bool operator== (const ScFormatEntry &) const
 
virtual bool IsEqual (const ScFormatEntry &, bool bIgnoreSrcPos) const
 

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  Type {
  Type::Condition,
  Type::ExtCondition,
  Type::Colorscale,
  Type::Databar,
  Type::Iconset,
  Type::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 297 of file colorscale.hxx.

Constructor & Destructor Documentation

ScDataBarFormat::ScDataBarFormat ( ScDocument pDoc)

Definition at line 709 of file colorscale.cxx.

Referenced by Clone().

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

Definition at line 715 of file colorscale.cxx.

Member Function Documentation

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

Implements ScFormatEntry.

Definition at line 741 of file colorscale.cxx.

References ScDataBarFormat().

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 959 of file colorscale.cxx.

References mpFormatData.

const ScDataBarFormatData * ScDataBarFormat::GetDataBarData ( ) const
ScDataBarFormatData * ScDataBarFormat::GetDataBarData ( )

Definition at line 731 of file colorscale.cxx.

References mpFormatData.

std::unique_ptr< ScDataBarInfo > ScDataBarFormat::GetDataBarInfo ( const ScAddress rAddr) const
double ScDataBarFormat::getMax ( double  nMin,
double  nMax 
) const
private
double ScDataBarFormat::getMin ( double  nMin,
double  nMax 
) const
private
ScFormatEntry::Type ScDataBarFormat::GetType ( ) const
overridevirtual

Implements ScFormatEntry.

Definition at line 756 of file colorscale.cxx.

References ScFormatEntry::Databar.

void ScDataBarFormat::SetDataBarData ( ScDataBarFormatData pData)
void ScDataBarFormat::SetParent ( ScConditionalFormat pParent)
overridevirtual

Reimplemented from ScColorFormat.

Definition at line 746 of file colorscale.cxx.

References mpFormatData, and ScColorFormat::SetParent().

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

Implements ScFormatEntry.

Definition at line 773 of file colorscale.cxx.

References mpFormatData.

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

Implements ScFormatEntry.

Definition at line 767 of file colorscale.cxx.

References mpFormatData.

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

Implements ScFormatEntry.

Definition at line 779 of file colorscale.cxx.

References mpFormatData.

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

Implements ScFormatEntry.

Definition at line 761 of file colorscale.cxx.

References mpFormatData.

Member Data Documentation

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

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