New UNO API to deal with text range selections.
Change-Id: I Ie868d9d2d8d56459f2013d91f836736cd3fd4d72
This commit is contained in:
parent
a7772d9d79
commit
c0b6e3e93c
3 changed files with 94 additions and 0 deletions
|
@ -3660,6 +3660,8 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/text,\
|
|||
TextGridMode \
|
||||
TextMarkupDescriptor \
|
||||
TextMarkupType \
|
||||
TextPosition \
|
||||
TextRangeSelection \
|
||||
TimeDisplayFormat \
|
||||
UserDataPart \
|
||||
UserFieldFormat \
|
||||
|
|
45
offapi/com/sun/star/text/TextPosition.idl
Normal file
45
offapi/com/sun/star/text/TextPosition.idl
Normal file
|
@ -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: */
|
47
offapi/com/sun/star/text/TextRangeSelection.idl
Normal file
47
offapi/com/sun/star/text/TextRangeSelection.idl
Normal file
|
@ -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: */
|
Loading…
Reference in a new issue