diff options
Diffstat (limited to 'inc/bf_sch/schmod.hxx')
-rw-r--r-- | inc/bf_sch/schmod.hxx | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/inc/bf_sch/schmod.hxx b/inc/bf_sch/schmod.hxx new file mode 100644 index 000000000..16a6f0559 --- /dev/null +++ b/inc/bf_sch/schmod.hxx @@ -0,0 +1,105 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef _SCHMOD_HXX +#define _SCHMOD_HXX + +#include <bf_svtools/lstner.hxx> + +#include "schdll0.hxx" // fuer SchModuleDummy +#include "schdll.hxx" +#include "objfac.hxx" + +#include "glob.hxx" +#include "schopt.hxx" +class SvFactory; +namespace binfilter { + +class SvxErrorHandler; +class E3dObjFactory; +class SchTransferable; + +/************************************************************************* +|* +|* This subclass of <SfxModule> (which is a subclass of <SfxShell>) is +|* linked to the DLL. One instance of this class exists while the DLL is +|* loaded. +|* +|* SdModule is like to be compared with the <SfxApplication>-subclass. +|* +|* Remember: Don`t export this class! It uses DLL-internal symbols. +|* +\************************************************************************/ + +class SchModule : public SchModuleDummy, public SfxListener +{ +protected: + XOutdevItemPool* pXOutDevPool; + + SchDragServer* pDragData; + SchDragServer* pClipboardData; + // new clipborad format + SchTransferable* mpTransferDragDrop; + SchTransferable* mpTransferClipboard; + SchTransferable* mpTransferSelectionClipbd; + + SchObjFactory* pSchObjFactory; + E3dObjFactory* pE3dFactory; + SchOptions* pChartOptions; + +public: + TYPEINFO(); + + SchModule(SvFactory* pObjFact); + virtual ~SchModule(); + + SchDragServer *GetDragData() { return pDragData; } + void SetDragData(SchDragServer* pData) { pDragData = pData; } + + SchDragServer *GetClipboardData() { return pClipboardData; } + void SetClipboardData(SchDragServer* pData) { pClipboardData = pData; } + + // new clipboard format + SchTransferable* GetDragTransferable() { return mpTransferDragDrop; } + void SetDragTransferable( SchTransferable* pTrans ) { mpTransferDragDrop = pTrans; } + + SchTransferable* GetClipboardTransferable() { return mpTransferClipboard; } + void SetClipboardTransferable( SchTransferable* pTrans) { mpTransferClipboard = pTrans; } + + SchTransferable* GetSelectionClipboardTransferable() { return mpTransferSelectionClipbd; } + void SetSelectionClipboardTransferable( SchTransferable* pTrans) { mpTransferSelectionClipbd = pTrans; } + + SchOptions* GetSchOptions(); + + // virtual methods for options dialog (impl. see appopt.cxx) + + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); +}; + + + + +#ifndef SCH_MOD1 +#define SCH_MOD1() ( *(SchModule**) GetAppData(BF_SHL_SCH) ) +#endif + +} //namespace binfilter +#endif // _SCHMOD_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |