merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / text / XRubySelection.idl
blobedc043a63e3ba9ce610d8c3cffd54cb07ec29517
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XRubySelection.idl,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_text_XRubySelection_idl__
31 #define __com_sun_star_text_XRubySelection_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
36 #ifndef __com_sun_star_beans_PropertyValues_idl__
37 #include <com/sun/star/beans/PropertyValues.idl>
38 #endif
42 //=============================================================================
44 module com { module sun { module star { module text {
46 //=============================================================================
48 /** This interface enables the object to handle list of ruby lines (aka Furigana lines).
51 published interface XRubySelection : com::sun::star::uno::XInterface
53 //-------------------------------------------------------------------------
54 /** returns a sequence of ruby elements.
55 <p>Each element contains at least a string that contains the selected text and the ruby text.
56 Additional parameters can be the ruby adjustment, the name of a character style.</p>
57 @returns
58 a sequence of ruby properties
59 @param Automatic
60 if Automatic is set the selection is parsed for words and applied ruby attributes
62 sequence<com::sun::star::beans::PropertyValues> getRubyList( [in] boolean Automatic );
63 //-------------------------------------------------------------------------
64 /** applies the RubyList to the current selection. The number of elements must be
65 equal to the number of elements that are returned by getRubyList. Automatic must be
66 set equally, too.
68 void setRubyList( [in] sequence<com::sun::star::beans::PropertyValues > RubyList, [in] boolean Automatic );
72 //=============================================================================
74 }; }; }; };
76 #endif