LibreOffice Module oox (master)  1
Classes | Namespaces | Macros
objectformatter.cxx File Reference
#include <drawingml/chart/objectformatter.hxx>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/util/XNumberFormatTypes.hpp>
#include <osl/thread.h>
#include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
#include <oox/core/xmlfilterbase.hxx>
#include <drawingml/fillproperties.hxx>
#include <drawingml/lineproperties.hxx>
#include <oox/drawingml/shapepropertymap.hxx>
#include <drawingml/textbody.hxx>
#include <drawingml/textparagraph.hxx>
#include <oox/drawingml/theme.hxx>
#include <drawingml/chart/chartspacemodel.hxx>
#include <oox/helper/modelobjecthelper.hxx>
#include <oox/helper/graphichelper.hxx>
#include <oox/token/properties.hxx>
#include <oox/token/tokens.hxx>
Include dependency graph for objectformatter.cxx:

Go to the source code of this file.

Classes

struct  oox::drawingml::chart::ObjectFormatterData
 

Namespaces

 oox::drawingml::chart
 

Macros

#define AUTOFORMAT_PATTERN_COLOR(color_token)   { color_token, XML_TOKEN_INVALID, 0 }
 
#define AUTOFORMAT_PATTERN_COLORMOD(color_token, mod_token, mod_value)   { color_token, mod_token, mod_value }
 
#define AUTOFORMAT_PATTERN_END()   AUTOFORMAT_PATTERN_COLOR( XML_TOKEN_INVALID )
 
#define AUTOFORMAT_COLOR(first, last, themed_style, color_token)   { first, last, themed_style, color_token, XML_TOKEN_INVALID, 0, 100, nullptr, false }
 
#define AUTOFORMAT_COLORMOD(first, last, themed_style, color_token, mod_token, mod_value)   { first, last, themed_style, color_token, mod_token, mod_value, 100, nullptr, false }
 
#define AUTOFORMAT_ACCENTSMOD(first, themed_style, mod_token, mod_value)
 
#define AUTOFORMAT_PATTERN(first, last, themed_style, line_width, pattern)   { first, last, themed_style, XML_TOKEN_INVALID, XML_TOKEN_INVALID, 0, line_width, pattern, false }
 
#define AUTOFORMAT_FADED(first, last, themed_style, color_token, line_width)   { first, last, themed_style, color_token, XML_TOKEN_INVALID, 0, line_width, nullptr, true }
 
#define AUTOFORMAT_FADEDACCENTS(first, themed_style, line_width)
 
#define AUTOFORMAT_INVISIBLE(first, last)   AUTOFORMAT_COLOR( first, last, -1, XML_TOKEN_INVALID )
 
#define AUTOFORMAT_END()   AUTOFORMAT_INVISIBLE( -1, -1 )
 
#define AUTOTEXT_COLOR(first, last, themed_font, color_token, def_font_size, rel_font_size, bold)   { first, last, themed_font, color_token, def_font_size, rel_font_size, bold }
 
#define AUTOTEXT_END()   AUTOTEXT_COLOR( -1, -1, XML_none, XML_TOKEN_INVALID, 1000, 100, false )
 
#define TYPEFORMAT_FRAME(obj_type, prop_type, auto_texts, auto_lines, auto_fills)   { obj_type, prop_type, auto_lines, auto_fills, auto_texts, true }
 
#define TYPEFORMAT_LINE(obj_type, prop_type, auto_texts, auto_lines)   { obj_type, prop_type, auto_lines, nullptr, auto_texts, false }
 

Macro Definition Documentation

#define AUTOFORMAT_ACCENTSMOD (   first,
  themed_style,
  mod_token,
  mod_value 
)
Value:
AUTOFORMAT_COLORMOD( first, first, themed_style, XML_accent1, mod_token, mod_value ), \
AUTOFORMAT_COLORMOD( first + 1, first + 1, themed_style, XML_accent2, mod_token, mod_value ), \
AUTOFORMAT_COLORMOD( first + 2, first + 2, themed_style, XML_accent3, mod_token, mod_value ), \
AUTOFORMAT_COLORMOD( first + 3, first + 3, themed_style, XML_accent4, mod_token, mod_value ), \
AUTOFORMAT_COLORMOD( first + 4, first + 4, themed_style, XML_accent5, mod_token, mod_value ), \
AUTOFORMAT_COLORMOD( first + 5, first + 5, themed_style, XML_accent6, mod_token, mod_value )
#define AUTOFORMAT_COLORMOD(first, last, themed_style, color_token, mod_token, mod_value)

Definition at line 137 of file objectformatter.cxx.

#define AUTOFORMAT_COLOR (   first,
  last,
  themed_style,
  color_token 
)    { first, last, themed_style, color_token, XML_TOKEN_INVALID, 0, 100, nullptr, false }

Definition at line 131 of file objectformatter.cxx.

#define AUTOFORMAT_COLORMOD (   first,
  last,
  themed_style,
  color_token,
  mod_token,
  mod_value 
)    { first, last, themed_style, color_token, mod_token, mod_value, 100, nullptr, false }

Definition at line 134 of file objectformatter.cxx.

#define AUTOFORMAT_END ( )    AUTOFORMAT_INVISIBLE( -1, -1 )

Definition at line 162 of file objectformatter.cxx.

#define AUTOFORMAT_FADED (   first,
  last,
  themed_style,
  color_token,
  line_width 
)    { first, last, themed_style, color_token, XML_TOKEN_INVALID, 0, line_width, nullptr, true }

Definition at line 148 of file objectformatter.cxx.

#define AUTOFORMAT_FADEDACCENTS (   first,
  themed_style,
  line_width 
)
Value:
AUTOFORMAT_FADED( first, first, themed_style, XML_accent1, line_width ), \
AUTOFORMAT_FADED( first + 1, first + 1, themed_style, XML_accent2, line_width ), \
AUTOFORMAT_FADED( first + 2, first + 2, themed_style, XML_accent3, line_width ), \
AUTOFORMAT_FADED( first + 3, first + 3, themed_style, XML_accent4, line_width ), \
AUTOFORMAT_FADED( first + 4, first + 4, themed_style, XML_accent5, line_width ), \
AUTOFORMAT_FADED( first + 5, first + 5, themed_style, XML_accent6, line_width )
#define AUTOFORMAT_FADED(first, last, themed_style, color_token, line_width)

Definition at line 151 of file objectformatter.cxx.

#define AUTOFORMAT_INVISIBLE (   first,
  last 
)    AUTOFORMAT_COLOR( first, last, -1, XML_TOKEN_INVALID )

Definition at line 159 of file objectformatter.cxx.

#define AUTOFORMAT_PATTERN (   first,
  last,
  themed_style,
  line_width,
  pattern 
)    { first, last, themed_style, XML_TOKEN_INVALID, XML_TOKEN_INVALID, 0, line_width, pattern, false }

Definition at line 145 of file objectformatter.cxx.

#define AUTOFORMAT_PATTERN_COLOR (   color_token)    { color_token, XML_TOKEN_INVALID, 0 }

Definition at line 61 of file objectformatter.cxx.

#define AUTOFORMAT_PATTERN_COLORMOD (   color_token,
  mod_token,
  mod_value 
)    { color_token, mod_token, mod_value }

Definition at line 64 of file objectformatter.cxx.

#define AUTOFORMAT_PATTERN_END ( )    AUTOFORMAT_PATTERN_COLOR( XML_TOKEN_INVALID )

Definition at line 67 of file objectformatter.cxx.

#define AUTOTEXT_COLOR (   first,
  last,
  themed_font,
  color_token,
  def_font_size,
  rel_font_size,
  bold 
)    { first, last, themed_font, color_token, def_font_size, rel_font_size, bold }

Definition at line 406 of file objectformatter.cxx.

#define AUTOTEXT_END ( )    AUTOTEXT_COLOR( -1, -1, XML_none, XML_TOKEN_INVALID, 1000, 100, false )

Definition at line 409 of file objectformatter.cxx.

#define TYPEFORMAT_FRAME (   obj_type,
  prop_type,
  auto_texts,
  auto_lines,
  auto_fills 
)    { obj_type, prop_type, auto_lines, auto_fills, auto_texts, true }

Definition at line 523 of file objectformatter.cxx.

#define TYPEFORMAT_LINE (   obj_type,
  prop_type,
  auto_texts,
  auto_lines 
)    { obj_type, prop_type, auto_lines, nullptr, auto_texts, false }

Definition at line 526 of file objectformatter.cxx.

Variable Documentation

ColorPatternVec maColorPattern

RGB placeholder color for themed style.

Definition at line 598 of file objectformatter.cxx.

FillFormatter maFillFormatter

Converter for line formatting.

Definition at line 699 of file objectformatter.cxx.

LineFormatter maLineFormatter

Definition at line 698 of file objectformatter.cxx.

TextFormatter maTextFormatter

Converter for fill formatting.

Definition at line 700 of file objectformatter.cxx.

bool mbBold

Font size relative to chart global font (percent).

Definition at line 403 of file objectformatter.cxx.

bool mbFadedColor

Color cycling pattern for data series.

Definition at line 128 of file objectformatter.cxx.

bool mbIsFrame

Automatic text attributes for all chart styles.

Definition at line 512 of file objectformatter.cxx.

ObjectType meObjType

Definition at line 507 of file objectformatter.cxx.

sal_Int32 mnColorToken

Themed style index.

Themed font (minor/major).

Definition at line 56 of file objectformatter.cxx.

sal_Int32 mnDefFontSize

Theme color token.

Definition at line 401 of file objectformatter.cxx.

sal_Int32 mnFirstStyleIdx

Definition at line 120 of file objectformatter.cxx.

sal_Int32 mnLastStyleIdx

First chart style index.

Definition at line 121 of file objectformatter.cxx.

sal_Int32 mnModToken

Theme color token.

Definition at line 57 of file objectformatter.cxx.

sal_Int32 mnModValue

Color modification token.

Definition at line 58 of file objectformatter.cxx.

::Color mnPhClr

Shared formatter data.

Definition at line 597 of file objectformatter.cxx.

sal_Int32 mnRelFontSize

Default font size (1/100 points).

Definition at line 402 of file objectformatter.cxx.

sal_Int32 mnRelLineWidth

Color modification value.

Definition at line 126 of file objectformatter.cxx.

sal_Int32 mnThemedFont

Last chart style index.

Definition at line 399 of file objectformatter.cxx.

sal_Int32 mnThemedIdx

Last chart style index.

Definition at line 122 of file objectformatter.cxx.

const AutoFormatEntry* mpAutoFills

Automatic line formatting for all chart styles.

Definition at line 510 of file objectformatter.cxx.

const AutoFormatEntry* mpAutoLines

Property info for the ShapePropertyMap class.

Definition at line 509 of file objectformatter.cxx.

const AutoTextEntry* mpAutoTexts

Automatic fill formatting for all chart styles.

Definition at line 511 of file objectformatter.cxx.

const AutoFormatPatternEntry* mpPattern

Relative line width (percent).

Definition at line 127 of file objectformatter.cxx.

ObjectFormatterData& mrData

Definition at line 596 of file objectformatter.cxx.

const ObjectTypeFormatEntry& mrEntry

Helper for named drawing formatting.

Definition at line 702 of file objectformatter.cxx.

ModelObjectHelper& mrModelObjHelper

Converter for text formatting.

Definition at line 701 of file objectformatter.cxx.

const ShapePropertyInfo& mrPropInfo

Object type for automatic format.

Definition at line 508 of file objectformatter.cxx.

FillPropertiesPtr mxAutoFill

Definition at line 635 of file objectformatter.cxx.

LinePropertiesPtr mxAutoLine

Definition at line 616 of file objectformatter.cxx.

TextCharacterPropertiesPtr mxAutoText

Definition at line 656 of file objectformatter.cxx.