20#ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERTHEME_HXX
21#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERTHEME_HXX
25#include <com/sun/star/uno/XComponentContext.hpp>
26#include <com/sun/star/rendering/XCanvas.hpp>
27#include <com/sun/star/rendering/XCanvasFont.hpp>
60 css::uno::Reference<css::uno::XComponentContext> xContext,
61 css::uno::Reference<css::rendering::XCanvas> xCanvas);
65 void ProvideCanvas (
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas);
67 OUString
GetStyleName (
const OUString& rsResourceURL)
const;
69 const OUString& rsStyleName,
70 const bool bOuter)
const;
76 explicit FontDescriptor (
const std::shared_ptr<FontDescriptor>& rpDescriptor);
85 css::uno::Reference<css::rendering::XCanvasFont>
mxFont;
87 bool PrepareFont (
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas);
90 css::uno::Reference<css::rendering::XCanvasFont>
CreateFont (
91 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
92 const double nCellSize)
const;
94 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
95 const double nDesignSize)
const;
100 const OUString& rsStyleName,
101 const OUString& rsBitmapName)
const;
104 const OUString& rsBitmapName)
const;
109 const OUString& rsStyleName)
const;
112 const css::uno::Reference<css::container::XHierarchicalNameAccess>& rxNode,
116 const css::uno::Any& rColorSequence,
120 const OUString& rsStyleName)
const;
123 css::uno::Reference<css::uno::XComponentContext>
mxContext;
125 css::uno::Reference<css::rendering::XCanvas>
mxCanvas;
css::uno::Reference< css::rendering::XCanvasFont > CreateFont(const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const double nCellSize) const
double GetCellSizeForDesignSize(const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const double nDesignSize) const
css::uno::Reference< css::rendering::XCanvasFont > mxFont
FontDescriptor(const std::shared_ptr< FontDescriptor > &rpDescriptor)
bool PrepareFont(const css::uno::Reference< css::rendering::XCanvas > &rxCanvas)
A theme is a set of properties describing fonts, colors, and bitmaps to be used to draw background,...
void ProvideCanvas(const css::uno::Reference< css::rendering::XCanvas > &rxCanvas)
SharedBitmapDescriptor GetBitmap(const OUString &rsStyleName, const OUString &rsBitmapName) const
std::shared_ptr< FontDescriptor > SharedFontDescriptor
css::uno::Reference< css::rendering::XCanvas > mxCanvas
css::uno::Reference< css::uno::XComponentContext > mxContext
PresenterTheme(css::uno::Reference< css::uno::XComponentContext > xContext, css::uno::Reference< css::rendering::XCanvas > xCanvas)
static SharedFontDescriptor ReadFont(const css::uno::Reference< css::container::XHierarchicalNameAccess > &rxNode, const SharedFontDescriptor &rDefaultFount)
::std::vector< sal_Int32 > GetBorderSize(const OUString &rsStyleName, const bool bOuter) const
std::shared_ptr< Theme > mpTheme
std::shared_ptr< Theme > ReadTheme()
static bool ConvertToColor(const css::uno::Any &rColorSequence, sal_uInt32 &rColor)
SharedFontDescriptor GetFont(const OUString &rsStyleName) const
OUString GetStyleName(const OUString &rsResourceURL) const
std::shared_ptr< PresenterConfigurationAccess > GetNodeForViewStyle(const OUString &rsStyleName) const
std::shared_ptr< PresenterBitmapContainer > GetBitmapContainer() const
std::shared_ptr< PresenterBitmapContainer::BitmapDescriptor > SharedBitmapDescriptor