namespace FontworkHelpers
{ /** Removes the property specified by rName from the rPropVec vector of properties */ void resetPropertyValueInVec(std::vector<css::beans::PropertyValue>& rPropVec, const OUString& rName);
/** Changes the EnhancedCustomShapeGeometry of xShape shape so, that it becomes a LO Fontwork shapecorrespondingtotheOOXMLshapespecifiedbysMSPresetType.
Precondition: xShape is a custom shape.*/ void putCustomShapeIntoTextPathMode( const css::uno::Reference<css::drawing::XShape>& xShape, const oox::drawingml::CustomShapePropertiesPtr& pCustomShapePropertiesPtr, const OUString& sMSPresetType, constbool bFromWordArt);
/** Returns the markup for the v:shapetype element for export of a Fontwork shape to VML. IfeShapeTypeisnotaFontworkshapetypeorthespecialtypeisnotyetimplemented,
it returns an empty string.*/
OString GetVMLFontworkShapetypeMarkup(const MSO_SPT eShapeType);
/** Collects the properties "CharColor", "CharLumMod", "CharLumOff", "CharColorTheme", "CharComplexColor"and"CharTransparence"fromthefirstnon-emptyruninrXTextandputs
them into rCharPropVec.*/ void collectCharColorProps(const css::uno::Reference<css::text::XText>& rXText,
std::vector<css::beans::PropertyValue>& rCharPropVec);
/** Applies all properties in rTextPropVec excluding "CharInteropGrabBag" to all non-empty runs in
rXText.*/ void applyPropsToRuns(const std::vector<css::beans::PropertyValue>& rTextPropVec, const css::uno::Reference<css::text::XText>& rXText);
/** Generates the properties "CharColor", "CharLumMod", "CharLumOff", "CharColorTheme", "CharComplexColor"and"CharTransparence"fromtheshapeproperties"FillColor", "FillColorLumMod,"FillColorLumOff","FillColorTheme","FillComplexColor"and
"FillTransparence" and puts them into rCharPropVec.*/ void createCharFillPropsFromShape(const css::uno::Reference<css::beans::XPropertySet>& rXPropSet,
std::vector<css::beans::PropertyValue>& rCharPropVec);
/** Creates the properties "CharTextFillTextEffect", "CharTextOutlineTextEffect", "CharThemeColor", "CharThemeColorShade"or"CharThemeColorTint",and"CharThemeOriginalColor"fromtheFillFooand
LineBar properties of the shape and puts them into rUpdatePropVec.*/ void createCharInteropGrabBagUpdatesFromShapeProps( const css::uno::Reference<css::beans::XPropertySet>& rXPropSet,
std::vector<css::beans::PropertyValue>& rUpdatePropVec);
/** Puts all properties in rUpdatePropVec into the "CharInteropGrabBag" of all non-empty runs in rXText.
Existing properties are overwritten.*/ void applyUpdatesToCharInteropGrabBag(const std::vector<css::beans::PropertyValue>& rUpdatePropVec, const css::uno::Reference<css::text::XText>& rXText);
// ToDo: This is essentially the same as contained in method DrawingML::WriteOutline. Change it // there to use this method too, perhaps move this method to a common location. /** Uses LineDash and LineCap to detect, whether the dashing comes from a prstDash in MS Office. IfprstDashisdetected,themethodputsthecorrespondingstringformarkupintorsPrstDash andreturnstrue.
If no prstDash is detected, the method leaves rsPrstDash unchanged and returns false. */ bool createPrstDashFromLineDash(const css::drawing::LineDash& rLineDash, const css::drawing::LineCap& rLineCap, OUString& rsPrstDash);
/** Returns true if a theme color with other type than model::ThemeColorType::Unknown was found. ThethemecoloristheninrComplexColor. Returnsfalseotherwise.rComplexColoristhenunchangedoritstypeis
model::ThemeColorType::Unknown */ bool getThemeColorFromShape(const OUString& rPropertyName, const css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
model::ComplexColor& rComplexColor);
} /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.