LibreOffice Module chart2 (master) 1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
chart::impl::SeriesHeader Class Reference
Collaboration diagram for chart::impl::SeriesHeader:
[legend]

Public Member Functions

 SeriesHeader (weld::Container *pParent, weld::Container *pColorParent)
 
 ~SeriesHeader ()
 
void SetColor (const Color &rCol)
 
void SetPos ()
 
void SetWidth (sal_Int32 nWidth)
 
void SetChartType (const rtl::Reference< ::chart::ChartType > &xChartType, bool bSwapXAndYAxis)
 
void SetSeriesName (const OUString &rName)
 
void SetRange (sal_Int32 nStartCol, sal_Int32 nEndCol)
 
void SetPixelWidth (sal_Int32 nWidth)
 
sal_Int32 GetStartColumn () const
 
sal_Int32 GetEndColumn () const
 
void Show ()
 
void Hide ()
 
void applyChanges ()
 call this before destroying the class. More...
 
void SetGetFocusHdl (const Link< SeriesHeaderEdit &, void > &rLink)
 
void SetEditChangedHdl (const Link< SeriesHeaderEdit &, void > &rLink)
 
bool HasFocus () const
 

Static Public Member Functions

static sal_Int32 GetRelativeAppFontXPosForNameField ()
 

Static Public Attributes

static const sal_Int32 nSymbolHeight = 10
 
static const sal_Int32 nSymbolDistance = 2
 

Private Member Functions

void notifyChanges ()
 
 DECL_LINK (ImplUpdateDataHdl, Timer *, void)
 
 DECL_LINK (SeriesNameEdited, SeriesHeaderEdit &, void)
 

Static Private Member Functions

static OUString GetChartTypeImage (const rtl::Reference< ::chart::ChartType > &xChartType, bool bSwapXAndYAxis)
 

Private Attributes

Timer m_aUpdateDataTimer
 
std::unique_ptr< weld::Builderm_xBuilder1
 
std::unique_ptr< weld::Builderm_xBuilder2
 
weld::Containerm_pParent
 
weld::Containerm_pColorParent
 
std::unique_ptr< weld::Containerm_xContainer1
 
std::unique_ptr< weld::Containerm_xContainer2
 
std::unique_ptr< weld::Imagem_spSymbol
 
std::unique_ptr< SeriesHeaderEditm_spSeriesName
 
std::unique_ptr< weld::Imagem_spColorBar
 
VclPtr< OutputDevicem_xDevice
 
Link< SeriesHeaderEdit &, void > m_aChangeLink
 
Color m_aColor
 
sal_Int32 m_nStartCol
 
sal_Int32 m_nEndCol
 
sal_Int32 m_nWidth
 
bool m_bSeriesNameChangePending
 

Detailed Description

Definition at line 164 of file DataBrowser.cxx.

Constructor & Destructor Documentation

◆ SeriesHeader()

chart::impl::SeriesHeader::SeriesHeader ( weld::Container pParent,
weld::Container pColorParent 
)
explicit

◆ ~SeriesHeader()

chart::impl::SeriesHeader::~SeriesHeader ( )

Member Function Documentation

◆ applyChanges()

void chart::impl::SeriesHeader::applyChanges ( )

call this before destroying the class.

This notifies the listeners to changes of the edit field for the series name.

Definition at line 271 of file DataBrowser.cxx.

References m_bSeriesNameChangePending, and notifyChanges().

◆ DECL_LINK() [1/2]

chart::impl::SeriesHeader::DECL_LINK ( ImplUpdateDataHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [2/2]

chart::impl::SeriesHeader::DECL_LINK ( SeriesNameEdited  ,
SeriesHeaderEdit ,
void   
)
private

◆ GetChartTypeImage()

OUString chart::impl::SeriesHeader::GetChartTypeImage ( const rtl::Reference< ::chart::ChartType > &  xChartType,
bool  bSwapXAndYAxis 
)
staticprivate

◆ GetEndColumn()

sal_Int32 chart::impl::SeriesHeader::GetEndColumn ( ) const
inline

Definition at line 181 of file DataBrowser.cxx.

References m_nEndCol.

◆ GetRelativeAppFontXPosForNameField()

static sal_Int32 chart::impl::SeriesHeader::GetRelativeAppFontXPosForNameField ( )
inlinestatic

Definition at line 186 of file DataBrowser.cxx.

References nSymbolDistance, and nSymbolHeight.

Referenced by chart::DataBrowser::RenewTable().

◆ GetStartColumn()

sal_Int32 chart::impl::SeriesHeader::GetStartColumn ( ) const
inline

Definition at line 180 of file DataBrowser.cxx.

References m_nStartCol.

◆ HasFocus()

bool chart::impl::SeriesHeader::HasFocus ( ) const

Definition at line 373 of file DataBrowser.cxx.

References m_spSeriesName.

◆ Hide()

void chart::impl::SeriesHeader::Hide ( )

Definition at line 346 of file DataBrowser.cxx.

References m_xContainer1, and m_xContainer2.

◆ notifyChanges()

void chart::impl::SeriesHeader::notifyChanges ( )
private

Definition at line 265 of file DataBrowser.cxx.

References m_aChangeLink, m_bSeriesNameChangePending, and m_spSeriesName.

Referenced by applyChanges().

◆ SetChartType()

void chart::impl::SeriesHeader::SetChartType ( const rtl::Reference< ::chart::ChartType > &  xChartType,
bool  bSwapXAndYAxis 
)

Definition at line 320 of file DataBrowser.cxx.

References GetChartTypeImage(), and m_spSymbol.

◆ SetColor()

void chart::impl::SeriesHeader::SetColor ( const Color rCol)

Definition at line 279 of file DataBrowser.cxx.

References m_aColor.

◆ SetEditChangedHdl()

void chart::impl::SeriesHeader::SetEditChangedHdl ( const Link< SeriesHeaderEdit &, void > &  rLink)

Definition at line 352 of file DataBrowser.cxx.

References m_aChangeLink.

◆ SetGetFocusHdl()

void chart::impl::SeriesHeader::SetGetFocusHdl ( const Link< SeriesHeaderEdit &, void > &  rLink)

Definition at line 368 of file DataBrowser.cxx.

References m_spSeriesName.

◆ SetPixelWidth()

void chart::impl::SeriesHeader::SetPixelWidth ( sal_Int32  nWidth)

Definition at line 315 of file DataBrowser.cxx.

References SetWidth().

◆ SetPos()

void chart::impl::SeriesHeader::SetPos ( )

◆ SetRange()

void chart::impl::SeriesHeader::SetRange ( sal_Int32  nStartCol,
sal_Int32  nEndCol 
)

Definition at line 333 of file DataBrowser.cxx.

References m_nEndCol, m_nStartCol, and m_spSeriesName.

◆ SetSeriesName()

void chart::impl::SeriesHeader::SetSeriesName ( const OUString &  rName)

Definition at line 328 of file DataBrowser.cxx.

References m_spSeriesName.

◆ SetWidth()

void chart::impl::SeriesHeader::SetWidth ( sal_Int32  nWidth)

Definition at line 309 of file DataBrowser.cxx.

References m_nWidth, and SetPos().

Referenced by SetPixelWidth().

◆ Show()

void chart::impl::SeriesHeader::Show ( )

Definition at line 340 of file DataBrowser.cxx.

References m_xContainer1, and m_xContainer2.

Referenced by SeriesHeader().

Member Data Documentation

◆ m_aChangeLink

Link<SeriesHeaderEdit&,void> chart::impl::SeriesHeader::m_aChangeLink
private

Definition at line 217 of file DataBrowser.cxx.

Referenced by notifyChanges(), and SetEditChangedHdl().

◆ m_aColor

Color chart::impl::SeriesHeader::m_aColor
private

Definition at line 218 of file DataBrowser.cxx.

Referenced by SetColor(), and SetPos().

◆ m_aUpdateDataTimer

Timer chart::impl::SeriesHeader::m_aUpdateDataTimer
private

Definition at line 203 of file DataBrowser.cxx.

Referenced by SeriesHeader(), and ~SeriesHeader().

◆ m_bSeriesNameChangePending

bool chart::impl::SeriesHeader::m_bSeriesNameChangePending
private

Definition at line 231 of file DataBrowser.cxx.

Referenced by applyChanges(), and notifyChanges().

◆ m_nEndCol

sal_Int32 chart::impl::SeriesHeader::m_nEndCol
private

Definition at line 229 of file DataBrowser.cxx.

Referenced by GetEndColumn(), and SetRange().

◆ m_nStartCol

sal_Int32 chart::impl::SeriesHeader::m_nStartCol
private

Definition at line 229 of file DataBrowser.cxx.

Referenced by GetStartColumn(), and SetRange().

◆ m_nWidth

sal_Int32 chart::impl::SeriesHeader::m_nWidth
private

Definition at line 230 of file DataBrowser.cxx.

Referenced by SetPos(), and SetWidth().

◆ m_pColorParent

weld::Container* chart::impl::SeriesHeader::m_pColorParent
private

Definition at line 209 of file DataBrowser.cxx.

Referenced by ~SeriesHeader().

◆ m_pParent

weld::Container* chart::impl::SeriesHeader::m_pParent
private

Definition at line 208 of file DataBrowser.cxx.

Referenced by ~SeriesHeader().

◆ m_spColorBar

std::unique_ptr<weld::Image> chart::impl::SeriesHeader::m_spColorBar
private

Definition at line 215 of file DataBrowser.cxx.

Referenced by SetPos().

◆ m_spSeriesName

std::unique_ptr<SeriesHeaderEdit> chart::impl::SeriesHeader::m_spSeriesName
private

◆ m_spSymbol

std::unique_ptr<weld::Image> chart::impl::SeriesHeader::m_spSymbol
private

Definition at line 213 of file DataBrowser.cxx.

Referenced by SetChartType(), and SetPos().

◆ m_xBuilder1

std::unique_ptr<weld::Builder> chart::impl::SeriesHeader::m_xBuilder1
private

Definition at line 205 of file DataBrowser.cxx.

◆ m_xBuilder2

std::unique_ptr<weld::Builder> chart::impl::SeriesHeader::m_xBuilder2
private

Definition at line 206 of file DataBrowser.cxx.

◆ m_xContainer1

std::unique_ptr<weld::Container> chart::impl::SeriesHeader::m_xContainer1
private

Definition at line 211 of file DataBrowser.cxx.

Referenced by Hide(), Show(), and ~SeriesHeader().

◆ m_xContainer2

std::unique_ptr<weld::Container> chart::impl::SeriesHeader::m_xContainer2
private

Definition at line 212 of file DataBrowser.cxx.

Referenced by Hide(), Show(), and ~SeriesHeader().

◆ m_xDevice

VclPtr< OutputDevice> chart::impl::SeriesHeader::m_xDevice
private

Definition at line 216 of file DataBrowser.cxx.

Referenced by SetPos().

◆ nSymbolDistance

const sal_Int32 chart::impl::SeriesHeader::nSymbolDistance = 2
static

Definition at line 184 of file DataBrowser.cxx.

Referenced by GetRelativeAppFontXPosForNameField().

◆ nSymbolHeight

const sal_Int32 chart::impl::SeriesHeader::nSymbolHeight = 10
static

Definition at line 183 of file DataBrowser.cxx.

Referenced by GetRelativeAppFontXPosForNameField(), and SetPos().


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