Update ooo320-m1
[ooovba.git] / sc / source / ui / vba / vbafont.hxx
blob481aaf2dd3e164769d49cd2e30b415090d7c96b5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: vbafont.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SC_VBA_FONT_HXX
31 #define SC_VBA_FONT_HXX
33 #include <cppuhelper/implbase1.hxx>
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 #include <ooo/vba/excel/XFont.hpp>
37 #include <vbahelper/vbahelperinterface.hxx>
38 #include <vbahelper/vbafontbase.hxx>
39 #include "vbapalette.hxx"
41 class ScTableSheetsObj;
42 class ScCellRangeObj;
44 typedef cppu::ImplInheritanceHelper1< VbaFontBase, ov::excel::XFont > ScVbaFont_BASE;
46 class ScVbaFont : public ScVbaFont_BASE
48 ScVbaPalette mPalette;
49 ScCellRangeObj* mpRangeObj;
50 SfxItemSet* GetDataSet();
51 public:
52 ScVbaFont( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, css::uno::Reference< css::beans::XPropertySet > xPropertySet, ScCellRangeObj* pRangeObj = NULL ) throw ( css::uno::RuntimeException );
53 virtual ~ScVbaFont();// {}
55 // Attributes
56 virtual css::uno::Any SAL_CALL getSize() throw (css::uno::RuntimeException);
57 virtual css::uno::Any SAL_CALL getStandardFontSize() throw (css::uno::RuntimeException);
58 virtual void SAL_CALL setStandardFontSize( const css::uno::Any& _standardfontsize ) throw (css::uno::RuntimeException);
59 virtual css::uno::Any SAL_CALL getStandardFont() throw (css::uno::RuntimeException);
60 virtual void SAL_CALL setStandardFont( const css::uno::Any& _standardfont ) throw (css::uno::RuntimeException);
61 virtual css::uno::Any SAL_CALL getFontStyle() throw (css::uno::RuntimeException);
62 virtual void SAL_CALL setFontStyle( const css::uno::Any& _fontstyle ) throw (css::uno::RuntimeException);
63 virtual css::uno::Any SAL_CALL getColorIndex() throw (css::uno::RuntimeException);
64 virtual void SAL_CALL setColorIndex( const css::uno::Any& _colorindex ) throw (css::uno::RuntimeException);
65 virtual css::uno::Any SAL_CALL getBold() throw (css::uno::RuntimeException);
66 virtual css::uno::Any SAL_CALL getUnderline() throw (css::uno::RuntimeException);
67 virtual void SAL_CALL setUnderline( const css::uno::Any& _underline ) throw (css::uno::RuntimeException);
68 virtual css::uno::Any SAL_CALL getStrikethrough() throw (css::uno::RuntimeException);
69 virtual css::uno::Any SAL_CALL getShadow() throw (css::uno::RuntimeException);
70 virtual css::uno::Any SAL_CALL getItalic() throw (css::uno::RuntimeException);
71 virtual css::uno::Any SAL_CALL getSubscript() throw (css::uno::RuntimeException);
72 virtual void SAL_CALL setSubscript( const css::uno::Any& _subscript ) throw (css::uno::RuntimeException);
73 virtual css::uno::Any SAL_CALL getSuperscript() throw (css::uno::RuntimeException);
74 virtual void SAL_CALL setSuperscript( const css::uno::Any& _superscript ) throw (css::uno::RuntimeException);
75 virtual css::uno::Any SAL_CALL getName() throw (css::uno::RuntimeException);
76 virtual css::uno::Any SAL_CALL getColor() throw (css::uno::RuntimeException) ;
77 virtual css::uno::Any SAL_CALL getOutlineFont() throw (css::uno::RuntimeException) ;
78 virtual void SAL_CALL setOutlineFont( const css::uno::Any& _outlinefont ) throw (css::uno::RuntimeException) ;
79 // XHelperInterface
80 virtual rtl::OUString& getServiceImplName();
81 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
87 #endif /* SC_VBA_FONT_HXX */