xref: /trunk/main/sc/source/ui/inc/drtxtob.hxx (revision d9a8b508)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SC_DRTXTOB_HXX
25 #define SC_DRTXTOB_HXX
26 
27 #ifndef _SFX_HXX
28 #endif
29 
30 #include <sfx2/shell.hxx>
31 #include <sfx2/module.hxx>
32 #include <tools/link.hxx>
33 
34 #include "shellids.hxx"
35 
36 sal_uInt16 ScGetFontWorkId();		// statt SvxFontWorkChildWindow::GetChildWindowId()
37 
38 class ScViewData;
39 class TransferableDataHelper;
40 class TransferableClipboardListener;
41 
42 class ScDrawTextObjectBar : public SfxShell
43 {
44 	ScViewData*			pViewData;
45 	TransferableClipboardListener* pClipEvtLstnr;
46 	sal_Bool				bPastePossible;
47 
48 	DECL_LINK( ClipboardChanged, TransferableDataHelper* );
49 
50 public:
51 	TYPEINFO();
52 	SFX_DECL_INTERFACE(SCID_DRAW_TEXT_SHELL)
53 
54 		ScDrawTextObjectBar(ScViewData* pData);
55 		~ScDrawTextObjectBar();
56 
57 	void StateDisableItems( SfxItemSet &rSet );
58 
59 	void Execute( SfxRequest &rReq );
60 	void ExecuteTrans( SfxRequest& rReq );
61 	void GetState( SfxItemSet& rSet );
62 	void GetClipState( SfxItemSet& rSet );
63 
64 	void ExecuteAttr( SfxRequest &rReq );
65 	void GetAttrState( SfxItemSet& rSet );
66 	void ExecuteToggle( SfxRequest &rReq );
67 
68 	sal_Bool ExecuteCharDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet , sal_uInt16 nSlot);
69 	sal_Bool ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
70 
71 	void ExecuteExtra( SfxRequest &rReq );
72 	void ExecFormText(SfxRequest& rReq);		// StarFontWork
73 	void GetFormTextState(SfxItemSet& rSet);
74 
75 private:
76 	void ExecuteGlobal( SfxRequest &rReq );			// von Execute gerufen fuer ganze Objekte
77 	void GetGlobalClipState( SfxItemSet& rSet );
78 	void ExecutePasteContents( SfxRequest &rReq );
79 	sal_Bool IsNoteEdit();
80 };
81 
82 
83 
84 #endif
85 
86