diff options
author | Björn Milcke <bm@openoffice.org> | 2003-11-14 14:25:55 +0000 |
---|---|---|
committer | Björn Milcke <bm@openoffice.org> | 2003-11-14 14:25:55 +0000 |
commit | 314f4419f970ec1920e6efc03830bacb2663039c (patch) | |
tree | 74fac7f9ea2c7d2f16a6bfc4908677ccc9e70919 /chart2/source/inc | |
parent | f3856176faf409757c622fc40d68b8b91a1146fa (diff) |
relative font sizes for titles
Diffstat (limited to 'chart2/source/inc')
-rw-r--r-- | chart2/source/inc/RelativeSizeHelper.hxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/chart2/source/inc/RelativeSizeHelper.hxx b/chart2/source/inc/RelativeSizeHelper.hxx index 403924648e51..e1c5eac35a99 100644 --- a/chart2/source/inc/RelativeSizeHelper.hxx +++ b/chart2/source/inc/RelativeSizeHelper.hxx @@ -2,9 +2,9 @@ * * $RCSfile: RelativeSizeHelper.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: bm $ $Date: 2003-11-12 19:41:34 $ + * last change: $Author: bm $ $Date: 2003-11-14 15:25:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,6 +64,9 @@ #ifndef _COM_SUN_STAR_AWT_SIZE_HPP_ #include <com/sun/star/awt/Size.hpp> #endif +#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_ +#include <com/sun/star/beans/XPropertySet.hpp> +#endif namespace chart { @@ -72,9 +75,15 @@ class RelativeSizeHelper { public: static double calculate( + double fValue, + const ::com::sun::star::awt::Size & rOldReferenceSize, + const ::com::sun::star::awt::Size & rNewReferenceSize ); + + static void adaptFontSizes( + ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet > & xTargetProperties, const ::com::sun::star::awt::Size & rOldReferenceSize, - const ::com::sun::star::awt::Size & rNewReferenceSize, - double fValue ); + const ::com::sun::star::awt::Size & rNewReferenceSize ); private: // not implemented |