update dev300-m58
[ooovba.git] / sw / source / ui / vba / vbatable.hxx
blob3376007423042f7794c0d66dbda196a26f2e56a8
1 #ifndef SW_VBA_TABLE_HXX
2 #define SW_VBA_TABLE_HXX
3 #include <vbahelper/vbahelperinterface.hxx>
4 #include <com/sun/star/text/XTextDocument.hpp>
5 #include <com/sun/star/text/XTextTable.hpp>
6 #include <ooo/vba/word/XRange.hpp>
7 #include <ooo/vba/word/XTable.hpp>
9 typedef InheritedHelperInterfaceImpl1< ooo::vba::word::XTable > SwVbaTable_BASE;
11 class SwVbaTable : public SwVbaTable_BASE
13 css::uno::Reference< css::text::XTextDocument > mxTextDocument;
14 css::uno::Reference< css::text::XTextTable > mxTextTable;
15 public:
16 SwVbaTable( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& rDocument, const css::uno::Reference< css::text::XTextTable >& xTextTable) throw ( css::uno::RuntimeException);;
17 css::uno::Reference< css::text::XTextDocument > getDocument() { return mxTextDocument; };
18 virtual css::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL Range( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);;
19 virtual void SAL_CALL Select( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
20 virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
21 virtual css::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL ConvertToText( const css::uno::Any& Separator, const css::uno::Any& NestedTables ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
22 virtual rtl::OUString SAL_CALL getName( ) throw (css::uno::RuntimeException);
23 virtual css::uno::Any SAL_CALL Borders( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
24 // XHelperInterface
25 virtual rtl::OUString& getServiceImplName();
26 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
28 #endif