Kaydet (Commit) e21ad69e authored tarafından Siqi LIU's avatar Siqi LIU

implementation for getTranslationOffset

Change-Id: Ibe1d7f6af4be8f1520c093cd0b23cb06f5346716
üst 7ba076d7
...@@ -218,6 +218,9 @@ SlideShowView::SlideShowView( ShowWindow& rOutputWindow, ...@@ -218,6 +218,9 @@ SlideShowView::SlideShowView( ShowWindow& rOutputWindow,
mbMousePressedEaten( false ) mbMousePressedEaten( false )
{ {
init(); init();
mTranslationOffset.Width = 0;
mTranslationOffset.Height = 0;
} }
/// Dispose all internal references /// Dispose all internal references
...@@ -329,6 +332,11 @@ void SAL_CALL SlideShowView::clear() throw (::com::sun::star::uno::RuntimeExcept ...@@ -329,6 +332,11 @@ void SAL_CALL SlideShowView::clear() throw (::com::sun::star::uno::RuntimeExcept
} }
} }
geometry::IntegerSize2D SAL_CALL SlideShowView::getTranslationOffset( ) throw (RuntimeException)
{
return mTranslationOffset;
}
geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (RuntimeException) geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (RuntimeException)
{ {
::osl::MutexGuard aGuard( m_aMutex ); ::osl::MutexGuard aGuard( m_aMutex );
...@@ -374,6 +382,10 @@ geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (Ru ...@@ -374,6 +382,10 @@ geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (Ru
aOutputSize.Width() --; aOutputSize.Width() --;
aOutputSize.Height() --; aOutputSize.Height() --;
// Record mTranslationOffset
mTranslationOffset.Height = aOutputOffset.Y();
mTranslationOffset.Width = aOutputOffset.X();
maPresentationArea = Rectangle( aOutputOffset, aOutputSize ); maPresentationArea = Rectangle( aOutputOffset, aOutputSize );
mrOutputWindow.SetPresentationArea( maPresentationArea ); mrOutputWindow.SetPresentationArea( maPresentationArea );
......
...@@ -211,6 +211,7 @@ public: ...@@ -211,6 +211,7 @@ public:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSpriteCanvas > SAL_CALL getCanvas( ) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSpriteCanvas > SAL_CALL getCanvas( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL clear( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL clear( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::geometry::AffineMatrix2D SAL_CALL getTransformation( ) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::geometry::AffineMatrix2D SAL_CALL getTransformation( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::geometry::IntegerSize2D SAL_CALL getTranslationOffset( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addTransformationChangedListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL addTransformationChangedListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeTransformationChangedListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL removeTransformationChangedListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addPaintListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPaintListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL addPaintListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPaintListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
...@@ -265,6 +266,7 @@ private: ...@@ -265,6 +266,7 @@ private:
bool mbFirstPaint; bool mbFirstPaint;
bool mbFullScreen; bool mbFullScreen;
bool mbMousePressedEaten; bool mbMousePressedEaten;
::com::sun::star::geometry::IntegerSize2D mTranslationOffset;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment