bump product version to 4.1.6.2
[LibreOffice.git] / dbaccess / source / ui / inc / LimitBox.hxx
blob3958402417ade959b2cef2e9c39323a3c7471f01
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/.
8 */
10 #ifndef LIMIT_BOX_HXX
11 #define LIMIT_BOX_HXX
13 #include <vcl/field.hxx>
14 #include <rtl/ustring.hxx>
16 namespace dbaui
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
23 class LimitBox: public NumericBox
25 public:
26 LimitBox( Window* pParent, WinBits nStyle );
27 virtual ~LimitBox();
29 virtual OUString CreateFieldText( sal_Int64 nValue ) const;
31 virtual void Reformat();
32 virtual void ReformatAll();
34 virtual Size GetOptimalSize() const;
36 private:
37 void LoadDefaultLimits();
40 } ///dbaui namespace
42 #endif ///LIMIT_BOX_HXX
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */