Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : #ifndef SW_VBA_TABLE_HXX
3 : : #define SW_VBA_TABLE_HXX
4 : : #include <vbahelper/vbahelperinterface.hxx>
5 : : #include <com/sun/star/text/XTextDocument.hpp>
6 : : #include <com/sun/star/text/XTextTable.hpp>
7 : : #include <ooo/vba/word/XRange.hpp>
8 : : #include <ooo/vba/word/XTable.hpp>
9 : :
10 : : typedef InheritedHelperInterfaceImpl1< ooo::vba::word::XTable > SwVbaTable_BASE;
11 : :
12 [ # # ]: 0 : class SwVbaTable : public SwVbaTable_BASE
13 : : {
14 : : css::uno::Reference< css::text::XTextDocument > mxTextDocument;
15 : : css::uno::Reference< css::text::XTextTable > mxTextTable;
16 : : public:
17 : : 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);
18 : : css::uno::Reference< css::text::XTextDocument > getDocument() const { return mxTextDocument; };
19 : : virtual css::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL Range( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
20 : : virtual void SAL_CALL Select( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
21 : : virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
22 : : 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);
23 : : virtual rtl::OUString SAL_CALL getName( ) throw (css::uno::RuntimeException);
24 : : virtual css::uno::Any SAL_CALL Borders( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
25 : : virtual css::uno::Any SAL_CALL Rows( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
26 : : virtual css::uno::Any SAL_CALL Columns( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
27 : :
28 : : // XHelperInterface
29 : : virtual rtl::OUString getServiceImplName();
30 : : virtual css::uno::Sequence<rtl::OUString> getServiceNames();
31 : : };
32 : : #endif
33 : :
34 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|