1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module view
{
25 /** makes it possible to move a cursor up/down/left/right within laid out text.
27 @see com::sun::star::table::CellCursor
28 @see com::sun::star::text::TextCursor
29 @see com::sun::star::view::XLineCursor
31 published
interface XViewCursor
: com
::sun
::star
::uno
::XInterface
33 /** moves the cursor the specified number of lines down.
36 specifies the number of lines to go down.
39 determines whether the text range of the cursor is expanded (`TRUE`)
40 or the cursor will be just at the new position after the move (`FALSE`).
43 `TRUE` if the cursor was moved,
44 or `FALSE` if it was already in the bottom row.
46 boolean goDown
( [in] short nCount
, [in] boolean bExpand
);
48 /** moves the cursor the specified number of lines up.
51 specifies the number of lines to go up.
54 determines whether the text range of the cursor is expanded (`TRUE`)
57 `TRUE` if the cursor was moved,
58 or `FALSE` if it was already in the top row.
60 boolean goUp
( [in] short nCount
, [in] boolean bExpand
);
62 /** moves the cursor the specified number of characters to the left.
65 specifies the number of characters to move.
68 determines whether the text range of the cursor is expanded (`TRUE`)
71 `TRUE` if the cursor was moved,
72 or `FALSE` if it was already at the leftmost position.
74 boolean goLeft
( [in] short nCount
, [in] boolean bExpand
);
76 /** moves the cursor the specified number of characters to the right.
79 specifies the number of characters to move.
82 determines whether the text range of the cursor is expanded (`TRUE`)
85 `TRUE` if the cursor was moved,
86 or `FALSE` if it was already at the rightmost position.
88 boolean goRight
( [in] short nCount
, [in] boolean bExpand
);
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */