LibreOffice Module oox (master) 1
Public Member Functions | Private Attributes | List of all members
oox::drawingml::clrSchemeColorContext Class Referencefinal

#include <clrschemecontext.hxx>

Inheritance diagram for oox::drawingml::clrSchemeColorContext:
[legend]
Collaboration diagram for oox::drawingml::clrSchemeColorContext:
[legend]

Public Member Functions

 clrSchemeColorContext (::oox::core::ContextHandler2Helper const &rParent, ClrScheme &rClrScheme, model::ColorSet &mrColorSet, sal_Int32 nColorToken)
 
virtual ~clrSchemeColorContext () override
 
- Public Member Functions inherited from oox::drawingml::ColorContext
 ColorContext (::oox::core::ContextHandler2Helper const &rParent, Color &rColor, model::ComplexColor *pComplexColor=nullptr)
 
virtual ::oox::core::ContextHandlerRef onCreateContext (sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
 
- Public Member Functions inherited from oox::core::ContextHandler2
 ContextHandler2 (ContextHandler2Helper const &rParent)
 
virtual ~ContextHandler2 () override
 
 ContextHandler2 (ContextHandler2 const &)=default
 
 ContextHandler2 (ContextHandler2 &&)=default
 
ContextHandler2operator= (ContextHandler2 const &)=delete
 
ContextHandler2operator= (ContextHandler2 &&)=delete
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs) final override
 
virtual void SAL_CALL startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs) final override
 
virtual void SAL_CALL characters (const OUString &rChars) final override
 
virtual void SAL_CALL endFastElement (sal_Int32 nElement) final override
 
virtual ContextHandlerRef createRecordContext (sal_Int32 nRecId, SequenceInputStream &rStrm) override
 
virtual void startRecord (sal_Int32 nRecId, SequenceInputStream &rStrm) override
 
virtual void endRecord (sal_Int32 nRecId) override
 
virtual ContextHandlerRef onCreateContext (sal_Int32 nElement, const AttributeList &rAttribs) override
 
virtual void onStartElement (const AttributeList &rAttribs) override
 
virtual void onCharacters (const OUString &rChars) override
 
virtual void onEndElement () override
 
virtual ContextHandlerRef onCreateRecordContext (sal_Int32 nRecId, SequenceInputStream &rStrm) override
 
virtual void onStartRecord (SequenceInputStream &rStrm) override
 
virtual void onEndRecord () override
 
- Public Member Functions inherited from oox::core::ContextHandler
 ContextHandler (const ContextHandler &rParent)
 
virtual ~ContextHandler () override
 
XmlFilterBasegetFilter () const
 Returns the filter instance. More...
 
const RelationsgetRelations () const
 Returns the relations of the current fragment. More...
 
const OUString & getFragmentPath () const
 Returns the full path of the current fragment. More...
 
OUString getFragmentPathFromRelation (const Relation &rRelation) const
 Returns the full fragment path for the target of the passed relation. More...
 
OUString getFragmentPathFromRelId (const OUString &rRelId) const
 Returns the full fragment path for the passed relation identifier. More...
 
OUString getFragmentPathFromFirstType (std::u16string_view rType) const
 Returns the full fragment path for the first relation of the passed type. More...
 
OUString getFragmentPathFromFirstTypeFromOfficeDoc (std::u16string_view rType) const
 
virtual void SAL_CALL startFastElement (::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endFastElement (::sal_Int32 Element) override
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 
virtual ContextHandlerRef createRecordContext (sal_Int32 nRecId, SequenceInputStream &rStrm)
 
virtual void startRecord (sal_Int32 nRecId, SequenceInputStream &rStrm)
 
virtual void endRecord (sal_Int32 nRecId)
 

Private Attributes

ClrSchememrClrScheme
 
model::ColorSetmrColorSet
 
sal_Int32 mnColorToken
 

Additional Inherited Members

- Protected Member Functions inherited from oox::core::ContextHandler
 ContextHandler (FragmentBaseDataRef rxBaseData)
 Helper constructor for the FragmentHandler. More...
 
void implSetLocator (const css::uno::Reference< css::xml::sax::XLocator > &rxLocator)
 
- Protected Attributes inherited from oox::drawingml::ColorContext
model::ComplexColormpComplexColor
 
- Private Member Functions inherited from oox::drawingml::Color
 Color ()
 
void setUnused ()
 Sets the color to unused state. More...
 
void setSrgbClr (sal_Int32 nRgb)
 Sets an RGB value (hexadecimal RRGGBB) from the a:srgbClr element. More...
 
void setSrgbClr (::Color nRgb)
 
void setScrgbClr (sal_Int32 nR, sal_Int32 nG, sal_Int32 nB)
 Sets the percentual RGB values from the a:scrgbClr element. More...
 
void setHslClr (sal_Int32 nHue, sal_Int32 nSat, sal_Int32 nLum)
 Sets the HSL values from the a:hslClr element. More...
 
void setPrstClr (sal_Int32 nToken)
 Sets a predefined color from the a:prstClr element. More...
 
void setHighlight (sal_Int32 nToken)
 Sets a predefined color from the w:highlight element. More...
 
void setSchemeClr (sal_Int32 nToken)
 Sets a scheme color from the a:schemeClr element. More...
 
void setSchemeName (const OUString &sSchemeName)
 Sets the scheme name from the a:schemeClr element for interoperability purposes. More...
 
void setSysClr (sal_Int32 nToken, sal_Int32 nLastRgb)
 Sets a system color from the a:sysClr element. More...
 
void setPaletteClr (sal_Int32 nPaletteIdx)
 Sets a palette color index. More...
 
void addTransformation (sal_Int32 nElement, sal_Int32 nValue=-1)
 Inserts the passed color transformation. More...
 
void addChartTintTransformation (double fTint)
 Inserts Chart specific color tint (-1.0...0.0 = shade, 0.0...1.0 = tint). More...
 
void addExcelTintTransformation (double fTint)
 Inserts Excel specific color tint (-1.0...0.0 = shade, 0.0...1.0 = tint). More...
 
void clearTransformations ()
 Removes all color transformations. More...
 
void clearTransparence ()
 Removes transparence from the color. More...
 
void assignIfUsed (const Color &rColor)
 Overwrites this color with the passed color, if it is used. More...
 
bool isUsed () const
 Returns true, if the color is initialized. More...
 
bool isPlaceHolder () const
 Returns true, if the color is a placeholder color in theme style lists. More...
 
::Color getColor (const GraphicHelper &rGraphicHelper, ::Color nPhClr=API_RGB_TRANSPARENT) const
 Returns the final RGB color value. More...
 
bool hasTransparency () const
 Returns true, if the color is transparent. More...
 
sal_Int16 getTransparency () const
 Returns the transparency of the color (0 = opaque, 100 = full transparent). More...
 
const OUString & getSchemeColorName () const
 Returns the scheme name from the a:schemeClr element for interoperability purposes. More...
 
sal_Int16 getSchemeColorIndex () const
 
sal_Int16 getTintOrShade () const
 
sal_Int16 getLumMod () const
 
sal_Int16 getLumOff () const
 
model::ThemeColorType getThemeColorType () const
 
model::ComplexColor createComplexColor (const GraphicHelper &rGraphicHelper, sal_Int16 nPhClrTheme) const
 
const css::uno::Sequence< css::beans::PropertyValue > & getTransformations () const
 Returns the unaltered list of transformations for interoperability purposes. More...
 
bool equals (const Color &rOther, const GraphicHelper &rGraphicHelper, ::Color nPhClr) const
 Compares this color with rOther. More...
 
model::ComplexColor getComplexColor () const
 
- Static Private Member Functions inherited from oox::drawingml::Color
::Color getDmlPresetColor (sal_Int32 nToken, ::Color nDefaultRgb)
 Returns the RGB value for the passed DrawingML color token, or nDefaultRgb on error. More...
 
::Color getVmlPresetColor (sal_Int32 nToken, ::Color nDefaultRgb)
 Returns the RGB value for the passed VML color token, or nDefaultRgb on error. More...
 
::Color getHighlightColor (sal_Int32 nToken, ::Color nDefaultRgb)
 Returns the RGB value for the passed VML color token, or nDefaultRgb on error. More...
 
static OUString getColorTransformationName (sal_Int32 nElement)
 Translates between color transformation tokens and their names. More...
 
static sal_Int32 getColorTransformationToken (std::u16string_view sName)
 Translates between color transformation token names and the corresponding token. More...
 

Detailed Description

Definition at line 37 of file clrschemecontext.hxx.

Constructor & Destructor Documentation

◆ clrSchemeColorContext()

oox::drawingml::clrSchemeColorContext::clrSchemeColorContext ( ::oox::core::ContextHandler2Helper const &  rParent,
ClrScheme rClrScheme,
model::ColorSet mrColorSet,
sal_Int32  nColorToken 
)

Definition at line 60 of file clrschemecontext.cxx.

◆ ~clrSchemeColorContext()

oox::drawingml::clrSchemeColorContext::~clrSchemeColorContext ( )
overridevirtual

Member Data Documentation

◆ mnColorToken

sal_Int32 oox::drawingml::clrSchemeColorContext::mnColorToken
private

Definition at line 46 of file clrschemecontext.hxx.

Referenced by ~clrSchemeColorContext().

◆ mrClrScheme

ClrScheme& oox::drawingml::clrSchemeColorContext::mrClrScheme
private

Definition at line 44 of file clrschemecontext.hxx.

Referenced by ~clrSchemeColorContext().

◆ mrColorSet

model::ColorSet& oox::drawingml::clrSchemeColorContext::mrColorSet
private

Definition at line 45 of file clrschemecontext.hxx.

Referenced by ~clrSchemeColorContext().


The documentation for this class was generated from the following files: