Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / XFixedHyperlink.idl
blob280b846bf4dac9f41b0cf5fd1ccfec65353a6161
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 .
19 #ifndef __com_sun_star_awt_XFixedHyperlink_idl__
20 #define __com_sun_star_awt_XFixedHyperlink_idl__
22 #include <com/sun/star/uno/XInterface.idl>
23 #include <com/sun/star/awt/XActionListener.idl>
26 module com { module sun { module star { module awt {
29 /** gives access to the text and formatting of a fixed hyperlink field.
31 interface XFixedHyperlink: com::sun::star::uno::XInterface
34 /** sets the text of the control.
36 void setText( [in] string Text );
39 /** returns the text of the control.
41 string getText();
44 /** sets the url of the control.
46 void setURL( [in] string URL );
49 /** returns the url of the control.
51 string getURL();
54 /** sets the alignment of the text in the control.
56 <pre>
57 0: left
58 1: center
59 2: right
60 </pre>
62 void setAlignment( [in] short nAlign );
65 /** returns the alignment of the text in the control.
67 short getAlignment();
70 /** registers an event handler for click action event.
72 void addActionListener( [in] com::sun::star::awt::XActionListener l );
75 /** unregisters an event handler for click action event.
77 void removeActionListener( [in] com::sun::star::awt::XActionListener l );
82 }; }; }; };
84 #endif
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */