LibreOffice Module oox (master) 1
Namespaces | Functions
fontworkhelpers.hxx File Reference
#include <docmodel/color/ComplexColor.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <svx/msdffdef.hxx>
#include "customshapeproperties.hxx"
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/drawing/LineCap.hpp>
#include <com/sun/star/drawing/LineDash.hpp>
#include <com/sun/star/drawing/XShape.hpp>
#include <com/sun/star/text/XText.hpp>
Include dependency graph for fontworkhelpers.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  FontworkHelpers
 

Functions

void FontworkHelpers::resetPropertyValueInVec (std::vector< css::beans::PropertyValue > &rPropVec, const OUString &rName)
 Removes the property specified by rName from the rPropVec vector of properties. More...
 
void FontworkHelpers::putCustomShapeIntoTextPathMode (const css::uno::Reference< css::drawing::XShape > &xShape, const oox::drawingml::CustomShapePropertiesPtr &pCustomShapePropertiesPtr, const OUString &sMSPresetType, const bool bFromWordArt)
 Changes the EnhancedCustomShapeGeometry of xShape shape so, that it becomes a LO Fontwork shape corresponding to the OOXML shape specified by sMSPresetType. More...
 
OString FontworkHelpers::GetVMLFontworkShapetypeMarkup (const MSO_SPT eShapeType)
 Returns the markup for the v:shapetype element for export of a Fontwork shape to VML. More...
 
void FontworkHelpers::collectCharColorProps (const css::uno::Reference< css::text::XText > &rXText, std::vector< css::beans::PropertyValue > &rCharPropVec)
 Collects the properties "CharColor", "CharLumMod", "CharLumOff", "CharColorTheme", "CharComplexColor" and "CharTransparence" from the first non-empty run in rXText and puts them into rCharPropVec. More...
 
void FontworkHelpers::applyPropsToRuns (const std::vector< css::beans::PropertyValue > &rTextPropVec, css::uno::Reference< css::text::XText > &rXText)
 Applies all properties in rTextPropVec excluding "CharInteropGrabBag" to all non-empty runs in rXText. More...
 
void FontworkHelpers::createCharFillPropsFromShape (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, std::vector< css::beans::PropertyValue > &rCharPropVec)
 Generates the properties "CharColor", "CharLumMod", "CharLumOff", "CharColorTheme", "CharComplexColor" and "CharTransparence" from the shape properties "FillColor", "FillColorLumMod, "FillColorLumOff", "FillColorTheme", "FillComplexColor" and "FillTransparence" and puts them into rCharPropVec. More...
 
void FontworkHelpers::createCharInteropGrabBagUpdatesFromShapeProps (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, std::vector< css::beans::PropertyValue > &rUpdatePropVec)
 Creates the properties "CharTextFillTextEffect", "CharTextOutlineTextEffect", "CharThemeColor", "CharThemeColorShade" or "CharThemeColorTint", and "CharThemeOriginalColor" from the FillFoo and LineBar properties of the shape and puts them into rUpdatePropVec. More...
 
void FontworkHelpers::applyUpdatesToCharInteropGrabBag (const std::vector< css::beans::PropertyValue > &rUpdatePropVec, css::uno::Reference< css::text::XText > &rXText)
 Puts all properties in rUpdatePropVec into the "CharInteropGrabBag" of all non-empty runs in rXText. More...
 
bool FontworkHelpers::createPrstDashFromLineDash (const css::drawing::LineDash &rLineDash, const css::drawing::LineCap &rLineCap, OUString &rsPrstDash)
 Uses LineDash and LineCap to detect, whether the dashing comes from a prstDash in MS Office. More...
 
bool FontworkHelpers::getThemeColorFromShape (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertySet > &xPropertySet, model::ComplexColor &rComplexColor)
 Returns true if a theme color with other type than model::ThemeColorType::Unknown was found. More...