LibreOffice
LibreOffice 24.2 SDK API Reference
|
represents common visualization functionality for embedded objects. More...
import"XVisualObject.idl";
Public Member Functions | |
void | setVisualAreaSize ([in] hyper nAspect, [in] ::com::sun::star::awt::Size aSize) raises ( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception ) |
sets the size of object's visual area. More... | |
::com::sun::star::awt::Size | getVisualAreaSize ([in] hyper nAspect) raises ( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception ) |
gets the size of object's visual area. More... | |
VisualRepresentation | getPreferredVisualRepresentation ([in] hyper nAspect) raises ( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception ) |
retrieves visual representation of the object in preferable format. More... | |
long | getMapUnit ([in] hyper nAspect) raises ( ::com::sun::star::uno::Exception ) |
retrieves map mode the object communicates in. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
represents common visualization functionality for embedded objects.
long getMapUnit | ( | [in] hyper | nAspect | ) | |
raises | ( | ::com::sun::star::uno::Exception | |||
) |
retrieves map mode the object communicates in.
nAspect | the aspect the map mode is requested for. Can take values from Aspects constant set. |
com::sun::star::embed::WrongStateException | the object is in wrong state |
com::sun::star::uno::Exception | in case of problems |
VisualRepresentation getPreferredVisualRepresentation | ( | [in] hyper | nAspect | ) | |
raises | ( | ::com::sun::star::lang::IllegalArgumentException, | |||
::com::sun::star::embed::WrongStateException, | |||||
::com::sun::star::uno::Exception | |||||
) |
retrieves visual representation of the object in preferable format.
If the object persistence entry contains cached visual representation then it can be retrieved by using this method even in loaded state.
nAspect | the aspect the representation is requested for. Can take values from Aspects constant set. |
com::sun::star::lang::IllegalArgumentException | one of arguments is illegal |
com::sun::star::embed::WrongStateException | the object is in wrong state |
com::sun::star::uno::Exception | in case of problems |
::com::sun::star::awt::Size getVisualAreaSize | ( | [in] hyper | nAspect | ) | |
raises | ( | ::com::sun::star::lang::IllegalArgumentException, | |||
::com::sun::star::embed::WrongStateException, | |||||
::com::sun::star::uno::Exception | |||||
) |
gets the size of object's visual area.
The size must be provided in logical units according to map mode the object communicates in.
nAspect | the aspect specifying the form of object representation. Can take values from Aspects constant set. |
com::sun::star::lang::IllegalArgumentException | one of arguments is illegal |
com::sun::star::embed::WrongStateException | the object is in wrong state |
void setVisualAreaSize | ( | [in] hyper | nAspect, |
[in] ::com::sun::star::awt::Size | aSize | ||
) | |||
raises | ( | ::com::sun::star::lang::IllegalArgumentException, | |
::com::sun::star::embed::WrongStateException, | |||
::com::sun::star::uno::Exception | |||
) |
sets the size of object's visual area.
The size must be provided in logical units according to map mode the object communicates in.
If an object is inplace- or ui-active the method must not initiate repainting itself.
nAspect | the aspect specifying the form of object representation. Can take values from Aspects constant set. |
aSize | the new size of the visual area |
com::sun::star::lang::IllegalArgumentException | one of arguments is illegal |
com::sun::star::embed::WrongStateException | the object is in wrong state |
com::sun::star::uno::Exception | the object failed to resize |