Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / mtrindlg.hxx
blobbea11af46d31c56ec761e4138a1c6f8a1597fdfe
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 .
20 #ifndef SC_MTRINDLG_HXX
21 #define SC_MTRINDLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/field.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/fixed.hxx>
29 //------------------------------------------------------------------------
31 class ScMetricInputDlg : public ModalDialog
33 public:
34 ScMetricInputDlg( Window* pParent,
35 sal_uInt16 nResId, // Ableitung fuer jeden Dialog!
36 long nCurrent,
37 long nDefault,
38 FieldUnit eFUnit = FUNIT_MM,
39 sal_uInt16 nDecimals = 2,
40 long nMaximum = 1000,
41 long nMinimum = 0,
42 long nFirst = 1,
43 long nLast = 100 );
44 ~ScMetricInputDlg();
46 long GetInputValue( FieldUnit eUnit = FUNIT_TWIP ) const;
48 private:
49 FixedText aFtEditTitle;
50 MetricField aEdValue;
51 CheckBox aBtnDefVal;
52 OKButton aBtnOk;
53 CancelButton aBtnCancel;
54 HelpButton aBtnHelp;
55 long nDefaultValue;
56 long nCurrentValue;
58 void CalcPositions();
59 DECL_LINK(SetDefValHdl, void *);
60 DECL_LINK(ModifyHdl, void *);
63 #endif // SC_MTRINDLG_HXX
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */