LibreOffice Module chart2 (master) 1
Public Types | Static Public Member Functions | List of all members
chart::TitleHelper Class Reference

#include <TitleHelper.hxx>

Public Types

enum  eTitleType {
  TITLE_BEGIN = 0 ,
  MAIN_TITLE = 0 ,
  SUB_TITLE ,
  X_AXIS_TITLE ,
  Y_AXIS_TITLE ,
  Z_AXIS_TITLE ,
  SECONDARY_X_AXIS_TITLE ,
  SECONDARY_Y_AXIS_TITLE ,
  NORMAL_TITLE_END ,
  TITLE_AT_STANDARD_X_AXIS_POSITION ,
  TITLE_AT_STANDARD_Y_AXIS_POSITION
}
 

Static Public Member Functions

static rtl::Reference< ::chart::TitlegetTitle (eTitleType nTitleIndex, ChartModel &rModel)
 
static rtl::Reference< ::chart::TitlegetTitle (eTitleType nTitleIndex, const rtl::Reference< ::chart::ChartModel > &xModel)
 
static rtl::Reference< ::chart::TitlecreateTitle (eTitleType nTitleIndex, const OUString &rTitleText, const rtl::Reference< ::chart::ChartModel > &xModel, const css::uno::Reference< css::uno::XComponentContext > &xContext, ReferenceSizeProvider *pRefSizeProvider=nullptr)
 
static rtl::Reference< ::chart::TitlecreateOrShowTitle (eTitleType nTitleIndex, const OUString &rTitleText, const rtl::Reference< ::chart::ChartModel > &xModel, const css::uno::Reference< css::uno::XComponentContext > &xContex)
 
static void removeTitle (eTitleType nTitleIndex, const rtl::Reference< ::chart::ChartModel > &xModel)
 
static OUString getCompleteString (const rtl::Reference< ::chart::Title > &xTitle)
 
static void setCompleteString (const OUString &rNewText, const rtl::Reference< ::chart::Title > &xTitle, const css::uno::Reference< css::uno::XComponentContext > &xContext, const float *pDefaultCharHeight=nullptr)
 
static bool getTitleType (eTitleType &rType, const rtl::Reference< ::chart::Title > &xTitle, const rtl::Reference< ::chart::ChartModel > &xModel)
 
static void hideTitle (eTitleType nTitleIndex, const rtl::Reference< ::chart::ChartModel > &xModel)
 

Detailed Description

Definition at line 36 of file TitleHelper.hxx.

Member Enumeration Documentation

◆ eTitleType

Enumerator
TITLE_BEGIN 
MAIN_TITLE 
SUB_TITLE 
X_AXIS_TITLE 
Y_AXIS_TITLE 
Z_AXIS_TITLE 
SECONDARY_X_AXIS_TITLE 
SECONDARY_Y_AXIS_TITLE 
NORMAL_TITLE_END 
TITLE_AT_STANDARD_X_AXIS_POSITION 
TITLE_AT_STANDARD_Y_AXIS_POSITION 

Definition at line 39 of file TitleHelper.hxx.

Member Function Documentation

◆ createOrShowTitle()

rtl::Reference< Title > chart::TitleHelper::createOrShowTitle ( eTitleType  nTitleIndex,
const OUString &  rTitleText,
const rtl::Reference< ::chart::ChartModel > &  xModel,
const css::uno::Reference< css::uno::XComponentContext > &  xContex 
)
static

Definition at line 181 of file TitleHelper.cxx.

References createTitle(), getTitle(), and xModel.

Referenced by chart::sidebar::ChartElementsPanel::setTitleVisible().

◆ createTitle()

rtl::Reference< Title > chart::TitleHelper::createTitle ( eTitleType  nTitleIndex,
const OUString &  rTitleText,
const rtl::Reference< ::chart::ChartModel > &  xModel,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
ReferenceSizeProvider pRefSizeProvider = nullptr 
)
static

◆ getCompleteString()

OUString chart::TitleHelper::getCompleteString ( const rtl::Reference< ::chart::Title > &  xTitle)
static

◆ getTitle() [1/2]

rtl::Reference< Title > chart::TitleHelper::getTitle ( TitleHelper::eTitleType  nTitleIndex,
ChartModel &  rModel 
)
static

◆ getTitle() [2/2]

static rtl::Reference< ::chart::Title > chart::TitleHelper::getTitle ( eTitleType  nTitleIndex,
const rtl::Reference< ::chart::ChartModel > &  xModel 
)
static

◆ getTitleType()

bool chart::TitleHelper::getTitleType ( eTitleType rType,
const rtl::Reference< ::chart::Title > &  xTitle,
const rtl::Reference< ::chart::ChartModel > &  xModel 
)
static

◆ hideTitle()

void chart::TitleHelper::hideTitle ( eTitleType  nTitleIndex,
const rtl::Reference< ::chart::ChartModel > &  xModel 
)
static

Definition at line 411 of file TitleHelper.cxx.

References getTitle(), and xModel.

Referenced by chart::sidebar::ChartElementsPanel::setTitleVisible().

◆ removeTitle()

void chart::TitleHelper::removeTitle ( eTitleType  nTitleIndex,
const rtl::Reference< ::chart::ChartModel > &  xModel 
)
static

◆ setCompleteString()

void chart::TitleHelper::setCompleteString ( const OUString &  rNewText,
const rtl::Reference< ::chart::Title > &  xTitle,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const float *  pDefaultCharHeight = nullptr 
)
static

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