xref: /trunk/main/sc/source/ui/drawfunc/drformsh.cxx (revision f120fe41)
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 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_sc.hxx"
26 
27 
28 
29 //------------------------------------------------------------------
30 
31 #include <editeng/eeitem.hxx>
32 #include <svx/fontwork.hxx>
33 //CHINA001 #include <svx/labdlg.hxx>
34 #include <svl/srchitem.hxx>
35 #include <svx/tabarea.hxx>
36 #include <svx/tabline.hxx>
37 //CHINA001 #include <svx/transfrm.hxx>
38 #include <sfx2/app.hxx>
39 #include <sfx2/objface.hxx>
40 #include <sfx2/request.hxx>
41 #include <svl/whiter.hxx>
42 #include <vcl/msgbox.hxx>
43 
44 #include "drformsh.hxx"
45 #include "drwlayer.hxx"
46 #include "sc.hrc"
47 #include "viewdata.hxx"
48 #include "document.hxx"
49 #include "docpool.hxx"
50 #include "drawview.hxx"
51 #include "scresid.hxx"
52 #include <svx/svdobj.hxx>
53 #include <sfx2/sidebar/EnumContext.hxx>
54 
55 #define ScDrawFormShell
56 #include "scslots.hxx"
57 
58 
SFX_IMPL_INTERFACE(ScDrawFormShell,ScDrawShell,ScResId (SCSTR_DRAWFORMSHELL))59 SFX_IMPL_INTERFACE(ScDrawFormShell, ScDrawShell, ScResId(SCSTR_DRAWFORMSHELL) )
60 {
61 	SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER,
62 								ScResId(RID_OBJECTBAR_FORMAT) );
63 	SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_DRAWFORM) );
64 }
65 
66 TYPEINIT1( ScDrawFormShell, ScDrawShell );
67 
ScDrawFormShell(ScViewData * pData)68 ScDrawFormShell::ScDrawFormShell(ScViewData* pData) :
69 	ScDrawShell(pData)
70 {
71 	SetHelpId(HID_SCSHELL_DRAWFORMSH);
72 	SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("DrawForm")));
73     SfxShell::SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_Form));
74 }
75 
~ScDrawFormShell()76 ScDrawFormShell::~ScDrawFormShell()
77 {
78 }
79