/* -*- 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 INCLUDED_SW_INC_SWMODULE_HXX #define INCLUDED_SW_INC_SWMODULE_HXX
class Color; class SfxItemSet; class SfxRequest; class SfxErrorHandler; class SwDBConfig; class SwModuleOptions; class SwMasterUsrPref; class SwViewOption; class SwView; class SwWrtShell; class SwPrintOptions; class SwChapterNumRules; class SwStdFontConfig; class SwNavigationConfig; class SwTransferable; class SwToolbarConfigItem; namespace svtools{ class ColorConfig;} class SvtUserOptions; enumclass SwCompareMode; struct SwDBData; namespace tools { class JsonWriter; }
enumclass SvViewOpt {
DestView,
DestText,
DestWeb,
DestViewOnly //ViewOptions are set only at View, not at the appl.
};
namespace com::sun::star::scanner { class XScannerManager2; } namespace com::sun::star::linguistic2 { class XLanguageGuessing; } namespace ooo::vba { class XSinkCaller; } class SwLinguServiceEventListener; class SwTableAutoFormatTable;
class SAL_DLLPUBLIC_RTTI SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener
{
OUString m_sActAuthor;
// Current view is held here in order to avoid one's being forced // to work via GetActiveView. // View is valid until destroyed in Activate or exchanged.
SwView* m_pView;
// List of all Redline-authors.
std::vector<OUString> m_pAuthorNames;
// DictionaryList listener to trigger spellchecking or hyphenation
rtl::Reference< SwLinguServiceEventListener > m_xLinguServiceEventListener;
css::uno::Reference< css::scanner::XScannerManager2 > m_xScannerManager;
css::uno::Reference< css::linguistic2::XLanguageGuessing > m_xLanguageGuesser;
public: // This Ctor only for SW-Dll.
SwModule( SfxObjectFactory* pFact,
SfxObjectFactory* pWebFact,
SfxObjectFactory* pGlobalFact );
virtual ~SwModule() override;
// Set view for internal use only. It is public only for technical reasons. void SetView(SwView* pVw) { m_pView = pVw; }
SwView* GetView() { return m_pView; }
// Handler for slots. void StateOther(SfxItemSet &);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.