xref: /trunk/main/sc/source/ui/drawfunc/futext2.cxx (revision b3f79822)
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 // TOOLS
32 #define _BIGINT_HXX
33 #define _SFXMULTISEL_HXX
34 #define _STACK_HXX
35 #define _QUEUE_HXX
36 #define _DYNARR_HXX
37 #define _TREELIST_HXX
38 #define _CACHESTR_HXX
39 #define _NEW_HXX
40 //#define _SHL_HXX
41 //#define _LINK_HXX
42 //#define _ERRCODE_HXX
43 //#define _GEN_HXX
44 //#define _FRACT_HXX
45 //#define _STRING_HXX
46 //#define _MTF_HXX
47 //#define _CONTNR_HXX
48 //#define _LIST_HXX
49 //#define _TABLE_HXX
50 #define _DYNARY_HXX
51 //#define _UNQIDX_HXX
52 #define _SVMEMPOOL_HXX
53 //#define _UNQID_HXX
54 //#define _DEBUG_HXX
55 //#define _DATE_HXX
56 //#define _TIME_HXX
57 //#define _DATETIME_HXX
58 //#define _INTN_HXX
59 //#define _WLDCRD_HXX
60 //#define _FSYS_HXX
61 //#define _STREAM_HXX
62 #define _CACHESTR_HXX
63 #define _SV_MULTISEL_HXX
64 
65 //SV
66 //#define _CLIP_HXX ***
67 #define _CONFIG_HXX
68 #define _CURSOR_HXX
69 #define _FONTDLG_HXX
70 #define _PRVWIN_HXX
71 //#define _COLOR_HXX
72 //#define _PAL_HXX
73 //#define _BITMAP_HXX
74 //#define _GDIOBJ_HXX
75 //#define _POINTR_HXX
76 //#define _ICON_HXX
77 //#define _IMAGE_HXX
78 //#define _KEYCOD_HXX
79 //#define _EVENT_HXX
80 #define _HELP_HXX
81 //#define _APP_HXX
82 //#define _MDIAPP_HXX
83 //#define _TIMER_HXX
84 //#define _METRIC_HXX
85 //#define _REGION_HXX
86 //#define _OUTDEV_HXX
87 //#define _SYSTEM_HXX
88 //#define _VIRDEV_HXX
89 //#define _JOBSET_HXX
90 //#define _PRINT_HXX
91 //#define _WINDOW_HXX
92 //#define _SYSWIN_HXX
93 //#define _WRKWIN_HXX
94 #define _MDIWIN_HXX
95 //#define _FLOATWIN_HXX
96 //#define _DOCKWIN_HXX
97 //#define _CTRL_HXX
98 //#define _SCRBAR_HXX
99 //#define _BUTTON_HXX
100 //#define _IMAGEBTN_HXX
101 //#define _FIXED_HXX
102 //#define _GROUP_HXX
103 //#define _EDIT_HXX
104 //#define _COMBOBOX_HXX
105 //#define _LSTBOX_HXX
106 //#define _SELENG_HXX ***
107 //#define _SPLIT_HXX
108 #define _SPIN_HXX
109 //#define _FIELD_HXX
110 //#define _MOREBTN_HXX ***
111 //#define _TOOLBOX_HXX
112 #define _STATUS_HXX
113 #define _SVTCTRL3_HXX
114 //#define _DIALOG_HXX
115 //#define _MSGBOX_HXX
116 //#define _SYSDLG_HXX
117 //#define _FILDLG_HXX ***
118 //#define _PRNDLG_HXX
119 #define _COLDLG_HXX
120 //#define _TABDLG_HXX
121 //#define _MENU_HXX ***
122 //#define _GDIMTF_HXX
123 //#define _POLY_HXX
124 //#define _ACCEL_HXX
125 //#define _GRAPH_HXX
126 #define _SOUND_HXX
127 
128 //svtools
129 #define _SCRWIN_HXX
130 #define _RULER_HXX
131 //#define _TABBAR_HXX
132 //#define _VALUESET_HXX
133 #define _STDMENU_HXX
134 //#define _STDCTRL_HXX
135 //#define _CTRLBOX_HXX
136 #define _CTRLTOOL_HXX
137 #define _EXTATTR_HXX
138 #define _FRM3D_HXX
139 #define _EXTATTR_HXX
140 
141 //SVTOOLS
142 //#define _SVTREELIST_HXX
143 #define _FILTER_HXX
144 //#define _SVLBOXITM_HXX
145 //#define _SVTREEBOX_HXX
146 #define _SVICNVW_HXX
147 #define _SVTABBX_HXX
148 
149 //sfxcore.hxx
150 //#define _SFXINIMGR_HXX
151 //#define _SFXCFGITEM_HXX
152 //#define _SFX_PRINTER_HXX
153 #define _SFXGENLINK_HXX
154 #define _SFXHINTPOST_HXX
155 #define _SFXDOCINF_HXX
156 #define _SFXLINKHDL_HXX
157 //#define _SFX_PROGRESS_HXX
158 
159 //sfxsh.hxx
160 //#define _SFX_SHELL_HXX
161 //#define _SFXAPP_HXX
162 //#define _SFXDISPATCH_HXX
163 //#define _SFXMSG_HXX
164 //#define _SFXOBJFACE_HXX
165 //#define _SFXREQUEST_HXX
166 #define _SFXMACRO_HXX
167 
168 // SFX
169 //#define _SFXAPPWIN_HXX
170 #define _SFX_SAVEOPT_HXX
171 //#define _SFX_CHILDWIN_HXX
172 //#define _SFXCTRLITEM_HXX
173 #define _SFXPRNMON_HXX
174 #define _INTRO_HXX
175 #define _SFXMSGDESCR_HXX
176 #define _SFXMSGPOOL_HXX
177 #define _SFXFILEDLG_HXX
178 #define _PASSWD_HXX
179 #define _SFXTBXCTRL_HXX
180 #define _SFXSTBITEM_HXX
181 #define _SFXMNUITEM_HXX
182 #define _SFXIMGMGR_HXX
183 #define _SFXTBXMGR_HXX
184 #define _SFXSTBMGR_HXX
185 #define _SFX_MINFITEM_HXX
186 #define _SFXEVENT_HXX
187 
188 //sfxdoc.hxx
189 //#define _SFX_OBJSH_HXX
190 //#define _SFX_CLIENTSH_HXX
191 //#define _SFXDOCINF_HXX
192 //#define _SFX_OBJFAC_HXX
193 #define _SFX_DOCFILT_HXX
194 //#define _SFXDOCFILE_HXX
195 //define _VIEWFAC_HXX
196 //#define _SFXVIEWFRM_HXX
197 //#define _SFXVIEWSH_HXX
198 //#define _MDIFRM_HXX
199 #define _SFX_IPFRM_HXX
200 //#define _SFX_INTERNO_HXX
201 
202 //sfxdlg.hxx
203 //#define _SFXTABDLG_HXX
204 //#define _BASEDLGS_HXX
205 #define _SFX_DINFDLG_HXX
206 #define _SFXDINFEDT_HXX
207 #define _SFX_MGETEMPL_HXX
208 #define _SFX_TPLPITEM_HXX
209 //#define _SFX_STYLEDLG_HXX
210 #define _NEWSTYLE_HXX
211 //#define _SFXDOCTEMPL_HXX
212 //#define _SFXDOCTDLG_HXX
213 //#define _SFX_TEMPLDLG_HXX
214 //#define _SFXNEW_HXX
215 #define _SFXDOCMAN_HXX
216 //#define _SFXDOCKWIN_HXX **
217 
218 //sfxitems.hxx
219 #define _SFX_WHMAP_HXX
220 //#define _ARGS_HXX ***
221 //#define _SFXPOOLITEM_HXX
222 //#define _SFXINTITEM_HXX
223 //#define _SFXENUMITEM_HXX
224 #define _SFXFLAGITEM_HXX
225 //#define _SFXSTRITEM_HXX
226 #define _SFXPTITEM_HXX
227 #define _SFXRECTITEM_HXX
228 //#define _SFXITEMPOOL_HXX
229 //#define _SFXITEMSET_HXX
230 #define _SFXITEMITER_HXX
231 #define _SFX_WHITER_HXX
232 #define _SFXPOOLCACH_HXX
233 //#define _AEITEM_HXX
234 #define _SFXRNGITEM_HXX
235 //#define _SFXSLSTITM_HXX
236 //#define _SFXSTYLE_HXX
237 
238 //xout.hxx
239 //#define _XENUM_HXX
240 //#define _XPOLY_HXX
241 //#define _XATTR_HXX
242 //#define _XOUTX_HXX
243 //#define _XPOOL_HXX
244 //#define _XTABLE_HXX
245 
246 //svdraw.hxx
247 #define _SDR_NOITEMS
248 #define _SDR_NOTOUCH
249 #define _SDR_NOTRANSFORM
250 //#define _SDR_NOOBJECTS
251 //#define _SDR_NOVIEWS
252 
253 //#define SI_NOITEMS
254 //#define SI_NODRW
255 #define _SI_NOSBXCONTROLS
256 #define _VCATTR_HXX
257 #define _VCONT_HXX
258 //#define _VCSBX_HXX ***
259 #define _SI_NOOTHERFORMS
260 #define _VCTRLS_HXX
261 //#define _VCDRWOBJ_HXX ***
262 #define _SI_NOCONTROL
263 #define _SETBRW_HXX
264 #define _VCBRW_HXX
265 #define _SI_NOSBXCONTROLS
266 #define _SIDLL_HXX
267 
268 //------------------------------------------------------------------------
269 
270 #include <svx/svdmodel.hxx>
271 #include <svx/svdoutl.hxx>
272 #include <svx/svdetc.hxx>
273 
274 #include "futext.hxx"
275 #include "tabvwsh.hxx"
276 
277 //------------------------------------------------------------------------
278 
MakeOutliner()279 SdrOutliner* FuText::MakeOutliner()
280 {
281 	ScViewData* pViewData = pViewShell->GetViewData();
282 	SdrOutliner* pOutl = SdrMakeOutliner(OUTLINERMODE_OUTLINEOBJECT, pDrDoc);
283 
284 	pViewData->UpdateOutlinerFlags(*pOutl);
285 
286 	//	Die EditEngine benutzt beim RTF Export (Clipboard / Drag&Drop)
287 	//	den MapMode des RefDevices, um die Fontgroesse zu setzen
288 
289 	//	#i10426# The ref device isn't set to the EditEngine before SdrBeginTextEdit now,
290 	//	so the device must be taken from the model here.
291 	OutputDevice* pRef = pDrDoc->GetRefDevice();
292 	if (pRef && pRef != pWindow)
293 		pRef->SetMapMode( MapMode(MAP_100TH_MM) );
294 
295 	return pOutl;
296 }
297 
298 
299 
300