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 <basegfx/numeric/ftools.hxx>
#include <oox/core/xmlfilterbase.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

 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

#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 115 of file converterbase.cxx.

#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 107 of file converterbase.cxx.

Variable Documentation

GetShapeFunc mpGetShape

The layout model, if existing.

Definition at line 69 of file converterbase.cxx.

ModelRef< LayoutModel > mxLayout

The API title object.

Definition at line 68 of file converterbase.cxx.

Reference< XTitle > mxTitle

Definition at line 67 of file converterbase.cxx.