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 <svtools/recorditemwindow.hxx>
25 class SvxFmAbsRecWin final
: public RecordItemWindow
28 SvxFmAbsRecWin(vcl::Window
* _pParent
, SfxToolBoxControl
* _pController
);
31 virtual void PositionFired(sal_Int64 nRecord
) override
;
33 SfxToolBoxControl
* m_pController
;
36 class SvxFmTbxCtlAbsRec final
: public SfxToolBoxControl
39 SFX_DECL_TOOLBOX_CONTROL();
41 SvxFmTbxCtlAbsRec(sal_uInt16 nSlotId
, ToolBoxItemId nId
, ToolBox
& rTbx
);
42 virtual ~SvxFmTbxCtlAbsRec() override
;
44 virtual VclPtr
<InterimItemWindow
> CreateItemWindow(vcl::Window
* pParent
) override
;
46 virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID
, SfxItemState eState
,
47 const SfxPoolItem
* pState
) override
;
50 class SvxFmTbxCtlRecText final
: public SfxToolBoxControl
53 SFX_DECL_TOOLBOX_CONTROL();
55 SvxFmTbxCtlRecText(sal_uInt16 nSlotId
, ToolBoxItemId nId
, ToolBox
& rTbx
);
56 virtual ~SvxFmTbxCtlRecText() override
;
58 virtual VclPtr
<InterimItemWindow
> CreateItemWindow(vcl::Window
* pParent
) override
;
61 class SvxFmTbxCtlRecFromText final
: public SfxToolBoxControl
64 SFX_DECL_TOOLBOX_CONTROL();
66 SvxFmTbxCtlRecFromText(sal_uInt16 nSlotId
, ToolBoxItemId nId
, ToolBox
& rTbx
);
67 virtual ~SvxFmTbxCtlRecFromText() override
;
69 virtual VclPtr
<InterimItemWindow
> CreateItemWindow(vcl::Window
* pParent
) override
;
72 class LabelItemWindow
;
74 class SvxFmTbxCtlRecTotal final
: public SfxToolBoxControl
76 VclPtr
<LabelItemWindow
> m_xFixedText
;
79 SFX_DECL_TOOLBOX_CONTROL();
81 SvxFmTbxCtlRecTotal(sal_uInt16 nSlotId
, ToolBoxItemId nId
, ToolBox
& rTbx
);
82 virtual ~SvxFmTbxCtlRecTotal() override
;
84 virtual VclPtr
<InterimItemWindow
> CreateItemWindow(vcl::Window
* pParent
) override
;
85 virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID
, SfxItemState eState
,
86 const SfxPoolItem
* pState
) override
;
89 class SvxFmTbxNextRec final
: public SfxToolBoxControl
92 SFX_DECL_TOOLBOX_CONTROL();
93 SvxFmTbxNextRec(sal_uInt16 nSlotId
, ToolBoxItemId nId
, ToolBox
& rTbx
);
96 class SvxFmTbxPrevRec final
: public SfxToolBoxControl
99 SFX_DECL_TOOLBOX_CONTROL();
100 SvxFmTbxPrevRec(sal_uInt16 nSlotId
, ToolBoxItemId nId
, ToolBox
& rTbx
);
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */