xref: /trunk/main/sc/source/ui/vba/vbafont.hxx (revision 38d50f7b)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef SC_VBA_FONT_HXX
24 #define SC_VBA_FONT_HXX
25 
26 #include <cppuhelper/implbase1.hxx>
27 
28 #include <com/sun/star/beans/XPropertySet.hpp>
29 #include <ooo/vba/excel/XFont.hpp>
30 #include <vbahelper/vbahelperinterface.hxx>
31 #include <vbahelper/vbafontbase.hxx>
32 #include "vbapalette.hxx"
33 
34 class ScTableSheetsObj;
35 class ScCellRangeObj;
36 
37 typedef cppu::ImplInheritanceHelper1< VbaFontBase, ov::excel::XFont > ScVbaFont_BASE;
38 
39 class ScVbaFont : public ScVbaFont_BASE
40 {
41     ScVbaPalette mPalette;
42     ScCellRangeObj* mpRangeObj;
43     SfxItemSet*  GetDataSet();
44 public:
45 	ScVbaFont(
46         const css::uno::Reference< ov::XHelperInterface >& xParent,
47         const css::uno::Reference< css::uno::XComponentContext >& xContext,
48         const ScVbaPalette& dPalette,
49         const css::uno::Reference< css::beans::XPropertySet >& xPropertySet,
50         ScCellRangeObj* pRangeObj = 0, bool bFormControl = false ) throw ( css::uno::RuntimeException );
51 	virtual ~ScVbaFont();// {}
52 
53 	// Attributes
54     virtual css::uno::Any SAL_CALL getSize() throw (css::uno::RuntimeException);
55     virtual css::uno::Any SAL_CALL getStandardFontSize() throw (css::uno::RuntimeException);
56     virtual void SAL_CALL setStandardFontSize( const css::uno::Any& _standardfontsize ) throw (css::uno::RuntimeException);
57     virtual css::uno::Any SAL_CALL getStandardFont() throw (css::uno::RuntimeException);
58     virtual void SAL_CALL setStandardFont( const css::uno::Any& _standardfont ) throw (css::uno::RuntimeException);
59     virtual css::uno::Any SAL_CALL getFontStyle() throw (css::uno::RuntimeException);
60     virtual void SAL_CALL setFontStyle( const css::uno::Any& _fontstyle ) throw (css::uno::RuntimeException);
61     virtual css::uno::Any SAL_CALL getColorIndex() throw (css::uno::RuntimeException);
62     virtual void SAL_CALL setColorIndex( const css::uno::Any& _colorindex ) throw (css::uno::RuntimeException);
63     virtual css::uno::Any SAL_CALL getBold() throw (css::uno::RuntimeException);
64     virtual css::uno::Any SAL_CALL getUnderline() throw (css::uno::RuntimeException);
65     virtual void SAL_CALL setUnderline( const css::uno::Any& _underline ) throw (css::uno::RuntimeException);
66     virtual css::uno::Any SAL_CALL getStrikethrough() throw (css::uno::RuntimeException);
67     virtual css::uno::Any SAL_CALL getShadow() throw (css::uno::RuntimeException);
68     virtual css::uno::Any SAL_CALL getItalic() throw (css::uno::RuntimeException);
69     virtual css::uno::Any SAL_CALL getSubscript() throw (css::uno::RuntimeException);
70     virtual void SAL_CALL setSubscript( const css::uno::Any& _subscript ) throw (css::uno::RuntimeException);
71     virtual css::uno::Any SAL_CALL getSuperscript() throw (css::uno::RuntimeException);
72     virtual void SAL_CALL setSuperscript( const css::uno::Any& _superscript ) throw (css::uno::RuntimeException);
73     virtual css::uno::Any SAL_CALL getName() throw (css::uno::RuntimeException);
74     virtual css::uno::Any SAL_CALL getColor() throw (css::uno::RuntimeException) ;
75     virtual css::uno::Any SAL_CALL getOutlineFont() throw (css::uno::RuntimeException) ;
76     virtual void SAL_CALL setOutlineFont( const css::uno::Any& _outlinefont ) throw (css::uno::RuntimeException) ;
77     // XHelperInterface
78     virtual rtl::OUString& getServiceImplName();
79     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
80 
81 };
82 
83 
84 
85 #endif /* SC_VBA_FONT_HXX */
86 
87