summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-05-07 12:07:58 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-08 14:23:04 -0400
commitc0b6e3e93c72e9e08a7af34353b8da3ce99a1ac0 (patch)
treee488c0a8fe16bb627acca36e2e9017d47900b74f /offapi
parenta7772d9d7916ebff3ad6134a1ff4f8d6cb9da709 (diff)
New UNO API to deal with text range selections.
Change-Id: I Ie868d9d2d8d56459f2013d91f836736cd3fd4d72
Diffstat (limited to 'offapi')
-rw-r--r--offapi/UnoApi_offapi.mk2
-rw-r--r--offapi/com/sun/star/text/TextPosition.idl45
-rw-r--r--offapi/com/sun/star/text/TextRangeSelection.idl47
3 files changed, 94 insertions, 0 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk
index ca50d1b409d6..98cca5f1f4fd 100644
--- a/offapi/UnoApi_offapi.mk
+++ b/offapi/UnoApi_offapi.mk
@@ -3660,6 +3660,8 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/text,\
TextGridMode \
TextMarkupDescriptor \
TextMarkupType \
+ TextPosition \
+ TextRangeSelection \
TimeDisplayFormat \
UserDataPart \
UserFieldFormat \
diff --git a/offapi/com/sun/star/text/TextPosition.idl b/offapi/com/sun/star/text/TextPosition.idl
new file mode 100644
index 000000000000..779021854c3a
--- /dev/null
+++ b/offapi/com/sun/star/text/TextPosition.idl
@@ -0,0 +1,45 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Copyright (C) 2012 Kohei Yoshida <kohei.yoshida@suse.com>
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+#ifndef __com_sun_star_text_TextPosition_idl__
+#define __com_sun_star_text_TextPosition_idl__
+
+module com { module sun { module star { module text {
+
+struct TextPosition
+{
+ long Paragraph;
+
+ long PositionInParagraph;
+};
+
+}; }; }; };
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/text/TextRangeSelection.idl b/offapi/com/sun/star/text/TextRangeSelection.idl
new file mode 100644
index 000000000000..a383600297b5
--- /dev/null
+++ b/offapi/com/sun/star/text/TextRangeSelection.idl
@@ -0,0 +1,47 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Copyright (C) 2012 Kohei Yoshida <kohei.yoshida@suse.com>
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+#ifndef __com_sun_star_text_TextRangeSelection_idl__
+#define __com_sun_star_text_TextRangeSelection_idl__
+
+#include <com/sun/star/text/TextPosition.idl>
+
+module com { module sun { module star { module text {
+
+struct TextRangeSelection
+{
+ TextPosition Start;
+
+ TextPosition End;
+};
+
+}; }; }; };
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */