Line data Source code
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 :
10 : #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_LIMITBOX_HXX
11 : #define INCLUDED_DBACCESS_SOURCE_UI_INC_LIMITBOX_HXX
12 :
13 : #include <vcl/field.hxx>
14 : #include <rtl/ustring.hxx>
15 :
16 : namespace dbaui
17 : {
18 :
19 : /**
20 : * Input box to add limit to an SQL query (maximum number of result's rows)
21 : * This box is reachable on the Query Design Toolbar
22 : */
23 0 : class LimitBox: public NumericBox
24 : {
25 : public:
26 : LimitBox( vcl::Window* pParent, WinBits nStyle );
27 :
28 : virtual OUString CreateFieldText( sal_Int64 nValue ) const SAL_OVERRIDE;
29 :
30 : virtual void Reformat() SAL_OVERRIDE;
31 : virtual void ReformatAll() SAL_OVERRIDE;
32 :
33 : virtual Size GetOptimalSize() const SAL_OVERRIDE;
34 :
35 : private:
36 : void LoadDefaultLimits();
37 : };
38 :
39 : } ///dbaui namespace
40 :
41 : #endif /// INCLUDED_DBACCESS_SOURCE_UI_INC_LIMITBOX_HXX
42 :
43 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|