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 .
20 #ifndef INCLUDED_SFX2_SOURCE_VIEW_VIEWIMP_HXX
21 #define INCLUDED_SFX2_SOURCE_VIEW_VIEWIMP_HXX
24 #include <sfx2/viewsh.hxx>
25 #include <osl/mutex.hxx>
26 #include <comphelper/interfacecontainer2.hxx>
27 #include <svtools/acceleratorexecute.hxx>
28 #include <rtl/ref.hxx>
29 #include <vcl/print.hxx>
32 class SfxBaseController
;
33 typedef std::vector
<SfxShell
*> SfxShellArr_Impl
;
34 class SfxClipboardChangeListener
;
36 struct SfxViewShell_Impl
39 ::comphelper::OInterfaceContainerHelper2 aInterceptorContainer
;
40 SfxShellArr_Impl aArr
;
42 bool m_bHasPrintOptions
;
44 ::rtl::Reference
<SfxBaseController
> m_pController
;
45 std::unique_ptr
<::svt::AcceleratorExecute
> m_xAccExec
;
46 ::rtl::Reference
<SfxClipboardChangeListener
> xClipboardListener
;
47 std::shared_ptr
<vcl::PrinterController
> m_xPrinterController
;
49 mutable std::unique_ptr
<std::vector
<SfxInPlaceClient
*>> mpIPClients
;
51 LibreOfficeKitCallback m_pLibreOfficeKitViewCallback
;
52 void* m_pLibreOfficeKitViewData
;
53 /// Set if we are in the middle of a tiled search.
54 bool m_bTiledSearching
;
55 static sal_uInt32 m_nLastViewShellId
;
56 const ViewShellId m_nViewShellId
;
57 const ViewShellDocId m_nDocId
;
59 explicit SfxViewShell_Impl(SfxViewShellFlags
const nFlags
, ViewShellDocId nDocId
);
62 std::vector
<SfxInPlaceClient
*>* GetIPClients_Impl(bool bCreate
= true) const;
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */