Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_EXCEL_XWORKSHEET_HDL
2 : #define INCLUDED_OOO_VBA_EXCEL_XWORKSHEET_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace ooo { namespace vba { namespace excel { class XPageSetup; } } }
7 : #include "com/sun/star/script/BasicErrorException.hdl"
8 : namespace ooo { namespace vba { namespace excel { class XOutline; } } }
9 : namespace ooo { namespace vba { namespace excel { class XRange; } } }
10 : #include "com/sun/star/lang/XUnoTunnel.hdl"
11 : #include "com/sun/star/uno/RuntimeException.hdl"
12 : #include "com/sun/star/container/XNamed.hdl"
13 : #include "com/sun/star/script/XInvocation.hdl"
14 : namespace ooo { namespace vba { namespace excel { class XWorksheet; } } }
15 : #include "ooo/vba/XHelperInterface.hdl"
16 : #include "com/sun/star/uno/Any.h"
17 : #include "com/sun/star/uno/Reference.h"
18 : #include "cppu/macros.hxx"
19 : #include "rtl/ustring.hxx"
20 : #include "sal/types.h"
21 :
22 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
23 :
24 : namespace ooo { namespace vba { namespace excel {
25 :
26 0 : class SAL_NO_VTABLE XWorksheet : public ::ooo::vba::XHelperInterface, public css::script::XInvocation, public css::container::XNamed, public css::lang::XUnoTunnel
27 : {
28 : public:
29 :
30 : // Attributes
31 : virtual ::sal_Int32 SAL_CALL getVisible() = 0;
32 : virtual void SAL_CALL setVisible( ::sal_Int32 _visible ) = 0;
33 : virtual ::sal_Int32 SAL_CALL getStandardHeight() = 0;
34 : virtual ::sal_Int32 SAL_CALL getStandardWidth() = 0;
35 : virtual ::sal_Bool SAL_CALL getProtectionMode() = 0;
36 : virtual ::sal_Bool SAL_CALL getProtectContents() = 0;
37 : virtual ::sal_Bool SAL_CALL getProtectDrawingObjects() = 0;
38 : virtual ::sal_Bool SAL_CALL getProtectScenarios() = 0;
39 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL getUsedRange() = 0;
40 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XWorksheet > SAL_CALL getNext() = 0;
41 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XWorksheet > SAL_CALL getPrevious() = 0;
42 : virtual ::rtl::OUString SAL_CALL getCodeName() = 0;
43 : virtual ::sal_Int16 SAL_CALL getIndex() = 0;
44 : virtual ::sal_Int32 SAL_CALL getEnableSelection() = 0;
45 : virtual void SAL_CALL setEnableSelection( ::sal_Int32 _enableselection ) = 0;
46 : virtual ::sal_Bool SAL_CALL getAutoFilterMode() = 0;
47 : virtual void SAL_CALL setAutoFilterMode( ::sal_Bool _autofiltermode ) = 0;
48 :
49 : // Methods
50 : virtual void SAL_CALL Activate() = 0;
51 : virtual void SAL_CALL Calculate() = 0;
52 : virtual void SAL_CALL Select() = 0;
53 : virtual void SAL_CALL Move( const ::com::sun::star::uno::Any& Before, const ::com::sun::star::uno::Any& After ) = 0;
54 : virtual void SAL_CALL Copy( const ::com::sun::star::uno::Any& Before, const ::com::sun::star::uno::Any& After ) = 0;
55 : virtual void SAL_CALL Paste( const ::com::sun::star::uno::Any& Destination, const ::com::sun::star::uno::Any& Link ) = 0;
56 : virtual void SAL_CALL Delete() = 0;
57 : virtual void SAL_CALL Protect( const ::com::sun::star::uno::Any& Password, const ::com::sun::star::uno::Any& DrawingObjects, const ::com::sun::star::uno::Any& Contents, const ::com::sun::star::uno::Any& Scenarios, const ::com::sun::star::uno::Any& UserInterfaceOnly ) = 0;
58 : virtual void SAL_CALL Unprotect( const ::com::sun::star::uno::Any& Password ) = 0;
59 : virtual void SAL_CALL CheckSpelling( const ::com::sun::star::uno::Any& CustomDictionary, const ::com::sun::star::uno::Any& IgnoreUppercase, const ::com::sun::star::uno::Any& AlwaysSuggest, const ::com::sun::star::uno::Any& SpellingLang ) = 0;
60 : virtual void SAL_CALL ShowDataForm() = 0;
61 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Range( const ::com::sun::star::uno::Any& Cell1, const ::com::sun::star::uno::Any& Cell2 ) = 0;
62 : virtual ::com::sun::star::uno::Any SAL_CALL ChartObjects( const ::com::sun::star::uno::Any& Index ) = 0;
63 : virtual ::com::sun::star::uno::Any SAL_CALL PivotTables( const ::com::sun::star::uno::Any& Index ) = 0;
64 : virtual ::com::sun::star::uno::Any SAL_CALL Comments( const ::com::sun::star::uno::Any& Index ) = 0;
65 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XOutline > SAL_CALL Outline() = 0;
66 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XPageSetup > SAL_CALL PageSetup() = 0;
67 : virtual ::com::sun::star::uno::Any SAL_CALL HPageBreaks( const ::com::sun::star::uno::Any& Index ) = 0;
68 : virtual ::com::sun::star::uno::Any SAL_CALL VPageBreaks( const ::com::sun::star::uno::Any& Index ) = 0;
69 : virtual ::com::sun::star::uno::Any SAL_CALL OLEObjects( const ::com::sun::star::uno::Any& Index ) = 0;
70 : virtual ::com::sun::star::uno::Any SAL_CALL Shapes( const ::com::sun::star::uno::Any& Index ) = 0;
71 : virtual ::com::sun::star::uno::Any SAL_CALL Buttons( const ::com::sun::star::uno::Any& Index ) = 0;
72 : virtual ::com::sun::star::uno::Any SAL_CALL CheckBoxes( const ::com::sun::star::uno::Any& Index ) = 0;
73 : virtual ::com::sun::star::uno::Any SAL_CALL DropDowns( const ::com::sun::star::uno::Any& Index ) = 0;
74 : virtual ::com::sun::star::uno::Any SAL_CALL GroupBoxes( const ::com::sun::star::uno::Any& Index ) = 0;
75 : virtual ::com::sun::star::uno::Any SAL_CALL Labels( const ::com::sun::star::uno::Any& Index ) = 0;
76 : virtual ::com::sun::star::uno::Any SAL_CALL ListBoxes( const ::com::sun::star::uno::Any& Index ) = 0;
77 : virtual ::com::sun::star::uno::Any SAL_CALL OptionButtons( const ::com::sun::star::uno::Any& Index ) = 0;
78 : virtual ::com::sun::star::uno::Any SAL_CALL ScrollBars( const ::com::sun::star::uno::Any& Index ) = 0;
79 : virtual ::com::sun::star::uno::Any SAL_CALL Spinners( const ::com::sun::star::uno::Any& Index ) = 0;
80 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Cells( const ::com::sun::star::uno::Any& RowIndex, const ::com::sun::star::uno::Any& ColumnIndex ) = 0;
81 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Rows( const ::com::sun::star::uno::Any& Index ) = 0;
82 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Columns( const ::com::sun::star::uno::Any& Index ) = 0;
83 : virtual ::com::sun::star::uno::Any SAL_CALL Hyperlinks( const ::com::sun::star::uno::Any& Index ) = 0;
84 : virtual ::com::sun::star::uno::Any SAL_CALL Names( const ::com::sun::star::uno::Any& Index ) = 0;
85 : virtual ::com::sun::star::uno::Any SAL_CALL Evaluate( const ::rtl::OUString& Name ) = 0;
86 : virtual void SAL_CALL setEnableCalculation( ::sal_Bool EnableCalculation ) = 0;
87 : virtual ::sal_Bool SAL_CALL getEnableCalculation() = 0;
88 : virtual void SAL_CALL PrintOut( const ::com::sun::star::uno::Any& From, const ::com::sun::star::uno::Any& To, const ::com::sun::star::uno::Any& Copies, const ::com::sun::star::uno::Any& Preview, const ::com::sun::star::uno::Any& ActivePrinter, const ::com::sun::star::uno::Any& PrintToFile, const ::com::sun::star::uno::Any& Collate, const ::com::sun::star::uno::Any& PrToFileName, const ::com::sun::star::uno::Any& IgnorePrintAreas ) = 0;
89 :
90 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
91 :
92 : protected:
93 0 : ~XWorksheet() throw () {} // avoid warnings about virtual members and non-virtual dtor
94 : };
95 :
96 :
97 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::excel::XWorksheet const *);
98 : } } }
99 :
100 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::excel::XWorksheet > *) SAL_THROW(());
101 :
102 : #endif
|