LibreOffice
LibreOffice 24.2 SDK API Reference
Public Member Functions | List of all members
XVisualObject Interface Referencepublished

represents common visualization functionality for embedded objects. More...

import"XVisualObject.idl";

Inheritance diagram for XVisualObject:
XInterface XEmbeddedObject XReportDefinition ReportDefinition

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...
 

Detailed Description

represents common visualization functionality for embedded objects.

Member Function Documentation

◆ getMapUnit()

long getMapUnit ( [in] hyper  nAspect)
raises (::com::sun::star::uno::Exception
)

retrieves map mode the object communicates in.

Parameters
nAspectthe aspect the map mode is requested for. Can take values from Aspects constant set.
Returns
the map mode the object communicates in, it can take values from EmbedMapUnits constant
Exceptions
com::sun::star::embed::WrongStateExceptionthe object is in wrong state
com::sun::star::uno::Exceptionin case of problems

◆ getPreferredVisualRepresentation()

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.

Parameters
nAspectthe aspect the representation is requested for. Can take values from Aspects constant set.
Returns
the visual representation of the object in the default format and the format
Exceptions
com::sun::star::lang::IllegalArgumentExceptionone of arguments is illegal
com::sun::star::embed::WrongStateExceptionthe object is in wrong state
com::sun::star::uno::Exceptionin case of problems

◆ getVisualAreaSize()

gets the size of object's visual area.

The size must be provided in logical units according to map mode the object communicates in.

Parameters
nAspectthe aspect specifying the form of object representation. Can take values from Aspects constant set.
Returns
the size of visual area
Exceptions
com::sun::star::lang::IllegalArgumentExceptionone of arguments is illegal
com::sun::star::embed::WrongStateExceptionthe object is in wrong state

◆ setVisualAreaSize()

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.

Parameters
nAspectthe aspect specifying the form of object representation. Can take values from Aspects constant set.
aSizethe new size of the visual area
Exceptions
com::sun::star::lang::IllegalArgumentExceptionone of arguments is illegal
com::sun::star::embed::WrongStateExceptionthe object is in wrong state
com::sun::star::uno::Exceptionthe object failed to resize

The documentation for this interface was generated from the following file: