xref: /aoo42x/main/oovbaapi/ooo/vba/word/XSelection.idl (revision ad7bc010)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __ooo_vba_word_XSelection_idl__
24#define __ooo_vba_word_XSelection_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29
30#ifndef __ooo_vba_XHelperInterface_idl__
31#include <ooo/vba/XHelperInterface.idl>
32#endif
33
34
35module ooo {  module vba {  module word {
36
37interface XRange;
38interface XParagraphFormat;
39interface XFind;
40interface XFont;
41interface XStyle;
42interface XHeaderFooter;
43interface XSelection
44{
45    interface ooo::vba::XHelperInterface;
46
47    [attribute] string Text;
48    [attribute, readonly] XRange Range;
49    [attribute] XParagraphFormat ParagraphFormat;
50    [attribute, readonly] XFind Find;
51    [attribute] XStyle Style;
52    [attribute, readonly] XFont Font;
53    [attribute, readonly] XHeaderFooter HeaderFooter;
54    [attribute] long LanguageID;
55    [attribute] long Start;
56    [attribute] long End;
57
58    any Tables( [in] any Index );
59    any Fields( [in] any Index );
60    void TypeText( [in] string Text );
61    void HomeKey( [in] any Unit, [in] any Extend );
62    void EndKey( [in] any Unit, [in] any Extend );
63    void Delete( [in] any Unit, [in] any Count );
64    void MoveRight( [in] any Unit, [in] any Count, [in] any Extend );
65    void MoveLeft( [in] any Unit, [in] any Count, [in] any Extend );
66    void MoveDown( [in] any Unit, [in] any Count, [in] any Extend );
67    void TypeParagraph();
68    void InsertParagraph();
69    void InsertParagraphBefore();
70    void InsertParagraphAfter();
71    void TypeBackspace();
72    XRange GoTo( [in] any What, [in] any Which, [in] any Count, [in] any Name );
73    any Information( [in] long Type );
74    void InsertBreak( [in] any Type );
75    any ShapeRange();
76};
77
78}; }; };
79
80#endif
81
82
83