tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / offapi / com / sun / star / text / GraphicCrop.idl
blob938ec21e2be33a3c4b88dd9b7f9d906abc37435a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 text {
24 /** describes the cropping of graphic objects.
25 Cropping means to show only parts of the object.
29 <p>Negative values cut the visible area; positive values
30 extend the visible area by filling it with background color.
31 The absolute sum of top and bottom crop must be smaller
32 than the objects original height. The absolute sum of the left and
33 right crop must be smaller than the object's original width.
35 </p>
36 <p>If this property is applied to a graphic object, then this object
37 will correct these values if necessary.
38 </p>
40 published struct GraphicCrop
42 /** contains the top value to cut (if negative) or to extend (if positive)
44 long Top;
46 /** contains the bottom value to cut (if negative) or to extend (if positive)
48 long Bottom;
50 /** contains the left value to cut (if negative) or to extend (if positive)
52 long Left;
54 /** contains the right value to cut (if negative) or to extend (if positive)
56 long Right;
61 }; }; }; };
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */