1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include <vcl/dllapi.h>
13 #include <vcl/ctrl.hxx>
14 #include <vcl/weld.hxx>
16 class VCL_DLLPUBLIC InterimItemWindow
: public Control
19 virtual ~InterimItemWindow() override
;
20 virtual void dispose() override
;
22 virtual void Resize() override
;
23 virtual Size
GetOptimalSize() const override
;
24 virtual void GetFocus() override
;
27 InterimItemWindow(vcl::Window
* pParent
, const OUString
& rUIXMLDescription
, const OString
& rID
,
28 sal_uInt64 nLOKWindowId
= 0);
30 // pass keystrokes from our child window through this to handle focus changes correctly
31 // returns true if keystroke is consumed
32 bool ChildKeyInput(const KeyEvent
& rKEvt
);
34 std::unique_ptr
<weld::Builder
> m_xBuilder
;
35 VclPtr
<vcl::Window
> m_xVclContentArea
;
36 std::unique_ptr
<weld::Container
> m_xContainer
;
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */