LibreOffice Module sc (master)  1
drtxtob.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 
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_DRTXTOB_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_DRTXTOB_HXX
22 
23 #include <sfx2/shell.hxx>
24 #include <tools/link.hxx>
25 #include <rtl/ref.hxx>
26 
27 #include <shellids.hxx>
28 
29 sal_uInt16 ScGetFontWorkId(); // instead of SvxFontWorkChildWindow::GetChildWindowId()
30 
31 class SfxModule;
32 class ScViewData;
35 
37 {
41 
42  DECL_LINK( ClipboardChanged, TransferableDataHelper*, void );
43 
44 public:
46 
47 private:
49  static void InitInterface_Impl();
50 
51 public:
53  virtual ~ScDrawTextObjectBar() override;
54 
55  static void StateDisableItems( SfxItemSet &rSet );
56 
57  void Execute( SfxRequest &rReq );
58  void ExecuteTrans( const SfxRequest& rReq );
59  void GetState( SfxItemSet& rSet );
60  void GetClipState( SfxItemSet& rSet );
61 
62  void ExecuteAttr( SfxRequest &rReq );
63  void GetAttrState( SfxItemSet& rSet );
64  void ExecuteToggle( SfxRequest &rReq );
66 
67  bool ExecuteCharDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet , sal_uInt16 nSlot);
68  bool ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
69 
70  void ExecuteExtra( SfxRequest &rReq );
71  void ExecFormText(const SfxRequest& rReq); // StarFontWork
72  void GetFormTextState(SfxItemSet& rSet);
73 
74 private:
75  void ExecuteGlobal( SfxRequest &rReq ); // called by Execute for all objects
76  static void GetGlobalClipState( SfxItemSet& rSet );
77  void ExecutePasteContents( SfxRequest &rReq );
78  bool IsNoteEdit() const;
79 };
80 
81 #endif
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void ExecuteToggle(SfxRequest &rReq)
Definition: drtxtob.cxx:547
bool IsNoteEdit() const
Definition: drtxtob2.cxx:42
static void InitInterface_Impl()
SfxInterface initializer.
Definition: drtxtob.cxx:82
DECL_LINK(ClipboardChanged, TransferableDataHelper *, void)
static void StateDisableItems(SfxItemSet &rSet)
Definition: drtxtob.cxx:96
void ExecuteExtra(SfxRequest &rReq)
Definition: drtxtob2.cxx:127
void ExecuteAttr(SfxRequest &rReq)
Definition: drtxtob.cxx:663
#define SCID_DRAW_TEXT_SHELL
Definition: shellids.hxx:30
void ExecFormText(const SfxRequest &rReq)
Definition: drtxtob2.cxx:175
void GetFormTextState(SfxItemSet &rSet)
Definition: drtxtob2.cxx:192
void ExecutePasteContents(SfxRequest &rReq)
Definition: drtxtob1.cxx:100
void GetClipState(SfxItemSet &rSet)
Definition: drtxtob.cxx:487
ScViewData & mrViewData
Definition: drtxtob.hxx:38
void Execute(SfxRequest &rReq)
Definition: drtxtob.cxx:141
void ExecuteTrans(const SfxRequest &rReq)
Definition: drtxtob.cxx:1171
static void GetGlobalClipState(SfxItemSet &rSet)
Definition: drtxtob2.cxx:112
sal_uInt16 ScGetFontWorkId()
Definition: drtxtob2.cxx:37
rtl::Reference< TransferableClipboardListener > mxClipEvtLstnr
Definition: drtxtob.hxx:39
void ExecuteGlobal(SfxRequest &rReq)
Definition: drtxtob2.cxx:49
bool ExecuteParaDlg(const SfxItemSet &rArgs, SfxItemSet &rOutSet)
Definition: drtxtob1.cxx:63
void GetStatePropPanelAttr(SfxItemSet &)
Definition: drtxtob.cxx:1190
void GetState(SfxItemSet &rSet)
Definition: drtxtob.cxx:362
void GetAttrState(SfxItemSet &rSet)
Definition: drtxtob.cxx:962
bool ExecuteCharDlg(const SfxItemSet &rArgs, SfxItemSet &rOutSet, sal_uInt16 nSlot)
Definition: drtxtob1.cxx:40
#define SFX_DECL_INTERFACE(nId)