Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_EXCEL_XRANGE_HDL
2 : #define INCLUDED_OOO_VBA_EXCEL_XRANGE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/container/XEnumerationAccess.hdl"
7 : #include "com/sun/star/script/BasicErrorException.hdl"
8 : #include "com/sun/star/script/XDefaultMethod.hdl"
9 : #include "com/sun/star/script/XDefaultProperty.hdl"
10 : #include "com/sun/star/script/XErrorQuery.hdl"
11 : #include "com/sun/star/uno/RuntimeException.hdl"
12 : namespace ooo { namespace vba { namespace excel { class XCharacters; } } }
13 : namespace ooo { namespace vba { namespace excel { class XComment; } } }
14 : #include "ooo/vba/excel/XFormat.hdl"
15 : namespace ooo { namespace vba { namespace excel { class XName; } } }
16 : namespace ooo { namespace vba { namespace excel { class XRange; } } }
17 : namespace ooo { namespace vba { namespace excel { class XValidation; } } }
18 : namespace ooo { namespace vba { namespace excel { class XWorksheet; } } }
19 : #include "com/sun/star/uno/Any.h"
20 : #include "com/sun/star/uno/Reference.h"
21 : #include "com/sun/star/uno/Sequence.h"
22 : #include "cppu/macros.hxx"
23 : #include "rtl/ustring.hxx"
24 : #include "sal/types.h"
25 :
26 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
27 :
28 : namespace ooo { namespace vba { namespace excel {
29 :
30 2807 : class SAL_NO_VTABLE XRange : public css::container::XEnumerationAccess, public css::script::XDefaultMethod, public css::script::XDefaultProperty, public css::script::XErrorQuery, public ::ooo::vba::excel::XFormat
31 : {
32 : public:
33 :
34 : // Attributes
35 : virtual ::com::sun::star::uno::Any SAL_CALL getValue() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL setValue( const ::com::sun::star::uno::Any& _value ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::com::sun::star::uno::Any SAL_CALL getFormula() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL setFormula( const ::com::sun::star::uno::Any& _formula ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual ::com::sun::star::uno::Any SAL_CALL getFormulaArray() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL setFormulaArray( const ::com::sun::star::uno::Any& _formulaarray ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::com::sun::star::uno::Any SAL_CALL getFormulaR1C1() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual void SAL_CALL setFormulaR1C1( const ::com::sun::star::uno::Any& _formular1c1 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::sal_Int32 SAL_CALL getCount() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual ::sal_Int32 SAL_CALL getRow() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual ::sal_Int32 SAL_CALL getColumn() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual ::rtl::OUString SAL_CALL getText() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
47 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL getEntireRow() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
48 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL getEntireColumn() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
49 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XComment > SAL_CALL getComment() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
50 : virtual ::com::sun::star::uno::Any SAL_CALL getHidden() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
51 : virtual void SAL_CALL setHidden( const ::com::sun::star::uno::Any& _hidden ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
52 : virtual ::com::sun::star::uno::Any SAL_CALL getColumnWidth() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
53 : virtual void SAL_CALL setColumnWidth( const ::com::sun::star::uno::Any& _columnwidth ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
54 : virtual ::com::sun::star::uno::Any SAL_CALL getWidth() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
55 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XWorksheet > SAL_CALL getWorksheet() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
56 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XName > SAL_CALL getName() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
57 : virtual ::com::sun::star::uno::Any SAL_CALL getRowHeight() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
58 : virtual void SAL_CALL setRowHeight( const ::com::sun::star::uno::Any& _rowheight ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
59 : virtual ::com::sun::star::uno::Any SAL_CALL getHeight() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
60 : virtual ::com::sun::star::uno::Any SAL_CALL getTop() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
61 : virtual ::com::sun::star::uno::Any SAL_CALL getLeft() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
62 : virtual ::com::sun::star::uno::Any SAL_CALL getPageBreak() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
63 : virtual void SAL_CALL setPageBreak( const ::com::sun::star::uno::Any& _pagebreak ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
64 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XValidation > SAL_CALL getValidation() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
65 : virtual ::com::sun::star::uno::Any SAL_CALL getPrefixCharacter() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
66 : virtual ::com::sun::star::uno::Any SAL_CALL getStyle() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
67 : virtual void SAL_CALL setStyle( const ::com::sun::star::uno::Any& _style ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
68 : virtual ::com::sun::star::uno::Any SAL_CALL getAddIndent() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
69 : virtual void SAL_CALL setAddIndent( const ::com::sun::star::uno::Any& _addindent ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
70 : virtual ::com::sun::star::uno::Any SAL_CALL getShowDetail() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
71 : virtual void SAL_CALL setShowDetail( const ::com::sun::star::uno::Any& _showdetail ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
72 :
73 : // Methods
74 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XComment > SAL_CALL AddComment( const ::com::sun::star::uno::Any& Text ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
75 : virtual void SAL_CALL Clear() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
76 : virtual void SAL_CALL ClearComments() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
77 : virtual void SAL_CALL ClearContents() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
78 : virtual void SAL_CALL ClearFormats() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
79 : virtual ::com::sun::star::uno::Any SAL_CALL HasFormula() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
80 : virtual void SAL_CALL FillLeft() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
81 : virtual void SAL_CALL FillRight() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
82 : virtual void SAL_CALL FillUp() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
83 : virtual void SAL_CALL FillDown() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
84 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Item( const ::com::sun::star::uno::Any& RowIndex, const ::com::sun::star::uno::Any& ColumnIndex ) /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
85 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Offset( const ::com::sun::star::uno::Any& RowOffset, const ::com::sun::star::uno::Any& ColumnOffset ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
86 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL CurrentRegion() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
87 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL CurrentArray() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
88 : virtual ::rtl::OUString SAL_CALL Characters( const ::com::sun::star::uno::Any& Start, const ::com::sun::star::uno::Any& Length ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
89 : virtual ::rtl::OUString SAL_CALL Address( const ::com::sun::star::uno::Any& RowAbsolute, const ::com::sun::star::uno::Any& ColumnAbsolute, const ::com::sun::star::uno::Any& ReferenceStyle, const ::com::sun::star::uno::Any& External, const ::com::sun::star::uno::Any& RelativeTo ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
90 : 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 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
91 : virtual void SAL_CALL Select() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
92 : virtual void SAL_CALL AutoOutline() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
93 : virtual void SAL_CALL Activate() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
94 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Rows( const ::com::sun::star::uno::Any& RowIndex ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
95 : virtual void SAL_CALL Calculate() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
96 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Columns( const ::com::sun::star::uno::Any& ColumnIndex ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
97 : virtual void SAL_CALL Copy( const ::com::sun::star::uno::Any& Destination ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
98 : virtual void SAL_CALL Cut( const ::com::sun::star::uno::Any& Destination ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
99 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Resize( const ::com::sun::star::uno::Any& RowSize, const ::com::sun::star::uno::Any& ColumnSize ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
100 : 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 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
101 : virtual ::com::sun::star::uno::Any SAL_CALL getCellRange() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
102 : virtual void SAL_CALL PasteSpecial( const ::com::sun::star::uno::Any& Paste, const ::com::sun::star::uno::Any& Operation, const ::com::sun::star::uno::Any& SkipBlanks, const ::com::sun::star::uno::Any& Transpose ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
103 : virtual ::sal_Bool SAL_CALL Replace( const ::rtl::OUString& What, const ::rtl::OUString& Replacement, const ::com::sun::star::uno::Any& LookAt, const ::com::sun::star::uno::Any& SearchOrder, const ::com::sun::star::uno::Any& MatchCase, const ::com::sun::star::uno::Any& MatchByte, const ::com::sun::star::uno::Any& SearchFormat, const ::com::sun::star::uno::Any& ReplaceFormat ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
104 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Find( const ::com::sun::star::uno::Any& What, const ::com::sun::star::uno::Any& After, const ::com::sun::star::uno::Any& LookIn, const ::com::sun::star::uno::Any& LookAt, const ::com::sun::star::uno::Any& SearchOrder, const ::com::sun::star::uno::Any& SearchDirection, const ::com::sun::star::uno::Any& MatchCase, const ::com::sun::star::uno::Any& MatchByte, const ::com::sun::star::uno::Any& SearchFormat ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
105 : virtual void SAL_CALL Sort( const ::com::sun::star::uno::Any& Key1, const ::com::sun::star::uno::Any& Order1, const ::com::sun::star::uno::Any& Key2, const ::com::sun::star::uno::Any& Type, const ::com::sun::star::uno::Any& Order2, const ::com::sun::star::uno::Any& Key3, const ::com::sun::star::uno::Any& Order3, const ::com::sun::star::uno::Any& Header, const ::com::sun::star::uno::Any& OrderCustom, const ::com::sun::star::uno::Any& MatchCase, const ::com::sun::star::uno::Any& Orientation, const ::com::sun::star::uno::Any& SortMethod, const ::com::sun::star::uno::Any& DataOption1, const ::com::sun::star::uno::Any& DataOption2, const ::com::sun::star::uno::Any& DataOption3 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
106 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL End( ::sal_Int32 Direction ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
107 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XCharacters > SAL_CALL characters( const ::com::sun::star::uno::Any& Start, const ::com::sun::star::uno::Any& Length ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
108 : virtual void SAL_CALL Delete( const ::com::sun::star::uno::Any& Shift ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
109 : virtual ::com::sun::star::uno::Any SAL_CALL Areas( const ::com::sun::star::uno::Any& Item ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
110 : virtual ::com::sun::star::uno::Any SAL_CALL BorderAround( const ::com::sun::star::uno::Any& LineStyle, const ::com::sun::star::uno::Any& Weight, const ::com::sun::star::uno::Any& ColorIndex, const ::com::sun::star::uno::Any& Color ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
111 : virtual void SAL_CALL AutoFilter( const ::com::sun::star::uno::Any& Field, const ::com::sun::star::uno::Any& Criteria1, const ::com::sun::star::uno::Any& Operator, const ::com::sun::star::uno::Any& Criteria2, const ::com::sun::star::uno::Any& VisibleDropDown ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
112 : virtual void SAL_CALL Insert( const ::com::sun::star::uno::Any& Shift, const ::com::sun::star::uno::Any& CopyOrigin ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
113 : virtual void SAL_CALL Autofit() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
114 : 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 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
115 : virtual void SAL_CALL AutoFill( const ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange >& Destination, const ::com::sun::star::uno::Any& Type ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
116 : virtual ::sal_Bool SAL_CALL GoalSeek( const ::com::sun::star::uno::Any& Goal, const ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange >& ChangingCell ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
117 : virtual void SAL_CALL ClearOutline() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
118 : virtual void SAL_CALL Ungroup() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
119 : virtual void SAL_CALL Group() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
120 : virtual void SAL_CALL Merge( const ::com::sun::star::uno::Any& Across ) /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
121 : virtual void SAL_CALL UnMerge() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
122 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Next() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
123 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Previous() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
124 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL SpecialCells( const ::com::sun::star::uno::Any& Type, const ::com::sun::star::uno::Any& Value ) /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
125 : virtual void SAL_CALL RemoveSubtotal() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
126 : virtual void SAL_CALL Subtotal( ::sal_Int32 GroupBy, ::sal_Int32 Function, const ::com::sun::star::uno::Sequence< ::sal_Int32 >& TotalList, const ::com::sun::star::uno::Any& Replace, const ::com::sun::star::uno::Any& PageBreaks, const ::com::sun::star::uno::Any& SummaryBelowData ) /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
127 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL MergeArea() /* throw (css::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) */ = 0;
128 : virtual ::com::sun::star::uno::Any SAL_CALL Hyperlinks( const ::com::sun::star::uno::Any& Index ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
129 :
130 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
131 :
132 : protected:
133 2798 : ~XRange() throw () {} // avoid warnings about virtual members and non-virtual dtor
134 : };
135 :
136 :
137 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::excel::XRange const *);
138 : } } }
139 :
140 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > *) SAL_THROW(());
141 :
142 : #endif
|