docthemes: Save themes def. to a file when added to ColorSets
[LibreOffice.git] / sw / source / uibase / inc / annotsh.hxx
blob5d25efecdb7f71dded726564fed04cbf58d46ea7
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 .
19 #pragma once
21 #include <sfx2/shell.hxx>
22 #include <shellid.hxx>
23 #include <swmodule.hxx>
24 #include <unotools/caserotate.hxx>
26 class SwView;
27 class OutlinerView;
29 class SwAnnotationShell final : public SfxShell
31 SwView& m_rView;
32 RotateTransliteration m_aRotateCase;
34 public:
35 SFX_DECL_INTERFACE(SW_ANNOTATIONSHELL)
37 private:
38 /// SfxInterface initializer.
39 static void InitInterface_Impl();
41 public:
42 SwAnnotationShell(SwView&);
43 virtual ~SwAnnotationShell() override;
45 static void StateDisableItems(SfxItemSet &);
46 void Exec(SfxRequest &);
48 void GetState(SfxItemSet &);
49 void StateInsert(SfxItemSet &rSet);
51 void NoteExec(SfxRequest const &);
52 void GetNoteState(SfxItemSet &);
54 void ExecLingu(SfxRequest &rReq);
55 void GetLinguState(SfxItemSet &);
57 void ExecClpbrd(SfxRequest const &rReq);
58 void StateClpbrd(SfxItemSet &rSet);
60 void ExecTransliteration(SfxRequest const &);
61 void ExecRotateTransliteration(SfxRequest const &);
63 void ExecUndo(SfxRequest &rReq);
64 void StateUndo(SfxItemSet &rSet);
66 static void StateStatusLine(SfxItemSet &rSet);
68 void InsertSymbol(SfxRequest& rReq);
70 void ExecSearch(SfxRequest&);
71 void StateSearch(SfxItemSet &);
73 virtual SfxUndoManager*
74 GetUndoManager() override;
76 static SfxItemPool* GetAnnotationPool(SwView const & rV);
78 private:
79 void ExecPost(SfxRequest& rReq, sal_uInt16 nEEWhich, SfxItemSet& rNewAttr, OutlinerView* pOLV );
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */