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