xref: /aoo42x/main/sw/source/ui/vba/vbatables.hxx (revision cdf0e10c)
1 #ifndef SW_VBA_TABLES_HXX
2 #define SW_VBA_TABLES_HXX
3 
4 #include <ooo/vba/word/XTables.hpp>
5 #include <vbahelper/vbacollectionimpl.hxx>
6 
7 
8 typedef CollTestImplHelper< ov::word::XTables > SwVbaTables_BASE;
9 
10 class SwVbaTables : public SwVbaTables_BASE
11 {
12     css::uno::Reference< css::frame::XModel > mxDocument;
13 public:
14     SwVbaTables( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::frame::XModel >& xDocument );
15     // XTables
16     virtual css::uno::Reference< ov::word::XTable > SAL_CALL Add( const css::uno::Reference< ::ooo::vba::word::XRange >& Range, const css::uno::Any& NumRows, const css::uno::Any& NumColumns, const css::uno::Any& DefaultTableBehavior, const css::uno::Any& AutoFitBehavior ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
17     // XEnumerationAccess
18     virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException);
19     virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException);
20     // ScVbaCollectionBaseImpl
21     virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource );
22 
23     // XHelperInterface
24     virtual rtl::OUString& getServiceImplName();
25     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
26 };
27 
28 #endif
29