LibreOffice Module sfx2 (master) 1
appdata.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SFX2_SOURCE_INC_APPDATA_HXX
20#define INCLUDED_SFX2_SOURCE_INC_APPDATA_HXX
21
22#include <config_features.h>
23
24#include <rtl/ref.hxx>
25#include <rtl/ustring.hxx>
26#include <svl/svdde.hxx>
27#include <svtools/ehdl.hxx>
28#include <sfx2/app.hxx>
29#include <sfx2/dispatch.hxx>
30#include <sfx2/doctempl.hxx>
31#include <sfx2/fcontnr.hxx>
32#include <sfx2/msgpool.hxx>
33#include <o3tl/enumarray.hxx>
34#include "sfxpicklist.hxx"
35#include <com/sun/star/ui/XAcceleratorConfiguration.hpp>
36
37#include <bitset.hxx>
38#include <memory>
39#include <vector>
40
41class SfxApplication;
42class SfxProgress;
44class DdeService;
45class SfxItemPool;
47class ISfxTemplateCommon;
50class SfxFrame;
51class SfxViewFrame;
52class SfxInterface;
53class BasicManager;
56namespace sfx2::sidebar { class Theme; }
57
58
59
61{
62public:
63 IndexBitSet aIndexBitSet; // for counting noname documents
64 OUString aLastDir; // for IO dialog
65
66 // DDE stuff
67 std::unique_ptr<DdeService> pDdeService;
68 std::vector<SfxDdeDocTopic_Impl*> maDocTopics;
69 std::unique_ptr<SfxDdeTriggerTopic_Impl> pTriggerTopic;
70 std::unique_ptr<DdeService> pDdeService2;
71
72 // single instance classes
73 std::vector<SfxChildWinFactory> maFactories;
74 std::vector<SfxFrame*> vTopFrames;
75
76 // application members
77 std::optional<SfxFilterMatcher> pMatcher;
78 std::optional<SfxErrorHandler> m_pToolsErrorHdl;
79 std::optional<SfxErrorHandler> m_pSoErrorHdl;
80#if HAVE_FEATURE_SCRIPTING
81 std::optional<SfxErrorHandler> m_pSbxErrorHdl;
82#endif
84 std::optional<SfxPickList> mxAppPickList;
85 std::optional<SfxDocumentTemplates> pTemplates;
86
87 // global pointers
89
90 // "current" functionality
92
93 sal_uInt16 nDocModalMode; // counts documents in modal mode
94 sal_uInt16 nRescheduleLocks;
95
96 std::vector<SfxTbxCtrlFactory>
98 std::vector<SfxStbCtrlFactory>
100 std::vector<SfxViewFrame*> maViewFrames;
101 std::vector<SfxViewShell*> maViewShells;
102 std::unordered_map<OUString, css::uno::Reference<css::ui::XAcceleratorConfiguration>> maAcceleratorConfs;
103 std::vector<SfxObjectShell*>
105 std::unique_ptr<SfxBasicManagerHolder>
107 std::unique_ptr<SfxBasicManagerCreationListener>
110 std::optional<SfxSlotPool> pSlotPool;
111 std::optional<SfxDispatcher>
112 pAppDispat; // Dispatcher if no document
114
115 bool bDowning:1; // sal_True on Exit and afterwards
116 bool bInQuit : 1;
117
120
122 void DeInitDDE();
123
125
131};
132
134{
135#if defined(_WIN32)
136public:
138 : DdeTopic( "TRIGGER" )
139 {}
140
141 virtual bool Execute( const OUString* ) override { return true; }
142#endif
143};
144
145#endif // INCLUDED_SFX2_SOURCE_INC_APPDATA_HXX
146
147
148/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DdeTopic(SAL_UNUSED_PARAMETER const OUString &)
virtual bool Execute(const OUString *)
sal_uInt16 nDocModalMode
Definition: appdata.hxx:93
std::vector< SfxViewFrame * > maViewFrames
Definition: appdata.hxx:100
SfxItemPool * pPool
Definition: appdata.hxx:88
void DeInitDDE()
Definition: appdde.cxx:435
std::optional< SfxFilterMatcher > pMatcher
Definition: appdata.hxx:77
OUString aLastDir
Definition: appdata.hxx:64
std::vector< SfxViewShell * > maViewShells
Definition: appdata.hxx:101
::rtl::Reference< sfx2::sidebar::Theme > m_pSidebarTheme
Definition: appdata.hxx:113
rtl::Reference< SfxStatusDispatcher > mxAppDispatch
Definition: appdata.hxx:83
std::optional< SfxDispatcher > pAppDispat
Definition: appdata.hxx:112
std::optional< SfxPickList > mxAppPickList
Definition: appdata.hxx:84
std::optional< SfxSlotPool > pSlotPool
Definition: appdata.hxx:110
IndexBitSet aIndexBitSet
Definition: appdata.hxx:63
std::unique_ptr< DdeService > pDdeService
Definition: appdata.hxx:67
std::vector< SfxFrame * > vTopFrames
Definition: appdata.hxx:74
void OnApplicationBasicManagerCreated(BasicManager &_rManager)
called when the Application's BasicManager has been created.
Definition: appdata.cxx:113
std::optional< SfxDocumentTemplates > pTemplates
Definition: appdata.hxx:85
std::vector< SfxChildWinFactory > maFactories
Definition: appdata.hxx:73
SfxProgress * pProgress
Definition: appdata.hxx:91
std::optional< SfxErrorHandler > m_pToolsErrorHdl
Definition: appdata.hxx:78
sal_uInt16 nRescheduleLocks
Definition: appdata.hxx:94
std::vector< SfxDdeDocTopic_Impl * > maDocTopics
Definition: appdata.hxx:68
std::unique_ptr< SfxDdeTriggerTopic_Impl > pTriggerTopic
Definition: appdata.hxx:69
SfxDocumentTemplates * GetDocumentTemplates()
Definition: appdata.cxx:104
std::unordered_map< OUString, css::uno::Reference< css::ui::XAcceleratorConfiguration > > maAcceleratorConfs
Definition: appdata.hxx:102
SfxViewFrame * pViewFrame
Definition: appdata.hxx:109
std::optional< SfxErrorHandler > m_pSoErrorHdl
Definition: appdata.hxx:79
std::unique_ptr< SfxBasicManagerHolder > pBasicManager
Definition: appdata.hxx:106
std::unique_ptr< DdeService > pDdeService2
Definition: appdata.hxx:70
std::vector< SfxObjectShell * > maObjShells
Definition: appdata.hxx:104
o3tl::enumarray< SfxToolsModule, std::unique_ptr< SfxModule > > aModules
Definition: appdata.hxx:124
std::vector< SfxStbCtrlFactory > maStbCtrlFactories
Definition: appdata.hxx:99
std::unique_ptr< SfxBasicManagerCreationListener > pBasMgrListener
Definition: appdata.hxx:108
std::vector< SfxTbxCtrlFactory > maTbxCtrlFactories
Definition: appdata.hxx:97
helper class which holds and manipulates a BasicManager
Definition: appbaslib.hxx:35
Simple collection of colors, gradients, fonts that define the look of the sidebar and its controls.
Definition: Theme.hxx:44