Methods' Details |
addBorder
- Description
- Enlarge the given rectangle by the size of the specified part of the
border. This method can be used to convert an inner bounding box
into the center box or the outer bounding box.
- Parameter sPaneBorderStyleName
- The pane style defines the sizes of the border.
- Parameter aRectangle
- This rectangle will be converted into a larger one. This should
be the center box or the inner bounding box of the border.
- Parameter eBorderType
- The part of the border to add to the given rectangle.
Use INNER_BORDER to convert an inner bounding box into the
center box or TOTAL_BORDER to convert it into the outer bounding
box. OUTER_BORDER can be used to convert the center box into
the outer bounding box.
|
|
removeBorder
- Description
- Shring the given rectangle by the size of the specified part of the
border. This method can be used to convert an outer bounding box
into the center box or the inner bounding box.
- Parameter sPaneBorderStyleName
- The pane style defines the sizes of the border.
- Parameter aRectangle
- This rectangle will be converted into a smaller one that lies
inside it. It should be the center box or the outer bounding
box of the border.
- Parameter eBorderType
- The part of the border to remove from the given rectangle.
Use OUTER_BORDER to convert an outer bounding box into the
center box or TOTAL_BORDER to convert it into the inner bounding
box. INNER_BORDER can be used to convert the center box into
the inner bounding box.
|
|
paintBorder
void |
paintBorder( |
[in] string |
sPaneBorderStyleName, |
| [in] ::com::sun::star::rendering::XCanvas |
xCanvas, |
| [in] ::com::sun::star::awt::Rectangle |
aOuterBorderRectangle, |
| [in] ::com::sun::star::awt::Rectangle |
aRepaintArea, |
| [in] string |
sTitle ); |
- Description
- Paint the border around a pane.
- Parameter sPaneBorderStyleName
- The pane style to use for painting the border.
- Parameter xCanvas
- The canvas onto which the border is painted.
- Parameter aOuterBorderRectangle
- The outer bounding box of the border. Use addBorder to convert
the bounding box of a pane (the inner bounding box of the
border) into this outer bounding box of the border.
- Parameter aRepaintArea
- The area in which the border has to be repainted. The clip
rectangle.
- Parameter sTitle
- The pane title. Supply an empty string for panes without
title. It is the responsibility of the caller to supply a title
only for pane border styles that support a title.
|
|
paintBorderWithCallout
void |
paintBorderWithCallout( |
[in] string |
sPaneBorderStyleName, |
| [in] ::com::sun::star::rendering::XCanvas |
xCanvas, |
| [in] ::com::sun::star::awt::Rectangle |
aOuterBorderRectangle, |
| [in] ::com::sun::star::awt::Rectangle |
aRepaintArea, |
| [in] string |
sTitle, |
| [in] ::com::sun::star::awt::Point |
aCalloutAnchor ); |
- Description
- Paint the border around a pane where the border includes a callout
that is anchored at the given point. Most arguments have the same
meaning as in the paintBorder.
- Parameter aCalloutAnchor
- The anchor point of the callout. It is usually located outside
the border.
|
|
getCalloutOffset
::com::sun::star::awt::Point |
getCalloutOffset( |
[in] string |
sPaneBorderStyleName ); |
- Description
- Return the offset of a callout anchor with respect to the outer
border. This value is used when the callout is realized by a fixed
bitmap in order to determine the size and/or location of the outer
border for a given callout.
|
|
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.