1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_xml_dom_XCharacterData_idl__
29 #define __com_sun_star_xml_dom_XCharacterData_idl__
31 #ifndef __com_sun_star_xml_dom_XNode_idl__
32 #include
<com
/sun
/star
/xml
/dom
/XNode.idl
>
35 module com
{ module sun
{ module star
{ module xml
{ module dom
{
37 interface XCharacterData
: XNode
40 Append the string to the end of the character data of the node.
42 DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
44 void appendData
([in] string arg
) raises
(DOMException
);
47 Remove a range of 16-bit units from the node.
49 DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
50 than the number of 16-bit units in data, or if the specified count is negative.
51 NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
53 void deleteData
([in] long offset
, [in] long count
) raises
(DOMException
);
56 Return the character data of the node that implements this interface.
58 DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
59 DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters
60 than fit in a DOMString variable on the implementation platform.
64 string getData
() raises
(DOMException
);
67 The number of 16-bit units that are available through data and the
68 substringData method below.
73 Insert a string at the specified 16-bit unit offset.
75 DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than
76 the number of 16-bit units in data.
77 NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
79 void insertData
([in] long offset
, [in] string arg
) raises
(DOMException
);
82 Replace the characters starting at the specified 16-bit unit offset
83 with the specified string.
85 DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than
86 the number of 16-bit units in data, or if the specified count is negative.
87 NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
89 void replaceData
([in] long offset
, [in] long count
, [in] string arg
) raises
(DOMException
);
92 Set the character data of the node that implements this interface.
94 DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
95 DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than
96 fit in a DOMString variable on the implementation platform.
98 void setData
([in] string data
) raises
(DOMException
);
101 Extracts a range of data from the node.
103 DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
104 than the number of 16-bit units in data, or if the specified count is negative.
105 DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into a DOMString.
107 string subStringData
([in] long offset
, [in] long count
) raises
(DOMException
);