[Libreoffice-commits] extend the SlideShowView interface with getTranslationOffset

Stephan Bergmann sbergman at redhat.com
Fri Aug 23 01:35:07 PDT 2013


Is the below a deliberate change of XSlideShowView (which, after all, is 
unpublished thanks to 
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=78cca63070ae6cf82b45ec3bc75fafa2db31a7f2> 
"Revert publishing of lots of UNO types"), or is it an accidental 
incompatible change of our stable UNO API?

Stephan

On 08/23/2013 05:19 AM, Siqi LIU wrote:
> commit 7ba076d7fd46cce99f6fc7a5b26f74d8f207ec3d
> Author: Siqi LIU <me at siqi.fr>
> Date:   Fri Aug 23 10:05:28 2013 +0800
>
>      extend the SlideShowView interface with getTranslationOffset
>
>      Change-Id: I33f0eaa8a54902bb65a000b74ef25323423d01b4
>
> diff --git a/offapi/com/sun/star/presentation/XSlideShowView.idl b/offapi/com/sun/star/presentation/XSlideShowView.idl
> index 5804af2..81ecd86 100644
> --- a/offapi/com/sun/star/presentation/XSlideShowView.idl
> +++ b/offapi/com/sun/star/presentation/XSlideShowView.idl
> @@ -26,6 +26,7 @@
>   #include <com/sun/star/awt/XMouseListener.idl>
>   #include <com/sun/star/awt/XMouseMotionListener.idl>
>   #include <com/sun/star/awt/Rectangle.idl>
> +#include <com/sun/star/geometry/IntegerSize2D.idl>
>
>   module com {  module sun {  module star {  module presentation {
>
> @@ -73,6 +74,19 @@ interface XSlideShowView : ::com::sun::star::uno::XInterface
>        */
>       ::com::sun::star::geometry::AffineMatrix2D getTransformation();
>
> +    /** Query the current translation offset used to fill the physical screen while keeping aspect ratio.<p>
> +
> +        This method returns the traslation offset of the view of the
> +        view.<p>
> +
> +        @return the slideshowview will be transformed in order to fill
> +        the physical screen while keeping the aspect ratio.
> +        In order to do so, we need to add a black border on the side. This method
> +        return an IntegerSize2D which represent (x, y) translation.
> +        x represents the width of the border on the left, for example.
> +     */
> +    ::com::sun::star::geometry::IntegerSize2D getTranslationOffset();
> +
>       /** Add a listener to get notified when the transformation matrix changes.<p>
>
>           This method registers a listener with the view, which will get


More information about the LibreOffice mailing list