1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
19 #ifndef INCLUDED_SVX_SOURCE_INC_TBXFORM_HXX
20 #define INCLUDED_SVX_SOURCE_INC_TBXFORM_HXX
22 #include <sfx2/tbxctrl.hxx>
23 #include <vcl/field.hxx>
25 class SvxFmAbsRecWin final
: public NumericField
28 SvxFmAbsRecWin( vcl::Window
* _pParent
, SfxToolBoxControl
* _pController
);
30 virtual void KeyInput( const KeyEvent
& rKeyEvt
) override
;
31 virtual void LoseFocus() override
;
34 void FirePosition( bool _bForce
);
36 SfxToolBoxControl
* m_pController
;
37 // for invalidating our content when losing the focus
42 class SvxFmTbxCtlAbsRec
: public SfxToolBoxControl
45 SFX_DECL_TOOLBOX_CONTROL();
47 SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId
, sal_uInt16 nId
, ToolBox
& rTbx
);
48 virtual ~SvxFmTbxCtlAbsRec() override
;
50 virtual VclPtr
<vcl::Window
> CreateItemWindow( vcl::Window
* pParent
) override
;
52 virtual void StateChanged( sal_uInt16 nSID
, SfxItemState eState
,
53 const SfxPoolItem
* pState
) override
;
57 class SvxFmTbxCtlRecText
: public SfxToolBoxControl
60 SFX_DECL_TOOLBOX_CONTROL();
62 SvxFmTbxCtlRecText( sal_uInt16 nSlotId
, sal_uInt16 nId
, ToolBox
& rTbx
);
63 virtual ~SvxFmTbxCtlRecText() override
;
65 virtual VclPtr
<vcl::Window
> CreateItemWindow( vcl::Window
* pParent
) override
;
69 class SvxFmTbxCtlRecFromText
: public SfxToolBoxControl
72 SFX_DECL_TOOLBOX_CONTROL();
74 SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId
, sal_uInt16 nId
, ToolBox
& rTbx
);
75 virtual ~SvxFmTbxCtlRecFromText() override
;
77 virtual VclPtr
<vcl::Window
> CreateItemWindow( vcl::Window
* pParent
) override
;
81 class SvxFmTbxCtlRecTotal
: public SfxToolBoxControl
83 VclPtr
<FixedText
> pFixedText
;
86 SFX_DECL_TOOLBOX_CONTROL();
88 SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId
, sal_uInt16 nId
, ToolBox
& rTbx
);
89 virtual ~SvxFmTbxCtlRecTotal() override
;
91 virtual VclPtr
<vcl::Window
> CreateItemWindow( vcl::Window
* pParent
) override
;
92 virtual void StateChanged( sal_uInt16 nSID
, SfxItemState eState
,
93 const SfxPoolItem
* pState
) override
;
97 class SvxFmTbxNextRec
: public SfxToolBoxControl
100 SFX_DECL_TOOLBOX_CONTROL();
101 SvxFmTbxNextRec( sal_uInt16 nSlotId
, sal_uInt16 nId
, ToolBox
& rTbx
);
105 class SvxFmTbxPrevRec
: public SfxToolBoxControl
108 SFX_DECL_TOOLBOX_CONTROL();
109 SvxFmTbxPrevRec( sal_uInt16 nSlotId
, sal_uInt16 nId
, ToolBox
& rTbx
);
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */