This class is responsible for painting window borders of PresenterPane objects.
More...
#include <PresenterPaneBorderPainter.hxx>
|
| PresenterPaneBorderPainter (const css::uno::Reference< css::uno::XComponentContext > &rxContext) |
|
virtual | ~PresenterPaneBorderPainter () override |
|
| PresenterPaneBorderPainter (const PresenterPaneBorderPainter &)=delete |
|
PresenterPaneBorderPainter & | operator= (const PresenterPaneBorderPainter &)=delete |
|
css::awt::Rectangle | AddBorder (const OUString &rsPaneURL, const css::awt::Rectangle &rInnerBox, const css::drawing::framework::BorderType eBorderType) const |
| Transform the bounding box of the window content to the outer bounding box of the border that is painted around it. More...
|
|
css::awt::Rectangle | RemoveBorder (const OUString &rsPaneURL, const css::awt::Rectangle &rOuterBox, const css::drawing::framework::BorderType eBorderType) const |
| Transform the outer bounding box of a window to the bounding box of the inner content area. More...
|
|
void | SetTheme (const std::shared_ptr< PresenterTheme > &rpTheme) |
|
virtual css::awt::Rectangle SAL_CALL | addBorder (const OUString &rsPaneBorderStyleName, const css::awt::Rectangle &rRectangle, css::drawing::framework::BorderType eBorderType) override |
|
virtual css::awt::Rectangle SAL_CALL | removeBorder (const OUString &rsPaneBorderStyleName, const css::awt::Rectangle &rRectangle, css::drawing::framework::BorderType eBorderType) override |
|
virtual void SAL_CALL | paintBorder (const OUString &rsPaneBorderStyleName, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rOuterBorderRectangle, const css::awt::Rectangle &rRepaintArea, const OUString &rsTitle) override |
|
virtual void SAL_CALL | paintBorderWithCallout (const OUString &rsPaneBorderStyleName, const css::uno::Reference< css::rendering::XCanvas > &rxCanvas, const css::awt::Rectangle &rOuterBorderRectangle, const css::awt::Rectangle &rRepaintArea, const OUString &rsTitle, const css::awt::Point &rCalloutAnchor) override |
|
virtual css::awt::Point SAL_CALL | getCalloutOffset (const OUString &rsPaneBorderStyleName) override |
|
|
bool | ProvideTheme (const css::uno::Reference< css::rendering::XCanvas > &rxCanvas) |
| When the theme for the border has not yet been loaded then try again when this method is called. More...
|
|
void | ProvideTheme () |
|
void | ThrowIfDisposed () const |
|
This class is responsible for painting window borders of PresenterPane objects.
Definition at line 43 of file PresenterPaneBorderPainter.hxx.
◆ PresenterPaneBorderPainter() [1/2]
sdext::presenter::PresenterPaneBorderPainter::PresenterPaneBorderPainter |
( |
const css::uno::Reference< css::uno::XComponentContext > & |
rxContext | ) |
|
|
explicit |
◆ ~PresenterPaneBorderPainter()
sdext::presenter::PresenterPaneBorderPainter::~PresenterPaneBorderPainter |
( |
| ) |
|
|
overridevirtual |
◆ PresenterPaneBorderPainter() [2/2]
◆ addBorder()
awt::Rectangle SAL_CALL sdext::presenter::PresenterPaneBorderPainter::addBorder |
( |
const OUString & |
rsPaneBorderStyleName, |
|
|
const css::awt::Rectangle & |
rRectangle, |
|
|
css::drawing::framework::BorderType |
eBorderType |
|
) |
| |
|
overridevirtual |
◆ AddBorder()
awt::Rectangle sdext::presenter::PresenterPaneBorderPainter::AddBorder |
( |
const OUString & |
rsPaneURL, |
|
|
const css::awt::Rectangle & |
rInnerBox, |
|
|
const css::drawing::framework::BorderType |
eBorderType |
|
) |
| const |
Transform the bounding box of the window content to the outer bounding box of the border that is painted around it.
- Parameters
-
rsPaneURL | Specifies the pane style that is used to determine the border sizes. |
rInnerBox | The rectangle of the inner window content. |
Definition at line 326 of file PresenterPaneBorderPainter.cxx.
References mpRenderer.
Referenced by addBorder().
◆ getCalloutOffset()
awt::Point SAL_CALL sdext::presenter::PresenterPaneBorderPainter::getCalloutOffset |
( |
const OUString & |
rsPaneBorderStyleName | ) |
|
|
overridevirtual |
◆ operator=()
◆ paintBorder()
void SAL_CALL sdext::presenter::PresenterPaneBorderPainter::paintBorder |
( |
const OUString & |
rsPaneBorderStyleName, |
|
|
const css::uno::Reference< css::rendering::XCanvas > & |
rxCanvas, |
|
|
const css::awt::Rectangle & |
rOuterBorderRectangle, |
|
|
const css::awt::Rectangle & |
rRepaintArea, |
|
|
const OUString & |
rsTitle |
|
) |
| |
|
overridevirtual |
◆ paintBorderWithCallout()
void SAL_CALL sdext::presenter::PresenterPaneBorderPainter::paintBorderWithCallout |
( |
const OUString & |
rsPaneBorderStyleName, |
|
|
const css::uno::Reference< css::rendering::XCanvas > & |
rxCanvas, |
|
|
const css::awt::Rectangle & |
rOuterBorderRectangle, |
|
|
const css::awt::Rectangle & |
rRepaintArea, |
|
|
const OUString & |
rsTitle, |
|
|
const css::awt::Point & |
rCalloutAnchor |
|
) |
| |
|
overridevirtual |
◆ ProvideTheme() [1/2]
void sdext::presenter::PresenterPaneBorderPainter::ProvideTheme |
( |
| ) |
|
|
private |
◆ ProvideTheme() [2/2]
bool sdext::presenter::PresenterPaneBorderPainter::ProvideTheme |
( |
const css::uno::Reference< css::rendering::XCanvas > & |
rxCanvas | ) |
|
|
private |
When the theme for the border has not yet been loaded then try again when this method is called.
- Returns
- Returns <TRUE> only one time when the theme is loaded and/or the renderer is initialized.
◆ removeBorder()
awt::Rectangle SAL_CALL sdext::presenter::PresenterPaneBorderPainter::removeBorder |
( |
const OUString & |
rsPaneBorderStyleName, |
|
|
const css::awt::Rectangle & |
rRectangle, |
|
|
css::drawing::framework::BorderType |
eBorderType |
|
) |
| |
|
overridevirtual |
◆ RemoveBorder()
awt::Rectangle sdext::presenter::PresenterPaneBorderPainter::RemoveBorder |
( |
const OUString & |
rsPaneURL, |
|
|
const css::awt::Rectangle & |
rOuterBox, |
|
|
const css::drawing::framework::BorderType |
eBorderType |
|
) |
| const |
Transform the outer bounding box of a window to the bounding box of the inner content area.
- Parameters
-
rsPaneURL | Specifies the pane style that is used to determine the border sizes. |
rOuterBox | The bounding box of the rectangle around the window. |
bIsTitleVisible | This flag controls whether the upper part of the frame is supposed to contain the window title. |
Definition at line 340 of file PresenterPaneBorderPainter.cxx.
References mpRenderer.
Referenced by removeBorder().
◆ SetTheme()
void sdext::presenter::PresenterPaneBorderPainter::SetTheme |
( |
const std::shared_ptr< PresenterTheme > & |
rpTheme | ) |
|
◆ ThrowIfDisposed()
void sdext::presenter::PresenterPaneBorderPainter::ThrowIfDisposed |
( |
| ) |
const |
|
private |
◆ mpRenderer
std::unique_ptr<Renderer> sdext::presenter::PresenterPaneBorderPainter::mpRenderer |
|
private |
◆ mpTheme
std::shared_ptr<PresenterTheme> sdext::presenter::PresenterPaneBorderPainter::mpTheme |
|
private |
◆ mxContext
css::uno::Reference<css::uno::XComponentContext> sdext::presenter::PresenterPaneBorderPainter::mxContext |
|
private |
The documentation for this class was generated from the following files: