LibreOffice Module chart2 (master) 1
|
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::Builder > | m_xBuilder1 |
std::unique_ptr< weld::Builder > | m_xBuilder2 |
weld::Container * | m_pParent |
weld::Container * | m_pColorParent |
std::unique_ptr< weld::Container > | m_xContainer1 |
std::unique_ptr< weld::Container > | m_xContainer2 |
std::unique_ptr< weld::Image > | m_spSymbol |
std::unique_ptr< SeriesHeaderEdit > | m_spSeriesName |
std::unique_ptr< weld::Image > | m_spColorBar |
VclPtr< OutputDevice > | m_xDevice |
Link< SeriesHeaderEdit &, void > | m_aChangeLink |
Color | m_aColor |
sal_Int32 | m_nStartCol |
sal_Int32 | m_nEndCol |
sal_Int32 | m_nWidth |
bool | m_bSeriesNameChangePending |
Definition at line 164 of file DataBrowser.cxx.
|
explicit |
Definition at line 234 of file DataBrowser.cxx.
References EDIT_UPDATEDATA_TIMEOUT, LINK, m_aUpdateDataTimer, m_spSeriesName, Timer::SetInvokeHandler(), Timer::SetTimeout(), and Show().
chart::impl::SeriesHeader::~SeriesHeader | ( | ) |
Definition at line 258 of file DataBrowser.cxx.
References m_aUpdateDataTimer, m_pColorParent, m_pParent, m_xContainer1, m_xContainer2, weld::Container::move(), and Task::Stop().
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().
|
private |
|
private |
|
staticprivate |
Definition at line 378 of file DataBrowser.cxx.
References CHART2_SERVICE_NAME_CHARTTYPE_AREA, CHART2_SERVICE_NAME_CHARTTYPE_BUBBLE, CHART2_SERVICE_NAME_CHARTTYPE_CANDLESTICK, CHART2_SERVICE_NAME_CHARTTYPE_COLUMN, CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET, CHART2_SERVICE_NAME_CHARTTYPE_LINE, CHART2_SERVICE_NAME_CHARTTYPE_NET, CHART2_SERVICE_NAME_CHARTTYPE_PIE, and CHART2_SERVICE_NAME_CHARTTYPE_SCATTER.
Referenced by SetChartType().
|
inline |
Definition at line 181 of file DataBrowser.cxx.
References m_nEndCol.
|
inlinestatic |
Definition at line 186 of file DataBrowser.cxx.
References nSymbolDistance, and nSymbolHeight.
Referenced by chart::DataBrowser::RenewTable().
|
inline |
Definition at line 180 of file DataBrowser.cxx.
References m_nStartCol.
bool chart::impl::SeriesHeader::HasFocus | ( | ) | const |
Definition at line 373 of file DataBrowser.cxx.
References m_spSeriesName.
void chart::impl::SeriesHeader::Hide | ( | ) |
Definition at line 346 of file DataBrowser.cxx.
References m_xContainer1, and m_xContainer2.
|
private |
Definition at line 265 of file DataBrowser.cxx.
References m_aChangeLink, m_bSeriesNameChangePending, and m_spSeriesName.
Referenced by applyChanges().
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.
void chart::impl::SeriesHeader::SetColor | ( | const Color & | rCol | ) |
Definition at line 279 of file DataBrowser.cxx.
References m_aColor.
void chart::impl::SeriesHeader::SetEditChangedHdl | ( | const Link< SeriesHeaderEdit &, void > & | rLink | ) |
Definition at line 352 of file DataBrowser.cxx.
References m_aChangeLink.
void chart::impl::SeriesHeader::SetGetFocusHdl | ( | const Link< SeriesHeaderEdit &, void > & | rLink | ) |
Definition at line 368 of file DataBrowser.cxx.
References m_spSeriesName.
void chart::impl::SeriesHeader::SetPixelWidth | ( | sal_Int32 | nWidth | ) |
Definition at line 315 of file DataBrowser.cxx.
References SetWidth().
void chart::impl::SeriesHeader::SetPos | ( | ) |
Definition at line 284 of file DataBrowser.cxx.
References VclPtr< class reference_type >::get(), Size::Height(), m_aColor, m_nWidth, m_spColorBar, m_spSeriesName, m_spSymbol, m_xDevice, nSymbolHeight, and Size::Width().
Referenced by SetWidth().
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.
void chart::impl::SeriesHeader::SetSeriesName | ( | const OUString & | rName | ) |
Definition at line 328 of file DataBrowser.cxx.
References m_spSeriesName.
void chart::impl::SeriesHeader::SetWidth | ( | sal_Int32 | nWidth | ) |
Definition at line 309 of file DataBrowser.cxx.
References m_nWidth, and SetPos().
Referenced by SetPixelWidth().
void chart::impl::SeriesHeader::Show | ( | ) |
Definition at line 340 of file DataBrowser.cxx.
References m_xContainer1, and m_xContainer2.
Referenced by SeriesHeader().
|
private |
Definition at line 217 of file DataBrowser.cxx.
Referenced by notifyChanges(), and SetEditChangedHdl().
|
private |
Definition at line 218 of file DataBrowser.cxx.
Referenced by SetColor(), and SetPos().
|
private |
Definition at line 203 of file DataBrowser.cxx.
Referenced by SeriesHeader(), and ~SeriesHeader().
|
private |
Definition at line 231 of file DataBrowser.cxx.
Referenced by applyChanges(), and notifyChanges().
|
private |
Definition at line 229 of file DataBrowser.cxx.
Referenced by GetEndColumn(), and SetRange().
|
private |
Definition at line 229 of file DataBrowser.cxx.
Referenced by GetStartColumn(), and SetRange().
|
private |
Definition at line 230 of file DataBrowser.cxx.
Referenced by SetPos(), and SetWidth().
|
private |
Definition at line 209 of file DataBrowser.cxx.
Referenced by ~SeriesHeader().
|
private |
Definition at line 208 of file DataBrowser.cxx.
Referenced by ~SeriesHeader().
|
private |
Definition at line 215 of file DataBrowser.cxx.
Referenced by SetPos().
|
private |
Definition at line 214 of file DataBrowser.cxx.
Referenced by HasFocus(), notifyChanges(), SeriesHeader(), SetGetFocusHdl(), SetPos(), SetRange(), and SetSeriesName().
|
private |
Definition at line 213 of file DataBrowser.cxx.
Referenced by SetChartType(), and SetPos().
|
private |
Definition at line 205 of file DataBrowser.cxx.
|
private |
Definition at line 206 of file DataBrowser.cxx.
|
private |
Definition at line 211 of file DataBrowser.cxx.
Referenced by Hide(), Show(), and ~SeriesHeader().
|
private |
Definition at line 212 of file DataBrowser.cxx.
Referenced by Hide(), Show(), and ~SeriesHeader().
|
private |
Definition at line 216 of file DataBrowser.cxx.
Referenced by SetPos().
|
static |
Definition at line 184 of file DataBrowser.cxx.
Referenced by GetRelativeAppFontXPosForNameField().
|
static |
Definition at line 183 of file DataBrowser.cxx.
Referenced by GetRelativeAppFontXPosForNameField(), and SetPos().