summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--offapi/UnoApi_offapi.mk1
-rw-r--r--offapi/com/sun/star/style/CharacterProperties.idl8
-rw-r--r--offapi/com/sun/star/text/RubyPosition.idl39
3 files changed, 48 insertions, 0 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk
index 785c79a1667d..5b7012ee7006 100644
--- a/offapi/UnoApi_offapi.mk
+++ b/offapi/UnoApi_offapi.mk
@@ -3718,6 +3718,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/text,\
ReferenceFieldSource \
RelOrientation \
RubyAdjust \
+ RubyPosition \
SectionFileLink \
SetVariableType \
SizeType \
diff --git a/offapi/com/sun/star/style/CharacterProperties.idl b/offapi/com/sun/star/style/CharacterProperties.idl
index 5d56f0febb7b..010dab9acb53 100644
--- a/offapi/com/sun/star/style/CharacterProperties.idl
+++ b/offapi/com/sun/star/style/CharacterProperties.idl
@@ -268,6 +268,8 @@ published service CharacterProperties
/** This optional property determines whether the ruby text is printed
above/left or below/right of the text.
+ <p>This property is replaced by RubyPosition.</p>
+ @deprecated
*/
[optional, property] boolean RubyIsAbove;
@@ -452,6 +454,12 @@ published service CharacterProperties
*/
[optional, property] sequence<com::sun::star::beans::PropertyValue> CharInteropGrabBag;
+ /** This optional property determines the position of the ruby .
+ @see com::sun::star::text::RubyPosition
+ @since LibreOffice 6.1
+ */
+ [optional, property] short RubyPosition;
+
};
}; }; }; };
diff --git a/offapi/com/sun/star/text/RubyPosition.idl b/offapi/com/sun/star/text/RubyPosition.idl
new file mode 100644
index 000000000000..39258e5f8a84
--- /dev/null
+++ b/offapi/com/sun/star/text/RubyPosition.idl
@@ -0,0 +1,39 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+#ifndef __com_sun_star_text_RubyPosition_idl__
+#define __com_sun_star_text_RubyPosition_idl__
+
+
+
+ module com { module sun { module star { module text {
+
+
+/** These constants define the position of ruby text.
+ @since LibreOffice 6.1
+ */
+constants RubyPosition
+{
+ /** ruby text should be above or on the right side of base text.
+ */
+ const short ABOVE = 0;
+ /** ruby text should be below or on the left side of base text.
+ */
+ const short BELOW = 1;
+ /** Vertically aligned on right side of the base text in horizontal mode.
+ <P>This is the same as ABOVE in vertical writing mode.</P>
+ */
+ const short INTER_CHARACTER = 2;
+};
+
+
+}; }; }; };
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */