Files
libreoffice/dbaccess/source/ui/inc/LimitBox.hxx
Zolnai Tamás 33933867b0 fdo#61797 ESCape abort changes and grab focus
Handling of hitting enter or escape are only
usefull for toolbar element.
In a dialog these keys have other meanings
(close the dialog with/without saving)

Change-Id: Ifbe5d36daab9c0702b888a58403dc170082fc32d
2013-03-09 08:20:51 +01:00

45 lines
1.1 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef LIMIT_BOX_HXX
#define LIMIT_BOX_HXX
#include <vcl/field.hxx>
#include <rtl/ustring.hxx>
namespace dbaui
{
/**
* Input box to add limit to an SQL query (maximum number of result's rows)
* This box is reachable on the Query Design Toolbar
*/
class LimitBox: public NumericBox
{
public:
LimitBox( Window* pParent, WinBits nStyle );
virtual ~LimitBox();
virtual OUString CreateFieldText( sal_Int64 nValue ) const;
virtual void Reformat();
virtual void ReformatAll();
virtual Size GetOptimalSize() const;
private:
void LoadDefaultLimits();
};
} ///dbaui namespace
#endif ///LIMIT_BOX_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */