Bump version to 24.04.3.4
[LibreOffice.git] / sfx2 / source / view / viewimp.hxx
blobaa0394591069fe1fd69daff6820308d036ab346d
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 INCLUDED_SFX2_SOURCE_VIEW_VIEWIMP_HXX
21 #define INCLUDED_SFX2_SOURCE_VIEW_VIEWIMP_HXX
23 #include <com/sun/star/ui/XContextMenuInterceptor.hpp>
24 #include <memory>
25 #include <sfx2/viewsh.hxx>
26 #include <mutex>
27 #include <comphelper/interfacecontainer4.hxx>
28 #include <svtools/acceleratorexecute.hxx>
29 #include <rtl/ref.hxx>
30 #include <vcl/print.hxx>
31 #include <chrono>
32 #include <vector>
34 class SfxBaseController;
35 typedef std::vector<SfxShell*> SfxShellArr_Impl;
36 class SfxClipboardChangeListener;
38 struct SfxViewShell_Impl
40 std::mutex aMutex;
41 ::comphelper::OInterfaceContainerHelper4<css::ui::XContextMenuInterceptor>
42 aInterceptorContainer;
43 SfxShellArr_Impl aArr;
44 Size aMargin;
45 OUString m_sDefaultPrinterName;
46 std::chrono::steady_clock::time_point m_nDefaultPrinterNameFetchTime;
47 bool m_bHasPrintOptions;
48 sal_uInt16 m_nFamily;
49 ::rtl::Reference<SfxBaseController> m_pController;
50 std::unique_ptr<::svt::AcceleratorExecute> m_xAccExec;
51 ::rtl::Reference<SfxClipboardChangeListener> xClipboardListener;
52 std::shared_ptr<vcl::PrinterController> m_xPrinterController;
54 mutable std::vector<SfxInPlaceClient*> maIPClients;
56 SfxLokCallbackInterface* m_pLibreOfficeKitViewCallback;
57 /// Set if we are in the middle of a tiled search.
58 bool m_bTiledSearching;
59 static sal_uInt32 m_nLastViewShellId;
60 const ViewShellId m_nViewShellId;
61 const ViewShellDocId m_nDocId;
63 explicit SfxViewShell_Impl(SfxViewShellFlags const nFlags, ViewShellDocId nDocId);
64 ~SfxViewShell_Impl();
66 std::vector<SfxInPlaceClient*>& GetIPClients_Impl();
69 #endif
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */