Branch data 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/uno/RuntimeException.hdl"
7 : : namespace ooo { namespace vba { namespace excel { class XCharacters; } } }
8 : : #include "com/sun/star/script/BasicErrorException.hdl"
9 : : namespace ooo { namespace vba { namespace excel { class XQueryTable; } } }
10 : : #include "com/sun/star/script/XDefaultMethod.hdl"
11 : : namespace ooo { namespace vba { namespace excel { class XPivotTable; } } }
12 : : namespace ooo { namespace vba { namespace excel { class XComment; } } }
13 : : namespace ooo { namespace vba { namespace excel { class XRange; } } }
14 : : #include "com/sun/star/script/XDefaultProperty.hdl"
15 : : #include "com/sun/star/container/XEnumerationAccess.hdl"
16 : : #include "ooo/vba/excel/XFormat.hdl"
17 : : namespace ooo { namespace vba { namespace excel { class XWorksheet; } } }
18 : : #include "com/sun/star/script/XErrorQuery.hdl"
19 : : namespace ooo { namespace vba { namespace excel { class XValidation; } } }
20 : : #include "com/sun/star/uno/Any.h"
21 : : #include "com/sun/star/uno/Reference.h"
22 : : #include "com/sun/star/uno/Sequence.h"
23 : : #include "cppu/macros.hxx"
24 : : #include "rtl/ustring.hxx"
25 : : #include "sal/types.h"
26 : :
27 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
28 : :
29 : : namespace ooo { namespace vba { namespace excel {
30 : :
31 : 214 : class SAL_NO_VTABLE XRange : public ::com::sun::star::container::XEnumerationAccess, public ::com::sun::star::script::XDefaultMethod, public ::com::sun::star::script::XDefaultProperty, public ::com::sun::star::script::XErrorQuery, public ::ooo::vba::excel::XFormat
32 : : {
33 : : public:
34 : :
35 : : // Attributes
36 : : virtual ::com::sun::star::uno::Any SAL_CALL getName() throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual void SAL_CALL setName( const ::com::sun::star::uno::Any& _name ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::uno::Any SAL_CALL getValue() throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual void SAL_CALL setValue( const ::com::sun::star::uno::Any& _value ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::com::sun::star::uno::Any SAL_CALL getFormula() throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual void SAL_CALL setFormula( const ::com::sun::star::uno::Any& _formula ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::uno::Any SAL_CALL getFormulaArray() throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual void SAL_CALL setFormulaArray( const ::com::sun::star::uno::Any& _formulaarray ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Any SAL_CALL getFormulaR1C1() throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual void SAL_CALL setFormulaR1C1( const ::com::sun::star::uno::Any& _formular1c1 ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::sal_Int32 SAL_CALL getCount() throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::sal_Int32 SAL_CALL getRow() throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::sal_Int32 SAL_CALL getColumn() throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::rtl::OUString SAL_CALL getText() throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL getEntireRow() throw (::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL getEntireColumn() throw (::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XComment > SAL_CALL getComment() throw (::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual ::com::sun::star::uno::Any SAL_CALL getHidden() throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual void SAL_CALL setHidden( const ::com::sun::star::uno::Any& _hidden ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : : virtual ::com::sun::star::uno::Any SAL_CALL getColumnWidth() throw (::com::sun::star::uno::RuntimeException) = 0;
56 : : virtual void SAL_CALL setColumnWidth( const ::com::sun::star::uno::Any& _columnwidth ) throw (::com::sun::star::uno::RuntimeException) = 0;
57 : : virtual ::com::sun::star::uno::Any SAL_CALL getWidth() throw (::com::sun::star::uno::RuntimeException) = 0;
58 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XWorksheet > SAL_CALL getWorksheet() throw (::com::sun::star::uno::RuntimeException) = 0;
59 : : virtual ::com::sun::star::uno::Any SAL_CALL getRowHeight() throw (::com::sun::star::uno::RuntimeException) = 0;
60 : : virtual void SAL_CALL setRowHeight( const ::com::sun::star::uno::Any& _rowheight ) throw (::com::sun::star::uno::RuntimeException) = 0;
61 : : virtual ::com::sun::star::uno::Any SAL_CALL getHeight() throw (::com::sun::star::uno::RuntimeException) = 0;
62 : : virtual ::com::sun::star::uno::Any SAL_CALL getTop() throw (::com::sun::star::uno::RuntimeException) = 0;
63 : : virtual ::com::sun::star::uno::Any SAL_CALL getLeft() throw (::com::sun::star::uno::RuntimeException) = 0;
64 : : virtual ::com::sun::star::uno::Any SAL_CALL getPageBreak() throw (::com::sun::star::uno::RuntimeException) = 0;
65 : : virtual void SAL_CALL setPageBreak( const ::com::sun::star::uno::Any& _pagebreak ) throw (::com::sun::star::uno::RuntimeException) = 0;
66 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XValidation > SAL_CALL getValidation() throw (::com::sun::star::uno::RuntimeException) = 0;
67 : : virtual ::com::sun::star::uno::Any SAL_CALL getPrefixCharacter() throw (::com::sun::star::uno::RuntimeException) = 0;
68 : : virtual ::com::sun::star::uno::Any SAL_CALL getStyle() throw (::com::sun::star::uno::RuntimeException) = 0;
69 : : virtual void SAL_CALL setStyle( const ::com::sun::star::uno::Any& _style ) throw (::com::sun::star::uno::RuntimeException) = 0;
70 : : virtual ::com::sun::star::uno::Any SAL_CALL getAddIndent() throw (::com::sun::star::uno::RuntimeException) = 0;
71 : : virtual void SAL_CALL setAddIndent( const ::com::sun::star::uno::Any& _addindent ) throw (::com::sun::star::uno::RuntimeException) = 0;
72 : : virtual ::com::sun::star::uno::Any SAL_CALL getShowDetail() throw (::com::sun::star::uno::RuntimeException) = 0;
73 : : virtual void SAL_CALL setShowDetail( const ::com::sun::star::uno::Any& _showdetail ) throw (::com::sun::star::uno::RuntimeException) = 0;
74 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XQueryTable > SAL_CALL getQueryTable() throw (::com::sun::star::uno::RuntimeException) = 0;
75 : :
76 : : // Methods
77 : : 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;
78 : : virtual void SAL_CALL Clear( ) throw (::com::sun::star::uno::RuntimeException) = 0;
79 : : virtual void SAL_CALL ClearComments( ) throw (::com::sun::star::uno::RuntimeException) = 0;
80 : : virtual void SAL_CALL ClearContents( ) throw (::com::sun::star::uno::RuntimeException) = 0;
81 : : virtual void SAL_CALL ClearFormats( ) throw (::com::sun::star::uno::RuntimeException) = 0;
82 : : virtual ::com::sun::star::uno::Any SAL_CALL HasFormula( ) throw (::com::sun::star::uno::RuntimeException) = 0;
83 : : virtual void SAL_CALL FillLeft( ) throw (::com::sun::star::uno::RuntimeException) = 0;
84 : : virtual void SAL_CALL FillRight( ) throw (::com::sun::star::uno::RuntimeException) = 0;
85 : : virtual void SAL_CALL FillUp( ) throw (::com::sun::star::uno::RuntimeException) = 0;
86 : : virtual void SAL_CALL FillDown( ) throw (::com::sun::star::uno::RuntimeException) = 0;
87 : : 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 (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
88 : : 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;
89 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL CurrentRegion( ) throw (::com::sun::star::uno::RuntimeException) = 0;
90 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL CurrentArray( ) throw (::com::sun::star::uno::RuntimeException) = 0;
91 : : 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;
92 : : 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;
93 : : 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;
94 : : virtual void SAL_CALL Select( ) throw (::com::sun::star::uno::RuntimeException) = 0;
95 : : virtual void SAL_CALL AutoOutline( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
96 : : virtual void SAL_CALL Activate( ) throw (::com::sun::star::uno::RuntimeException) = 0;
97 : : 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;
98 : : virtual void SAL_CALL Calculate( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
99 : : 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;
100 : : virtual void SAL_CALL Copy( const ::com::sun::star::uno::Any& Destination ) throw (::com::sun::star::uno::RuntimeException) = 0;
101 : : virtual void SAL_CALL Cut( const ::com::sun::star::uno::Any& Destination ) throw (::com::sun::star::uno::RuntimeException) = 0;
102 : : 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;
103 : : 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;
104 : : virtual ::com::sun::star::uno::Any SAL_CALL getCellRange( ) throw (::com::sun::star::uno::RuntimeException) = 0;
105 : : 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;
106 : : 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;
107 : : 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;
108 : : 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;
109 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL End( ::sal_Int32 Direction ) throw (::com::sun::star::uno::RuntimeException) = 0;
110 : : 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;
111 : : virtual void SAL_CALL Delete( const ::com::sun::star::uno::Any& Shift ) throw (::com::sun::star::uno::RuntimeException) = 0;
112 : : virtual ::com::sun::star::uno::Any SAL_CALL Areas( const ::com::sun::star::uno::Any& Item ) throw (::com::sun::star::uno::RuntimeException) = 0;
113 : : 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;
114 : : 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;
115 : : 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;
116 : : virtual void SAL_CALL Autofit( ) throw (::com::sun::star::uno::RuntimeException) = 0;
117 : : 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;
118 : : 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;
119 : : 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;
120 : : virtual void SAL_CALL ClearOutline( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
121 : : virtual void SAL_CALL Ungroup( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
122 : : virtual void SAL_CALL Group( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
123 : : virtual void SAL_CALL Merge( const ::com::sun::star::uno::Any& Across ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
124 : : virtual void SAL_CALL UnMerge( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
125 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Next( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
126 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL Previous( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
127 : : 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 (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
128 : : virtual void SAL_CALL RemoveSubtotal( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
129 : : 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 (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
130 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > SAL_CALL MergeArea( ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
131 : : virtual ::com::sun::star::uno::Any SAL_CALL Hyperlinks( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
132 : : virtual ::sal_Int32 SAL_CALL CopyFromRecordset( const ::com::sun::star::uno::Any& Data, const ::com::sun::star::uno::Any& MaxRows, const ::com::sun::star::uno::Any& MaxColumns ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
133 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XPivotTable > SAL_CALL PivotTable( ) throw (::com::sun::star::uno::RuntimeException) = 0;
134 : : virtual void SAL_CALL TextToColumns( const ::com::sun::star::uno::Any& Destination, const ::com::sun::star::uno::Any& DataType, const ::com::sun::star::uno::Any& TextQualifier, const ::com::sun::star::uno::Any& ConsecutiveDelimiter, const ::com::sun::star::uno::Any& Tab, const ::com::sun::star::uno::Any& Semicolon, const ::com::sun::star::uno::Any& Comma, const ::com::sun::star::uno::Any& Space, const ::com::sun::star::uno::Any& Other, const ::com::sun::star::uno::Any& OtherChar, const ::com::sun::star::uno::Any& FieldInfo, const ::com::sun::star::uno::Any& DecimalSeparator, const ::com::sun::star::uno::Any& ThousandsSeparator, const ::com::sun::star::uno::Any& TrailingMinusNumbers ) throw (::com::sun::star::uno::RuntimeException) = 0;
135 : : virtual ::com::sun::star::uno::Any SAL_CALL AdvancedFilter( ::sal_Int32 Action, const ::com::sun::star::uno::Any& CriteriaRange, const ::com::sun::star::uno::Any& CopyToRange, const ::com::sun::star::uno::Any& Unique ) throw (::com::sun::star::script::BasicErrorException, ::com::sun::star::uno::RuntimeException) = 0;
136 : :
137 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
138 : :
139 : : protected:
140 : 214 : ~XRange() throw () {} // avoid warnings about virtual members and non-virtual dtor
141 : : };
142 : :
143 : :
144 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::excel::XRange const *);
145 : : } } }
146 : :
147 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::excel::XRange > *) SAL_THROW(());
148 : :
149 : : #endif
|