xref: /AOO41X/main/sw/source/ui/vba/vbafont.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 #ifndef VBA_FONT_HXX
2 #define VBA_FONT_HXX
3 
4 #include <vbahelper/vbafontbase.hxx>
5 #include <ooo/vba/word/XFont.hpp>
6 
7 typedef cppu::ImplInheritanceHelper1< VbaFontBase, ov::word::XFont > SwVbaFont_BASE;
8 
9 class SwVbaFont : public SwVbaFont_BASE
10 {
11 public:
12 	SwVbaFont( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xPalette, css::uno::Reference< css::beans::XPropertySet > xPropertySet ) throw ( css::uno::RuntimeException );
13 	virtual ~SwVbaFont(){}
14 
15     // Attributes
16     virtual void SAL_CALL setColorIndex( const css::uno::Any& _colorindex ) throw (css::uno::RuntimeException);
17     virtual css::uno::Any SAL_CALL getColorIndex() throw (css::uno::RuntimeException);
18     virtual css::uno::Any SAL_CALL getUnderline() throw (css::uno::RuntimeException);
19     virtual void SAL_CALL setUnderline( const css::uno::Any& _underline ) throw (css::uno::RuntimeException);
20     virtual css::uno::Any SAL_CALL getSubscript() throw ( css::uno::RuntimeException );
21     virtual css::uno::Any SAL_CALL getSuperscript() throw ( css::uno::RuntimeException );
22 
23     virtual css::uno::Any SAL_CALL getBold() throw (css::uno::RuntimeException);
24     virtual css::uno::Any SAL_CALL getItalic() throw (css::uno::RuntimeException);
25     virtual css::uno::Any SAL_CALL getStrikethrough() throw (css::uno::RuntimeException);
26     virtual css::uno::Any SAL_CALL getShadow() throw (css::uno::RuntimeException);
27     // XHelperInterface
28     virtual rtl::OUString& getServiceImplName();
29     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
30 };
31 #endif
32