LibreOffice
LibreOffice 4.2 SDK API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
XNumberFormatter.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef __com_sun_star_util_XNumberFormatter_idl__
20 #define __com_sun_star_util_XNumberFormatter_idl__
21 
23 
26 
28 
30 
31 
32 
33  module com { module sun { module star { module util {
34 
35 
39 {
40 
48  void attachNumberFormatsSupplier( [in] com::sun::star::util::XNumberFormatsSupplier xSupplier );
49 
50 
54  com::sun::star::util::XNumberFormatsSupplier getNumberFormatsSupplier();
55 
56 
59  long detectNumberFormat( [in] long nKey,
60  [in] string aString )
62 
63 
68  double convertStringToNumber( [in] long nKey,
69  [in] string aString )
71 
72 
75  string convertNumberToString( [in] long nKey,
76  [in] double fValue );
77 
78 
83  com::sun::star::util::Color queryColorForNumber( [in] long nKey,
84  [in] double fValue,
85  [in] com::sun::star::util::Color aDefaultColor );
86 
87 
90  string formatString( [in] long nKey,
91  [in] string aString );
92 
93 
98  com::sun::star::util::Color queryColorForString( [in] long nKey,
99  [in] string aString,
100  [in] com::sun::star::util::Color aDefaultColor );
101 
102 
109  string getInputString( [in] long nKey,
110  [in] double fValue );
111 
112 };
113 
114 
115 }; }; }; };
116 
117 #endif
118 
119 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
represents a number formatter.
Definition: XNumberFormatter.idl:38
supplies the collection of NumberFormats (for example, in a document) and the settings belonging to t...
Definition: XNumberFormatsSupplier.idl:36
long Color
describes an RGB color value with an optional alpha channel.
Definition: Color.idl:36
base interface of all UNO interfaces
Definition: XInterface.idl:47
indicates that a non-numeric string is to be converted to a number.
Definition: NotNumericException.idl:31