LibreOffice Module sd (master) 1
|
Manage a set of bitmap groups as they are used for buttons: three bitmaps, one for the normal state, one for a mouse over effect and one to show that the button has been pressed. More...
#include <PresenterBitmapContainer.hxx>
Classes | |
class | BitmapDescriptor |
There is one bitmap for the normal state, one for a mouse over effect and one to show that a button has been pressed. More... | |
Public Member Functions | |
PresenterBitmapContainer (const OUString &rsConfigurationBase, std::shared_ptr< PresenterBitmapContainer > xParentContainer, const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, css::uno::Reference< css::rendering::XCanvas > xCanvas, css::uno::Reference< css::drawing::XPresenterHelper > xPresenterHelper=nullptr) | |
Create a new bitmap container from a section of the configuration. More... | |
PresenterBitmapContainer (const css::uno::Reference< css::container::XNameAccess > &rsRootNode, std::shared_ptr< PresenterBitmapContainer > xParentContainer, const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, css::uno::Reference< css::rendering::XCanvas > xCanvas, css::uno::Reference< css::drawing::XPresenterHelper > xPresenterHelper=nullptr) | |
~PresenterBitmapContainer () | |
PresenterBitmapContainer (const PresenterBitmapContainer &)=delete | |
PresenterBitmapContainer & | operator= (const PresenterBitmapContainer &)=delete |
void | Initialize (const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext) |
std::shared_ptr< BitmapDescriptor > | GetBitmap (const OUString &rsName) const |
Return the bitmap set that is associated with the given name. More... | |
Static Public Member Functions | |
static std::shared_ptr< BitmapDescriptor > | LoadBitmap (const css::uno::Reference< css::container::XHierarchicalNameAccess > &rxNode, const OUString &rsPathToBitmapNode, const css::uno::Reference< css::drawing::XPresenterHelper > &rxPresenterHelper, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const std::shared_ptr< BitmapDescriptor > &rpDefaultBitmap) |
Private Types | |
typedef ::std::map< OUString, std::shared_ptr< BitmapDescriptor > > | BitmapContainer |
Private Member Functions | |
void | LoadBitmaps (const css::uno::Reference< css::container::XNameAccess > &rsRootNode) |
void | ProcessBitmap (const OUString &rsKey, const css::uno::Reference< css::beans::XPropertySet > &rProperties) |
Static Private Member Functions | |
static std::shared_ptr< BitmapDescriptor > | LoadBitmap (const css::uno::Reference< css::beans::XPropertySet > &rxProperties, const css::uno::Reference< css::drawing::XPresenterHelper > &rxPresenterHelper, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const std::shared_ptr< PresenterBitmapContainer::BitmapDescriptor > &rpDefault) |
static BitmapDescriptor::TexturingMode | StringToTexturingMode (std::u16string_view rsTexturingMode) |
Private Attributes | |
std::shared_ptr< PresenterBitmapContainer > | mpParentContainer |
BitmapContainer | maIconContainer |
css::uno::Reference< css::rendering::XCanvas > | mxCanvas |
css::uno::Reference< css::drawing::XPresenterHelper > | mxPresenterHelper |
Manage a set of bitmap groups as they are used for buttons: three bitmaps, one for the normal state, one for a mouse over effect and one to show that the button has been pressed.
A bitmap group is defined by some entries in the configuration.
Definition at line 41 of file PresenterBitmapContainer.hxx.
|
private |
Definition at line 120 of file PresenterBitmapContainer.hxx.
sdext::presenter::PresenterBitmapContainer::PresenterBitmapContainer | ( | const OUString & | rsConfigurationBase, |
std::shared_ptr< PresenterBitmapContainer > | xParentContainer, | ||
const css::uno::Reference< css::uno::XComponentContext > & | rxComponentContext, | ||
css::uno::Reference< css::rendering::XCanvas > | xCanvas, | ||
css::uno::Reference< css::drawing::XPresenterHelper > | xPresenterHelper = nullptr |
||
) |
Create a new bitmap container from a section of the configuration.
rxComponentContext | The component context is used to create new API objects. |
rxCanvas | Bitmaps are created specifically for this canvas. |
rsConfigurationBase | The name of a configuration node whose sub-tree defines the bitmap sets. |
Definition at line 35 of file PresenterBitmapContainer.cxx.
References sdext::presenter::PresenterConfigurationAccess::GetConfigurationNode(), Initialize(), LoadBitmaps(), and sdext::presenter::PresenterConfigurationAccess::READ_ONLY.
sdext::presenter::PresenterBitmapContainer::PresenterBitmapContainer | ( | const css::uno::Reference< css::container::XNameAccess > & | rsRootNode, |
std::shared_ptr< PresenterBitmapContainer > | xParentContainer, | ||
const css::uno::Reference< css::uno::XComponentContext > & | rxComponentContext, | ||
css::uno::Reference< css::rendering::XCanvas > | xCanvas, | ||
css::uno::Reference< css::drawing::XPresenterHelper > | xPresenterHelper = nullptr |
||
) |
Definition at line 59 of file PresenterBitmapContainer.cxx.
References Initialize(), and LoadBitmaps().
sdext::presenter::PresenterBitmapContainer::~PresenterBitmapContainer | ( | ) |
Definition at line 93 of file PresenterBitmapContainer.cxx.
References maIconContainer.
|
delete |
std::shared_ptr< PresenterBitmapContainer::BitmapDescriptor > sdext::presenter::PresenterBitmapContainer::GetBitmap | ( | const OUString & | rsName | ) | const |
Return the bitmap set that is associated with the given name.
Definition at line 98 of file PresenterBitmapContainer.cxx.
References maIconContainer, and mpParentContainer.
Referenced by sdext::presenter::PresenterSlideSorter::CurrentSlideFrameRenderer::CurrentSlideFrameRenderer(), and sdext::presenter::PresenterSlideSorter::PaintPreview().
void sdext::presenter::PresenterBitmapContainer::Initialize | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxComponentContext | ) |
Definition at line 74 of file PresenterBitmapContainer.cxx.
References mxPresenterHelper, and xFactory.
Referenced by PresenterBitmapContainer().
|
staticprivate |
|
static |
Definition at line 138 of file PresenterBitmapContainer.cxx.
References Exception, sdext::presenter::PresenterConfigurationAccess::GetConfigurationNode(), and LoadBitmap().
Referenced by LoadBitmap(), ProcessBitmap(), and sdext::presenter::PresenterTheme::Theme::Read().
|
private |
Definition at line 110 of file PresenterBitmapContainer.cxx.
References Exception, sdext::presenter::PresenterConfigurationAccess::ForAll(), mxCanvas, and ProcessBitmap().
Referenced by PresenterBitmapContainer().
|
delete |
|
private |
Definition at line 170 of file PresenterBitmapContainer.cxx.
References sdext::presenter::PresenterConfigurationAccess::GetProperty(), LoadBitmap(), maIconContainer, mxCanvas, mxPresenterHelper, and sName.
Referenced by LoadBitmaps().
|
staticprivate |
|
private |
Definition at line 121 of file PresenterBitmapContainer.hxx.
Referenced by GetBitmap(), ProcessBitmap(), and ~PresenterBitmapContainer().
|
private |
Definition at line 119 of file PresenterBitmapContainer.hxx.
Referenced by GetBitmap().
|
private |
Definition at line 122 of file PresenterBitmapContainer.hxx.
Referenced by LoadBitmaps(), and ProcessBitmap().
|
private |
Definition at line 123 of file PresenterBitmapContainer.hxx.
Referenced by Initialize(), and ProcessBitmap().