summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-08-29 07:42:32 +0000
committerThomas Lange <tl@openoffice.org>2002-08-29 07:42:32 +0000
commit8781904a048e3e2943ceb146ec787eb521d913c3 (patch)
tree6426295afae0eb66906f425a4a9b99932f5f5f2a /starmath/inc
parent282854d5d89284e140eadff0e8fba90e2d472cad (diff)
#101567# PDF export (first implementation)
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/types.hxx8
-rw-r--r--starmath/inc/unomodel.hxx15
-rw-r--r--starmath/inc/view.hxx11
3 files changed, 25 insertions, 9 deletions
diff --git a/starmath/inc/types.hxx b/starmath/inc/types.hxx
index 03b6c59e2b81..f216aa863580 100644
--- a/starmath/inc/types.hxx
+++ b/starmath/inc/types.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: types.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: tl $ $Date: 2002-07-31 05:32:19 $
+ * last change: $Author: tl $ $Date: 2002-08-29 08:42:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,6 +66,10 @@
#define FONTNAME_MATH2 "OpenSymbol"
/////////////////////////////////////////////////////////////////
+
+enum SmPrintSize { PRINT_SIZE_NORMAL, PRINT_SIZE_SCALED, PRINT_SIZE_ZOOMED };
+
+/////////////////////////////////////////////////////////////////
// enum definitions for characters from the 'StarSymbol' font
// (some chars have more than one alias!)
//! Note: not listed here does not(!) mean "not used"
diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx
index 85390779ac96..7659eff03222 100644
--- a/starmath/inc/unomodel.hxx
+++ b/starmath/inc/unomodel.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomodel.hxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: hr $ $Date: 2001-10-18 12:10:19 $
+ * last change: $Author: tl $ $Date: 2002-08-29 08:42:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,6 +76,9 @@
#ifndef _COM_SUN_STAR_LANG_XUNOTUNNEL_HPP_
#include <com/sun/star/lang/XUnoTunnel.hpp>
#endif
+#ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_
+#include <com/sun/star/view/XRenderable.hpp>
+#endif
#ifndef _SFX_SFXBASEMODEL_HXX_
#include <sfx2/sfxbasemodel.hxx>
#endif
@@ -89,7 +92,8 @@ class SmFormat;
class SmModel : public SfxBaseModel,
public comphelper::PropertySetHelper,
public com::sun::star::lang::XServiceInfo,
- public com::sun::star::lang::XUnoTunnel
+ public com::sun::star::lang::XUnoTunnel,
+ public com::sun::star::view::XRenderable
{
protected:
virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues )
@@ -113,6 +117,11 @@ public:
//XUnoTunnel
virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ //XRenderable
+ virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
+
//XServiceInfo
virtual rtl::OUString SAL_CALL getImplementationName(void)
throw( ::com::sun::star::uno::RuntimeException );
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index 18d4c132109d..2845842cd3d7 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: view.hxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: tl $ $Date: 2002-08-15 09:59:15 $
+ * last change: $Author: tl $ $Date: 2002-08-29 08:42:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -317,6 +317,9 @@ protected:
public:
TYPEINFO();
+ SmViewShell(SfxViewFrame *pFrame, SfxViewShell *pOldSh);
+ ~SmViewShell();
+
SmDocShell * GetDoc()
{
return (SmDocShell *) GetViewFrame()->GetObjectShell();
@@ -338,8 +341,8 @@ public:
virtual void Execute( SfxRequest& rReq );
virtual void GetState(SfxItemSet &);
- SmViewShell(SfxViewFrame *pFrame, SfxViewShell *pOldSh);
- ~SmViewShell();
+ void Impl_Print( OutputDevice &rOutDev, const SmPrintSize ePrintSize,
+ Rectangle aOutRect, Point aZeroPoint );
};
#endif