LibreOffice Module sdext (master)  1
Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
sdext::presenter::PresenterBitmapContainer Class Reference

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, const std::shared_ptr< PresenterBitmapContainer > &rpParentContainer, const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::uno::Reference< css::drawing::XPresenterHelper > &rxPresenterHelper=nullptr)
 Create a new bitmap container from a section of the configuration. More...
 
 PresenterBitmapContainer (const css::uno::Reference< css::container::XNameAccess > &rsRootNode, const std::shared_ptr< PresenterBitmapContainer > &rpParentContainer, const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::uno::Reference< css::drawing::XPresenterHelper > &rxPresenterHelper=nullptr)
 
 ~PresenterBitmapContainer ()
 
 PresenterBitmapContainer (const PresenterBitmapContainer &)=delete
 
PresenterBitmapContaineroperator= (const PresenterBitmapContainer &)=delete
 
void Initialize (const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext)
 
std::shared_ptr< BitmapDescriptorGetBitmap (const OUString &rsName) const
 Return the bitmap set that is associated with the given name. More...
 

Static Public Member Functions

static std::shared_ptr< BitmapDescriptorLoadBitmap (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< BitmapDescriptorLoadBitmap (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 (const OUString &rsTexturingMode)
 

Private Attributes

std::shared_ptr< PresenterBitmapContainermpParentContainer
 
BitmapContainer maIconContainer
 
css::uno::Reference< css::rendering::XCanvas > mxCanvas
 
css::uno::Reference< css::drawing::XPresenterHelper > mxPresenterHelper
 

Detailed Description

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.

Member Typedef Documentation

Definition at line 120 of file PresenterBitmapContainer.hxx.

Constructor & Destructor Documentation

sdext::presenter::PresenterBitmapContainer::PresenterBitmapContainer ( const OUString &  rsConfigurationBase,
const std::shared_ptr< PresenterBitmapContainer > &  rpParentContainer,
const css::uno::Reference< css::uno::XComponentContext > &  rxComponentContext,
const css::uno::Reference< css::rendering::XCanvas > &  rxCanvas,
const css::uno::Reference< css::drawing::XPresenterHelper > &  rxPresenterHelper = nullptr 
)

Create a new bitmap container from a section of the configuration.

Parameters
rxComponentContextThe component context is used to create new API objects.
rxCanvasBitmaps are created specifically for this canvas.
rsConfigurationBaseThe 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,
const std::shared_ptr< PresenterBitmapContainer > &  rpParentContainer,
const css::uno::Reference< css::uno::XComponentContext > &  rxComponentContext,
const css::uno::Reference< css::rendering::XCanvas > &  rxCanvas,
const css::uno::Reference< css::drawing::XPresenterHelper > &  rxPresenterHelper = nullptr 
)

Definition at line 60 of file PresenterBitmapContainer.cxx.

References Initialize(), and LoadBitmaps().

sdext::presenter::PresenterBitmapContainer::~PresenterBitmapContainer ( )

Definition at line 95 of file PresenterBitmapContainer.cxx.

References maIconContainer.

sdext::presenter::PresenterBitmapContainer::PresenterBitmapContainer ( const PresenterBitmapContainer )
delete

Member Function Documentation

std::shared_ptr< PresenterBitmapContainer::BitmapDescriptor > sdext::presenter::PresenterBitmapContainer::GetBitmap ( const OUString &  rsName) const
void sdext::presenter::PresenterBitmapContainer::Initialize ( const css::uno::Reference< css::uno::XComponentContext > &  rxComponentContext)

Definition at line 76 of file PresenterBitmapContainer.cxx.

References mxPresenterHelper, and xFactory.

Referenced by PresenterBitmapContainer().

std::shared_ptr< PresenterBitmapContainer::BitmapDescriptor > sdext::presenter::PresenterBitmapContainer::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 
)
static
static std::shared_ptr<BitmapDescriptor> sdext::presenter::PresenterBitmapContainer::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 
)
staticprivate
void sdext::presenter::PresenterBitmapContainer::LoadBitmaps ( const css::uno::Reference< css::container::XNameAccess > &  rsRootNode)
private
PresenterBitmapContainer& sdext::presenter::PresenterBitmapContainer::operator= ( const PresenterBitmapContainer )
delete
void sdext::presenter::PresenterBitmapContainer::ProcessBitmap ( const OUString &  rsKey,
const css::uno::Reference< css::beans::XPropertySet > &  rProperties 
)
private
PresenterBitmapContainer::BitmapDescriptor::TexturingMode sdext::presenter::PresenterBitmapContainer::StringToTexturingMode ( const OUString &  rsTexturingMode)
staticprivate

Member Data Documentation

BitmapContainer sdext::presenter::PresenterBitmapContainer::maIconContainer
private
std::shared_ptr<PresenterBitmapContainer> sdext::presenter::PresenterBitmapContainer::mpParentContainer
private

Definition at line 119 of file PresenterBitmapContainer.hxx.

Referenced by GetBitmap().

css::uno::Reference<css::rendering::XCanvas> sdext::presenter::PresenterBitmapContainer::mxCanvas
private

Definition at line 122 of file PresenterBitmapContainer.hxx.

Referenced by LoadBitmaps(), and ProcessBitmap().

css::uno::Reference<css::drawing::XPresenterHelper> sdext::presenter::PresenterBitmapContainer::mxPresenterHelper
private

Definition at line 123 of file PresenterBitmapContainer.hxx.

Referenced by Initialize(), and ProcessBitmap().


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