LibreOffice Module oox (master) 1
Classes | Namespaces | Macros
converterbase.cxx File Reference
#include <drawingml/chart/converterbase.hxx>
#include <com/sun/star/chart/XAxisXSupplier.hpp>
#include <com/sun/star/chart/XAxisYSupplier.hpp>
#include <com/sun/star/chart/XAxisZSupplier.hpp>
#include <com/sun/star/chart/XChartDocument.hpp>
#include <com/sun/star/chart/XSecondAxisTitleSupplier.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/RelativePosition.hpp>
#include <com/sun/star/chart2/RelativeSize.hpp>
#include <com/sun/star/chart2/XTitle.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <oox/core/xmlfilterbase.hxx>
#include <oox/helper/helper.hxx>
#include <oox/token/properties.hxx>
#include <oox/token/tokens.hxx>
Include dependency graph for converterbase.cxx:

Go to the source code of this file.

Classes

struct  oox::drawingml::chart::ConverterData
 

Namespaces

namespace  oox
 
namespace  oox::drawingml
 
namespace  oox::drawingml::chart
 

Macros

#define OOX_FRAGMENT_GETTITLESHAPE(shape_supplier, supplier_func, property_name)
 A code fragment that returns a shape object from the passed shape supplier using the specified interface function. More...
 
#define OOX_DEFINEFUNC_GETAXISTITLESHAPE(func_name, interface_type, supplier_func, property_name)
 Implements a function returning the drawing shape of an axis title, if existing, using the specified API interface and its function. More...
 

Macro Definition Documentation

◆ OOX_DEFINEFUNC_GETAXISTITLESHAPE

#define OOX_DEFINEFUNC_GETAXISTITLESHAPE (   func_name,
  interface_type,
  supplier_func,
  property_name 
)
Value:
Reference< XShape > func_name( const Reference< cssc::XChartDocument >& rxChart1Doc ) \
{ \
Reference< cssc::interface_type > xAxisSupp( rxChart1Doc->getDiagram(), UNO_QUERY ); \
OOX_FRAGMENT_GETTITLESHAPE( xAxisSupp, supplier_func, property_name ) \
}

Implements a function returning the drawing shape of an axis title, if existing, using the specified API interface and its function.

Definition at line 122 of file converterbase.cxx.

◆ OOX_FRAGMENT_GETTITLESHAPE

#define OOX_FRAGMENT_GETTITLESHAPE (   shape_supplier,
  supplier_func,
  property_name 
)
Value:
PropertySet aPropSet( shape_supplier ); \
if( shape_supplier.is() && aPropSet.getBoolProperty( PROP_##property_name ) ) \
return shape_supplier->supplier_func(); \
return Reference< XShape >(); \

A code fragment that returns a shape object from the passed shape supplier using the specified interface function.

Checks a boolean property first.

Definition at line 114 of file converterbase.cxx.

Variable Documentation

◆ mpGetShape

GetShapeFunc mpGetShape

The layout model, if existing.

Definition at line 71 of file converterbase.cxx.

◆ mxLayout

ModelRef< LayoutModel > mxLayout

The API title object.

Definition at line 70 of file converterbase.cxx.

◆ mxTitle

Reference< XTitle > mxTitle

Definition at line 69 of file converterbase.cxx.