From c0b6e3e93c72e9e08a7af34353b8da3ce99a1ac0 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 7 May 2012 12:07:58 -0400 Subject: New UNO API to deal with text range selections. Change-Id: I Ie868d9d2d8d56459f2013d91f836736cd3fd4d72 --- offapi/UnoApi_offapi.mk | 2 ++ offapi/com/sun/star/text/TextPosition.idl | 45 +++++++++++++++++++++++ offapi/com/sun/star/text/TextRangeSelection.idl | 47 +++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 offapi/com/sun/star/text/TextPosition.idl create mode 100644 offapi/com/sun/star/text/TextRangeSelection.idl (limited to 'offapi') 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 + * + * 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 + * + * 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 + +module com { module sun { module star { module text { + +struct TextRangeSelection +{ + TextPosition Start; + + TextPosition End; +}; + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit