Line data Source code
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 : #include <com/sun/star/uno/Reference.hxx>
21 : #include <com/sun/star/frame/XDesktop.hpp>
22 : #include <com/sun/star/util/XURLTransformer.hpp>
23 : #include <com/sun/star/beans/PropertyValue.hpp>
24 : #include <com/sun/star/beans/XPropertySet.hpp>
25 : #include <com/sun/star/util/XFlushable.hpp>
26 :
27 : #include <stdlib.h>
28 : #include <vcl/msgbox.hxx>
29 : #include <tools/string.hxx>
30 : #include <svl/itempool.hxx>
31 : #include <svl/aeitem.hxx>
32 : #include <svl/slstitm.hxx>
33 : #include <svl/stritem.hxx>
34 : #include <svl/intitem.hxx>
35 : #include <svl/eitem.hxx>
36 : #include <svl/szitem.hxx>
37 : #include <svl/undo.hxx>
38 :
39 : #include <sfx2/sfxsids.hrc>
40 : #include <sot/exchange.hxx>
41 :
42 : #include <svl/isethint.hxx>
43 :
44 : #include <officecfg/Inet.hxx>
45 : #include <officecfg/Office/Common.hxx>
46 : #include <unotools/configmgr.hxx>
47 : #include <tools/urlobj.hxx>
48 : #include <unotools/saveopt.hxx>
49 : #include <svtools/helpopt.hxx>
50 : #include <unotools/securityoptions.hxx>
51 : #include <unotools/pathoptions.hxx>
52 : #include <svtools/miscopt.hxx>
53 : #include <vcl/toolbox.hxx>
54 : #include <unotools/localfilehelper.hxx>
55 : #include <rtl/strbuf.hxx>
56 : #include <rtl/ustrbuf.hxx>
57 :
58 : #include <sfx2/app.hxx>
59 : #include <sfx2/docfile.hxx>
60 : #include <sfx2/viewfrm.hxx>
61 : #include "sfx2/sfxhelp.hxx"
62 : #include "sfxtypes.hxx"
63 : #include <sfx2/dispatch.hxx>
64 : #include <sfx2/objsh.hxx>
65 : #include "objshimp.hxx"
66 : #include <sfx2/viewsh.hxx>
67 : #include <sfx2/request.hxx>
68 : #include <sfx2/evntconf.hxx>
69 : #include "appdata.hxx"
70 : #include "workwin.hxx"
71 : #include "helper.hxx" // SfxContentHelper::...
72 : #include "app.hrc"
73 : #include "sfx2/sfxresid.hxx"
74 : #include "shutdownicon.hxx"
75 :
76 : using namespace ::com::sun::star::uno;
77 : using namespace ::com::sun::star::util;
78 : using namespace ::com::sun::star::frame;
79 : using namespace ::com::sun::star::beans;
80 :
81 : //-------------------------------------------------------------------------
82 :
83 : class SfxEventAsyncer_Impl : public SfxListener
84 : {
85 : SfxEventHint aHint;
86 : Timer* pTimer;
87 :
88 : public:
89 :
90 : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
91 : SfxEventAsyncer_Impl( const SfxEventHint& rHint );
92 : ~SfxEventAsyncer_Impl();
93 : DECL_LINK( TimerHdl, Timer*);
94 : };
95 :
96 : // -----------------------------------------------------------------------
97 :
98 8044 : void SfxEventAsyncer_Impl::Notify( SfxBroadcaster&, const SfxHint& rHint )
99 : {
100 8044 : SfxSimpleHint* pHint = PTR_CAST( SfxSimpleHint, &rHint );
101 8044 : if( pHint && pHint->GetId() == SFX_HINT_DYING && pTimer->IsActive() )
102 : {
103 418 : pTimer->Stop();
104 418 : delete this;
105 : }
106 8044 : }
107 :
108 : // -----------------------------------------------------------------------
109 :
110 1449 : SfxEventAsyncer_Impl::SfxEventAsyncer_Impl( const SfxEventHint& rHint )
111 1449 : : aHint( rHint )
112 : {
113 1449 : if( rHint.GetObjShell() )
114 1449 : StartListening( *rHint.GetObjShell() );
115 1449 : pTimer = new Timer;
116 1449 : pTimer->SetTimeoutHdl( LINK(this, SfxEventAsyncer_Impl, TimerHdl) );
117 1449 : pTimer->SetTimeout( 0 );
118 1449 : pTimer->Start();
119 1449 : }
120 :
121 : // -----------------------------------------------------------------------
122 :
123 4341 : SfxEventAsyncer_Impl::~SfxEventAsyncer_Impl()
124 : {
125 1447 : delete pTimer;
126 2894 : }
127 :
128 : // -----------------------------------------------------------------------
129 :
130 2058 : IMPL_LINK(SfxEventAsyncer_Impl, TimerHdl, Timer*, pAsyncTimer)
131 : {
132 : (void)pAsyncTimer; // unused variable
133 1029 : SfxObjectShellRef xRef( aHint.GetObjShell() );
134 1029 : pAsyncTimer->Stop();
135 : #ifdef DBG_UTIL
136 : if (!xRef.Is())
137 : {
138 : OStringBuffer aTmp(RTL_CONSTASCII_STRINGPARAM("SfxEvent: "));
139 : aTmp.append(OUStringToOString(aHint.GetEventName(), RTL_TEXTENCODING_UTF8));
140 : OSL_TRACE( "%s", aTmp.getStr() );
141 : }
142 : #endif
143 1029 : SFX_APP()->Broadcast( aHint );
144 1029 : if ( xRef.Is() )
145 1029 : xRef->Broadcast( aHint );
146 1029 : delete this;
147 1029 : return 0L;
148 : }
149 :
150 :
151 : //--------------------------------------------------------------------
152 :
153 0 : sal_Bool SfxApplication::GetOptions( SfxItemSet& rSet )
154 : {
155 0 : sal_Bool bRet = sal_False;
156 0 : SfxItemPool &rPool = GetPool();
157 :
158 0 : const sal_uInt16 *pRanges = rSet.GetRanges();
159 0 : SvtSaveOptions aSaveOptions;
160 0 : SvtHelpOptions aHelpOptions;
161 0 : SvtSecurityOptions aSecurityOptions;
162 0 : SvtMiscOptions aMiscOptions;
163 :
164 0 : while ( *pRanges )
165 : {
166 0 : for(sal_uInt16 nWhich = *pRanges++; nWhich <= *pRanges; ++nWhich)
167 : {
168 0 : switch(nWhich)
169 : {
170 : case SID_ATTR_BUTTON_OUTSTYLE3D :
171 0 : if(rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_BUTTON_OUTSTYLE3D ),
172 0 : aMiscOptions.GetToolboxStyle() != TOOLBOX_STYLE_FLAT)))
173 0 : bRet = sal_True;
174 0 : break;
175 : case SID_ATTR_BUTTON_BIGSIZE :
176 : {
177 0 : if( rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_BUTTON_BIGSIZE ), aMiscOptions.AreCurrentSymbolsLarge() ) ) )
178 0 : bRet = sal_True;
179 0 : break;
180 : }
181 : case SID_ATTR_BACKUP :
182 : {
183 0 : bRet = sal_True;
184 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_BACKUP))
185 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_BACKUP ),aSaveOptions.IsBackup())))
186 0 : bRet = sal_False;
187 : }
188 0 : break;
189 : case SID_ATTR_PRETTYPRINTING:
190 : {
191 0 : bRet = sal_True;
192 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_DOPRETTYPRINTING))
193 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), aSaveOptions.IsPrettyPrinting())))
194 0 : bRet = sal_False;
195 : }
196 0 : break;
197 : case SID_ATTR_WARNALIENFORMAT:
198 : {
199 0 : bRet = sal_True;
200 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_WARNALIENFORMAT))
201 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_WARNALIENFORMAT ), aSaveOptions.IsWarnAlienFormat())))
202 0 : bRet = sal_False;
203 : }
204 0 : break;
205 : case SID_ATTR_AUTOSAVE :
206 : {
207 0 : bRet = sal_True;
208 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_AUTOSAVE))
209 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_AUTOSAVE ), aSaveOptions.IsAutoSave())))
210 0 : bRet = sal_False;
211 : }
212 0 : break;
213 : case SID_ATTR_AUTOSAVEPROMPT :
214 : {
215 0 : bRet = sal_True;
216 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_AUTOSAVEPROMPT))
217 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_AUTOSAVEPROMPT ), aSaveOptions.IsAutoSavePrompt())))
218 0 : bRet = sal_False;
219 : }
220 0 : break;
221 : case SID_ATTR_AUTOSAVEMINUTE :
222 : {
223 0 : bRet = sal_True;
224 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_AUTOSAVETIME))
225 0 : if (!rSet.Put( SfxUInt16Item( rPool.GetWhich( SID_ATTR_AUTOSAVEMINUTE ), (sal_uInt16)aSaveOptions.GetAutoSaveTime())))
226 0 : bRet = sal_False;
227 : }
228 0 : break;
229 : case SID_ATTR_USERAUTOSAVE :
230 : {
231 0 : bRet = sal_True;
232 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_USERAUTOSAVE))
233 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_USERAUTOSAVE ), aSaveOptions.IsUserAutoSave())))
234 0 : bRet = sal_False;
235 : }
236 0 : break;
237 : case SID_ATTR_DOCINFO :
238 : {
239 0 : bRet = sal_True;
240 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_DOCINFSAVE))
241 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_DOCINFO ), aSaveOptions.IsDocInfoSave())))
242 0 : bRet = sal_False;
243 : }
244 0 : break;
245 : case SID_ATTR_WORKINGSET :
246 : {
247 0 : bRet = sal_True;
248 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_SAVEWORKINGSET))
249 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_WORKINGSET ), aSaveOptions.IsSaveWorkingSet())))
250 0 : bRet = sal_False;
251 : }
252 0 : break;
253 : case SID_ATTR_SAVEDOCVIEW :
254 : {
255 0 : bRet = sal_True;
256 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_SAVEDOCVIEW))
257 0 : if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_SAVEDOCVIEW ), aSaveOptions.IsSaveDocView())))
258 0 : bRet = sal_False;
259 : }
260 0 : break;
261 : case SID_ATTR_METRIC :
262 0 : break;
263 : case SID_HELPBALLOONS :
264 0 : if(rSet.Put( SfxBoolItem ( rPool.GetWhich( SID_HELPBALLOONS ),
265 0 : aHelpOptions.IsExtendedHelp() ) ) )
266 0 : bRet = sal_True;
267 0 : break;
268 : case SID_HELPTIPS :
269 0 : if(rSet.Put( SfxBoolItem ( rPool.GetWhich( SID_HELPTIPS ),
270 0 : aHelpOptions.IsHelpTips() ) ) )
271 0 : bRet = sal_True;
272 0 : break;
273 : case SID_ATTR_WELCOMESCREEN :
274 0 : if(rSet.Put( SfxBoolItem ( rPool.GetWhich( SID_ATTR_WELCOMESCREEN ),
275 0 : aHelpOptions.IsWelcomeScreen() ) ) )
276 0 : bRet = sal_True;
277 0 : break;
278 : case SID_HELP_STYLESHEET :
279 0 : if(rSet.Put( SfxStringItem ( rPool.GetWhich( SID_HELP_STYLESHEET ),
280 0 : aHelpOptions.GetHelpStyleSheet() ) ) )
281 0 : bRet = sal_True;
282 0 : break;
283 : case SID_ATTR_UNDO_COUNT :
284 0 : if (rSet.Put(
285 : SfxUInt16Item (
286 0 : rPool.GetWhich(SID_ATTR_UNDO_COUNT),
287 0 : officecfg::Office::Common::Undo::Steps::get())))
288 : {
289 0 : bRet = true;
290 : }
291 0 : break;
292 : case SID_ATTR_QUICKLAUNCHER :
293 : {
294 0 : if ( ShutdownIcon::IsQuickstarterInstalled() )
295 : {
296 0 : if ( rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_QUICKLAUNCHER ),
297 0 : ShutdownIcon::GetAutostart() ) ) )
298 0 : bRet = sal_True;
299 : }
300 : else
301 : {
302 0 : rSet.DisableItem( rPool.GetWhich( SID_ATTR_QUICKLAUNCHER ) );
303 0 : bRet = sal_True;
304 : }
305 0 : break;
306 : }
307 : case SID_SAVEREL_INET :
308 : {
309 0 : bRet = sal_True;
310 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_SAVERELINET))
311 0 : if (!rSet.Put( SfxBoolItem ( rPool.GetWhich( SID_SAVEREL_INET ), aSaveOptions.IsSaveRelINet() )))
312 0 : bRet = sal_False;
313 : }
314 0 : break;
315 : case SID_SAVEREL_FSYS :
316 : {
317 0 : bRet = sal_True;
318 0 : if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_SAVERELFSYS))
319 0 : if (!rSet.Put( SfxBoolItem ( rPool.GetWhich( SID_SAVEREL_FSYS ), aSaveOptions.IsSaveRelFSys() )))
320 0 : bRet = sal_False;
321 : }
322 0 : break;
323 : case SID_BASIC_ENABLED :
324 : {
325 0 : bRet = sal_True;
326 0 : if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_BASICMODE))
327 : {
328 0 : if ( !rSet.Put( SfxUInt16Item( rPool.GetWhich( SID_BASIC_ENABLED ), sal::static_int_cast< sal_uInt16 >(aSecurityOptions.GetBasicMode()))))
329 0 : bRet = sal_False;
330 : }
331 : }
332 0 : break;
333 : case SID_INET_EXE_PLUGIN :
334 : {
335 0 : bRet = sal_True;
336 0 : if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_EXECUTEPLUGINS))
337 : {
338 0 : if ( !rSet.Put( SfxBoolItem( SID_INET_EXE_PLUGIN, aSecurityOptions.IsExecutePlugins() ) ) )
339 0 : bRet = sal_False;
340 : }
341 : }
342 0 : break;
343 : case SID_MACRO_WARNING :
344 : {
345 0 : bRet = sal_True;
346 0 : if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_WARNING))
347 : {
348 0 : if ( !rSet.Put( SfxBoolItem( SID_MACRO_WARNING, aSecurityOptions.IsWarningEnabled() ) ) )
349 0 : bRet = sal_False;
350 : }
351 : }
352 0 : break;
353 : case SID_MACRO_CONFIRMATION :
354 : {
355 0 : bRet = sal_True;
356 0 : if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_CONFIRMATION))
357 : {
358 0 : if ( !rSet.Put( SfxBoolItem( SID_MACRO_CONFIRMATION, aSecurityOptions.IsConfirmationEnabled() ) ) )
359 0 : bRet = sal_False;
360 : }
361 : }
362 0 : break;
363 : case SID_SECURE_URL :
364 : {
365 0 : bRet = sal_True;
366 0 : if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_SECUREURLS))
367 : {
368 0 : ::com::sun::star::uno::Sequence< OUString > seqURLs = aSecurityOptions.GetSecureURLs();
369 0 : std::vector<OUString> aList;
370 0 : sal_uInt32 nCount = seqURLs.getLength();
371 0 : for( sal_uInt32 nURL=0; nURL<nCount; ++nURL )
372 0 : aList.push_back(seqURLs[nURL]);
373 :
374 0 : if( !rSet.Put( SfxStringListItem( rPool.GetWhich(SID_SECURE_URL), &aList ) ) )
375 0 : bRet = sal_False;
376 : }
377 : }
378 0 : break;
379 : case SID_INET_PROXY_TYPE :
380 0 : if (rSet.Put(
381 : SfxUInt16Item(
382 0 : rPool.GetWhich(SID_INET_PROXY_TYPE),
383 : (officecfg::Inet::Settings::ooInetProxyType::
384 0 : get().get_value_or(0)))))
385 : {
386 0 : bRet = true;
387 : }
388 0 : break;
389 : case SID_INET_HTTP_PROXY_NAME :
390 0 : if (rSet.Put(
391 : SfxStringItem(
392 0 : rPool.GetWhich(SID_INET_HTTP_PROXY_NAME),
393 : officecfg::Inet::Settings::ooInetHTTPProxyName::
394 0 : get())))
395 : {
396 0 : bRet = true;
397 : }
398 0 : break;
399 : case SID_INET_HTTP_PROXY_PORT :
400 0 : if (rSet.Put(
401 : SfxInt32Item(
402 0 : rPool.GetWhich(SID_INET_HTTP_PROXY_PORT),
403 : (officecfg::Inet::Settings::
404 0 : ooInetHTTPProxyPort::get().get_value_or(0)))))
405 : {
406 0 : bRet = true;
407 : }
408 0 : break;
409 : case SID_INET_FTP_PROXY_NAME :
410 0 : if (rSet.Put(
411 : SfxStringItem(
412 0 : rPool.GetWhich(SID_INET_FTP_PROXY_NAME),
413 : officecfg::Inet::Settings::ooInetFTPProxyName::
414 0 : get())))
415 : {
416 0 : bRet = true;
417 : }
418 0 : break;
419 : case SID_INET_FTP_PROXY_PORT :
420 0 : if (rSet.Put(
421 : SfxInt32Item(
422 0 : rPool.GetWhich(SID_INET_FTP_PROXY_PORT),
423 : (officecfg::Inet::Settings::ooInetFTPProxyPort::
424 0 : get().get_value_or(0)))))
425 : {
426 0 : bRet = true;
427 : }
428 0 : break;
429 : case SID_INET_NOPROXY :
430 0 : if (rSet.Put(
431 : SfxStringItem(
432 0 : rPool.GetWhich( SID_INET_NOPROXY),
433 : (officecfg::Inet::Settings::ooInetNoProxy::
434 0 : get()))))
435 : {
436 0 : bRet = true;
437 : }
438 0 : break;
439 : case SID_ATTR_PATHNAME :
440 : case SID_ATTR_PATHGROUP :
441 : {
442 0 : SfxAllEnumItem aNames(rPool.GetWhich(SID_ATTR_PATHGROUP));
443 0 : SfxAllEnumItem aValues(rPool.GetWhich(SID_ATTR_PATHNAME));
444 0 : SvtPathOptions aPathCfg;
445 0 : for ( sal_uInt16 nProp = SvtPathOptions::PATH_ADDIN;
446 : nProp <= SvtPathOptions::PATH_WORK; nProp++ )
447 : {
448 0 : aNames.InsertValue( nProp, SfxResId(CONFIG_PATH_START + nProp).toString() );
449 0 : OUString aValue;
450 0 : switch ( nProp )
451 : {
452 0 : case SvtPathOptions::PATH_ADDIN: ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aPathCfg.GetAddinPath(), aValue ); break;
453 0 : case SvtPathOptions::PATH_AUTOCORRECT: aValue = aPathCfg.GetAutoCorrectPath(); break;
454 0 : case SvtPathOptions::PATH_AUTOTEXT: aValue = aPathCfg.GetAutoTextPath(); break;
455 0 : case SvtPathOptions::PATH_BACKUP: aValue = aPathCfg.GetBackupPath(); break;
456 0 : case SvtPathOptions::PATH_BASIC: aValue = aPathCfg.GetBasicPath(); break;
457 0 : case SvtPathOptions::PATH_BITMAP: aValue = aPathCfg.GetBitmapPath(); break;
458 0 : case SvtPathOptions::PATH_CONFIG: aValue = aPathCfg.GetConfigPath(); break;
459 0 : case SvtPathOptions::PATH_DICTIONARY: aValue = aPathCfg.GetDictionaryPath(); break;
460 0 : case SvtPathOptions::PATH_FAVORITES: aValue = aPathCfg.GetFavoritesPath(); break;
461 0 : case SvtPathOptions::PATH_FILTER: ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aPathCfg.GetFilterPath(), aValue ); break;
462 0 : case SvtPathOptions::PATH_GALLERY: aValue = aPathCfg.GetGalleryPath(); break;
463 0 : case SvtPathOptions::PATH_GRAPHIC: aValue = aPathCfg.GetGraphicPath(); break;
464 0 : case SvtPathOptions::PATH_HELP: ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aPathCfg.GetHelpPath(), aValue ); break;
465 0 : case SvtPathOptions::PATH_LINGUISTIC: aValue = aPathCfg.GetLinguisticPath(); break;
466 0 : case SvtPathOptions::PATH_MODULE: ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aPathCfg.GetModulePath(), aValue ); break;
467 0 : case SvtPathOptions::PATH_PALETTE: aValue = aPathCfg.GetPalettePath(); break;
468 0 : case SvtPathOptions::PATH_PLUGIN: ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aPathCfg.GetPluginPath(), aValue ); break;
469 0 : case SvtPathOptions::PATH_STORAGE: ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aPathCfg.GetStoragePath(), aValue ); break;
470 0 : case SvtPathOptions::PATH_TEMP: aValue = aPathCfg.GetTempPath(); break;
471 0 : case SvtPathOptions::PATH_TEMPLATE: aValue = aPathCfg.GetTemplatePath(); break;
472 0 : case SvtPathOptions::PATH_USERCONFIG: aValue = aPathCfg.GetUserConfigPath(); break;
473 0 : case SvtPathOptions::PATH_WORK: aValue = aPathCfg.GetWorkPath(); break;
474 : }
475 0 : aValues.InsertValue( nProp, aValue );
476 0 : }
477 :
478 0 : if ( rSet.Put(aNames) || rSet.Put(aValues) )
479 0 : bRet = sal_True;
480 : }
481 :
482 : default:
483 : DBG_WARNING( "W1:Wrong ID while getting Options!" );
484 0 : break;
485 : }
486 : #ifdef DBG_UTIL
487 : if ( !bRet )
488 : OSL_FAIL( "Putting options failed!" );
489 : #endif
490 : }
491 0 : pRanges++;
492 : }
493 :
494 0 : return bRet;
495 : }
496 :
497 : //--------------------------------------------------------------------
498 0 : sal_Bool SfxApplication::IsSecureURL( const INetURLObject& rURL, const String* pReferer ) const
499 : {
500 0 : return SvtSecurityOptions().IsSecureURL( rURL.GetMainURL( INetURLObject::NO_DECODE ), *pReferer );
501 : }
502 : //--------------------------------------------------------------------
503 : // TODO/CLEANUP: Why two SetOptions Methods?
504 0 : void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet )
505 : {
506 0 : const SfxPoolItem *pItem = 0;
507 0 : SfxItemPool &rPool = GetPool();
508 :
509 0 : SvtSaveOptions aSaveOptions;
510 0 : SvtHelpOptions aHelpOptions;
511 0 : SvtSecurityOptions aSecurityOptions;
512 0 : SvtMiscOptions aMiscOptions;
513 : boost::shared_ptr< comphelper::ConfigurationChanges > batch(
514 0 : comphelper::ConfigurationChanges::create());
515 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_BUTTON_OUTSTYLE3D), sal_True, &pItem) )
516 : {
517 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
518 : sal_uInt16 nOutStyle =
519 0 : ( (const SfxBoolItem *)pItem)->GetValue() ? 0 : TOOLBOX_STYLE_FLAT;
520 0 : aMiscOptions.SetToolboxStyle( nOutStyle );
521 : }
522 :
523 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_BUTTON_BIGSIZE), sal_True, &pItem) )
524 : {
525 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
526 0 : sal_Bool bBigSize = ( (const SfxBoolItem*)pItem )->GetValue();
527 : aMiscOptions.SetSymbolsSize(
528 : sal::static_int_cast< sal_Int16 >(
529 0 : bBigSize ? SFX_SYMBOLS_SIZE_LARGE : SFX_SYMBOLS_SIZE_SMALL ) );
530 0 : SfxViewFrame* pCurrViewFrame = SfxViewFrame::GetFirst();
531 0 : while ( pCurrViewFrame )
532 : {
533 : // update all "final" dispatchers
534 0 : if ( !pCurrViewFrame->GetActiveChildFrame_Impl() )
535 0 : pCurrViewFrame->GetDispatcher()->Update_Impl(sal_True);
536 0 : pCurrViewFrame = SfxViewFrame::GetNext(*pCurrViewFrame);
537 : }
538 : }
539 :
540 : // Backup
541 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_BACKUP), sal_True, &pItem) )
542 : {
543 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
544 0 : aSaveOptions.SetBackup( ( (const SfxBoolItem*)pItem )->GetValue() );
545 : }
546 :
547 : // PrettyPrinting
548 0 : if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), sal_True, &pItem ) )
549 : {
550 : DBG_ASSERT( pItem->ISA( SfxBoolItem ), "BoolItem expected" );
551 0 : aSaveOptions.SetPrettyPrinting( static_cast< const SfxBoolItem*> ( pItem )->GetValue() );
552 : }
553 :
554 : // WarnAlienFormat
555 0 : if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_ATTR_WARNALIENFORMAT ), sal_True, &pItem ) )
556 : {
557 : DBG_ASSERT( pItem->ISA( SfxBoolItem ), "BoolItem expected" );
558 0 : aSaveOptions.SetWarnAlienFormat( static_cast< const SfxBoolItem*> ( pItem )->GetValue() );
559 : }
560 :
561 : // AutoSave
562 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_AUTOSAVE), sal_True, &pItem))
563 : {
564 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
565 0 : aSaveOptions.SetAutoSave( ( (const SfxBoolItem*)pItem )->GetValue() );
566 : }
567 :
568 : // AutoSave-Propt
569 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_AUTOSAVEPROMPT), sal_True, &pItem))
570 : {
571 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
572 0 : aSaveOptions.SetAutoSavePrompt(((const SfxBoolItem *)pItem)->GetValue());
573 : }
574 :
575 : // AutoSave-Time
576 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_AUTOSAVEMINUTE), sal_True, &pItem))
577 : {
578 : DBG_ASSERT(pItem->ISA(SfxUInt16Item), "UInt16Item expected");
579 0 : aSaveOptions.SetAutoSaveTime(((const SfxUInt16Item *)pItem)->GetValue());
580 : }
581 :
582 : // UserAutoSave
583 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_USERAUTOSAVE), sal_True, &pItem))
584 : {
585 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
586 0 : aSaveOptions.SetUserAutoSave( ( (const SfxBoolItem*)pItem )->GetValue() );
587 : }
588 :
589 : // DocInfo
590 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_DOCINFO), sal_True, &pItem))
591 : {
592 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
593 0 : aSaveOptions.SetDocInfoSave(((const SfxBoolItem *)pItem)->GetValue());
594 : }
595 :
596 : // Mark open Documents
597 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_WORKINGSET), sal_True, &pItem))
598 : {
599 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
600 0 : aSaveOptions.SetSaveWorkingSet(((const SfxBoolItem *)pItem)->GetValue());
601 : }
602 :
603 : // Save window settings
604 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_SAVEDOCVIEW), sal_True, &pItem))
605 : {
606 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
607 0 : aSaveOptions.SetSaveDocView(((const SfxBoolItem *)pItem)->GetValue());
608 : }
609 :
610 : // Metric
611 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_METRIC), sal_True, &pItem))
612 : {
613 : DBG_ASSERT(pItem->ISA(SfxUInt16Item), "UInt16Item expected");
614 : }
615 :
616 : // HelpBalloons
617 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_HELPBALLOONS), sal_True, &pItem))
618 : {
619 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
620 0 : aHelpOptions.SetExtendedHelp(((const SfxBoolItem *)pItem)->GetValue());
621 : }
622 :
623 : // HelpTips
624 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_HELPTIPS), sal_True, &pItem))
625 : {
626 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
627 0 : aHelpOptions.SetHelpTips(((const SfxBoolItem *)pItem)->GetValue());
628 : }
629 :
630 : // WelcomeScreen
631 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_WELCOMESCREEN ), sal_True, &pItem))
632 : {
633 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
634 0 : aHelpOptions.SetWelcomeScreen( ((const SfxBoolItem *)pItem)->GetValue() );
635 : }
636 :
637 : // WelcomeScreen
638 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_WELCOMESCREEN_RESET ), sal_True, &pItem))
639 : {
640 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
641 0 : sal_Bool bReset = ((const SfxBoolItem *)pItem)->GetValue();
642 : if ( bReset )
643 : {
644 : OSL_FAIL( "Not implemented, may be EOL!" );
645 : } }
646 :
647 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_HELP_STYLESHEET ), sal_True, &pItem))
648 : {
649 : DBG_ASSERT(pItem->ISA(SfxStringItem), "StringItem expected");
650 0 : aHelpOptions.SetHelpStyleSheet( ((const SfxStringItem *)pItem)->GetValue() );
651 : }
652 :
653 : // SaveRelINet
654 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_SAVEREL_INET), sal_True, &pItem))
655 : {
656 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
657 0 : aSaveOptions.SetSaveRelINet(((const SfxBoolItem *)pItem)->GetValue());
658 : }
659 :
660 : // SaveRelFSys
661 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_SAVEREL_FSYS), sal_True, &pItem))
662 : {
663 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
664 0 : aSaveOptions.SetSaveRelFSys(((const SfxBoolItem *)pItem)->GetValue());
665 : }
666 :
667 : // Undo-Count
668 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_UNDO_COUNT), sal_True, &pItem))
669 : {
670 : DBG_ASSERT(pItem->ISA(SfxUInt16Item), "UInt16Item expected");
671 0 : sal_uInt16 nUndoCount = ((const SfxUInt16Item*)pItem)->GetValue();
672 0 : officecfg::Office::Common::Undo::Steps::set(nUndoCount, batch);
673 :
674 : // To catch all Undo-Managers: Iterate over all Frames
675 0 : for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst();
676 : pFrame;
677 : pFrame = SfxViewFrame::GetNext(*pFrame) )
678 : {
679 : // Get the Dispatcher of the Frames
680 0 : SfxDispatcher *pDispat = pFrame->GetDispatcher();
681 0 : pDispat->Flush();
682 :
683 : // Iterate over all SfxShells on the Dispatchers Stack
684 0 : sal_uInt16 nIdx = 0;
685 0 : for ( SfxShell *pSh = pDispat->GetShell(nIdx);
686 : pSh;
687 0 : ++nIdx, pSh = pDispat->GetShell(nIdx) )
688 : {
689 0 : ::svl::IUndoManager *pShUndoMgr = pSh->GetUndoManager();
690 0 : if ( pShUndoMgr )
691 0 : pShUndoMgr->SetMaxUndoActionCount( nUndoCount );
692 : }
693 : }
694 : }
695 :
696 : // Office autostart
697 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_QUICKLAUNCHER), sal_True, &pItem))
698 : {
699 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
700 0 : ShutdownIcon::SetAutostart( ( (const SfxBoolItem*)pItem )->GetValue() != sal_False );
701 : }
702 :
703 : // StarBasic Enable
704 0 : if ( SFX_ITEM_SET == rSet.GetItemState(SID_BASIC_ENABLED, sal_True, &pItem))
705 : {
706 : DBG_ASSERT(pItem->ISA(SfxUInt16Item), "SfxInt16Item expected");
707 0 : aSecurityOptions.SetBasicMode( (EBasicSecurityMode)( (const SfxUInt16Item*)pItem )->GetValue() );
708 : }
709 :
710 : // Execute PlugIns
711 0 : if ( SFX_ITEM_SET == rSet.GetItemState(SID_INET_EXE_PLUGIN, sal_True, &pItem))
712 : {
713 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "SfxBoolItem expected");
714 0 : aSecurityOptions.SetExecutePlugins( ( (const SfxBoolItem *)pItem )->GetValue() );
715 : }
716 :
717 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_INET_PROXY_TYPE), sal_True, &pItem))
718 : {
719 : DBG_ASSERT( pItem->ISA(SfxUInt16Item), "UInt16Item expected" );
720 : officecfg::Inet::Settings::ooInetProxyType::set(
721 0 : static_cast< SfxUInt16Item const * >(pItem)->GetValue(), batch);
722 : }
723 :
724 0 : if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_INET_HTTP_PROXY_NAME ), sal_True, &pItem ) )
725 : {
726 : DBG_ASSERT( pItem->ISA(SfxStringItem), "StringItem expected" );
727 : officecfg::Inet::Settings::ooInetHTTPProxyName::set(
728 0 : static_cast< SfxStringItem const * >(pItem)->GetValue(), batch);
729 : }
730 0 : if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_INET_HTTP_PROXY_PORT ), sal_True, &pItem ) )
731 : {
732 : DBG_ASSERT( pItem->ISA(SfxInt32Item), "Int32Item expected" );
733 : officecfg::Inet::Settings::ooInetHTTPProxyPort::set(
734 0 : static_cast< SfxInt32Item const * >(pItem)->GetValue(), batch);
735 : }
736 0 : if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_INET_FTP_PROXY_NAME ), sal_True, &pItem ) )
737 : {
738 : DBG_ASSERT( pItem->ISA(SfxStringItem), "StringItem expected" );
739 : officecfg::Inet::Settings::ooInetFTPProxyName::set(
740 0 : static_cast< SfxStringItem const * >(pItem)->GetValue(), batch);
741 : }
742 0 : if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_INET_FTP_PROXY_PORT ), sal_True, &pItem ) )
743 : {
744 : DBG_ASSERT( pItem->ISA(SfxInt32Item), "Int32Item expected" );
745 : officecfg::Inet::Settings::ooInetFTPProxyPort::set(
746 0 : static_cast< SfxInt32Item const * >(pItem)->GetValue(), batch);
747 : }
748 0 : if ( SFX_ITEM_SET == rSet.GetItemState(SID_INET_NOPROXY, sal_True, &pItem))
749 : {
750 : DBG_ASSERT(pItem->ISA(SfxStringItem), "StringItem expected");
751 : officecfg::Inet::Settings::ooInetNoProxy::set(
752 0 : static_cast< SfxStringItem const * >(pItem)->GetValue(), batch);
753 : }
754 :
755 : // Secure-Referers
756 0 : if ( SFX_ITEM_SET == rSet.GetItemState(SID_SECURE_URL, sal_True, &pItem))
757 : {
758 : DBG_ASSERT(pItem->ISA(SfxStringListItem), "StringListItem expected");
759 0 : ::com::sun::star::uno::Sequence< OUString > seqURLs;
760 0 : ((SfxStringListItem*)pItem)->GetStringList(seqURLs);
761 0 : aSecurityOptions.SetSecureURLs( seqURLs );
762 : }
763 :
764 0 : if ( SFX_ITEM_SET == rSet.GetItemState(SID_MACRO_WARNING, sal_True, &pItem))
765 : {
766 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "SfxBoolItem expected");
767 0 : aSecurityOptions.SetWarningEnabled( ( (const SfxBoolItem *)pItem )->GetValue() );
768 : }
769 0 : if ( SFX_ITEM_SET == rSet.GetItemState(SID_MACRO_CONFIRMATION, sal_True, &pItem))
770 : {
771 : DBG_ASSERT(pItem->ISA(SfxBoolItem), "SfxBoolItem expected");
772 0 : aSecurityOptions.SetConfirmationEnabled( ( (const SfxBoolItem *)pItem )->GetValue() );
773 : }
774 :
775 : // Store changed data
776 0 : batch->commit();
777 0 : }
778 :
779 : //--------------------------------------------------------------------
780 0 : void SfxApplication::SetOptions(const SfxItemSet &rSet)
781 : {
782 0 : SvtPathOptions aPathOptions;
783 :
784 : // Data is saved in DocInfo and IniManager
785 0 : const SfxPoolItem *pItem = 0;
786 0 : SfxItemPool &rPool = GetPool();
787 :
788 0 : SfxAllItemSet aSendSet( rSet );
789 :
790 : // PathName
791 0 : if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_PATHNAME), sal_True, &pItem))
792 : {
793 : DBG_ASSERT(pItem->ISA(SfxAllEnumItem), "AllEnumItem expected");
794 0 : const SfxAllEnumItem* pEnumItem = (const SfxAllEnumItem *)pItem;
795 0 : sal_uInt32 nCount = pEnumItem->GetValueCount();
796 0 : OUString aNoChangeStr( ' ' );
797 0 : for( sal_uInt32 nPath=0; nPath<nCount; ++nPath )
798 : {
799 0 : OUString sValue = pEnumItem->GetValueTextByPos((sal_uInt16)nPath);
800 0 : if ( sValue != aNoChangeStr )
801 : {
802 0 : switch( nPath )
803 : {
804 : case SvtPathOptions::PATH_ADDIN:
805 : {
806 0 : OUString aTmp;
807 0 : if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
808 0 : aPathOptions.SetAddinPath( aTmp );
809 0 : break;
810 : }
811 :
812 0 : case SvtPathOptions::PATH_AUTOCORRECT: aPathOptions.SetAutoCorrectPath( sValue );break;
813 0 : case SvtPathOptions::PATH_AUTOTEXT: aPathOptions.SetAutoTextPath( sValue );break;
814 0 : case SvtPathOptions::PATH_BACKUP: aPathOptions.SetBackupPath( sValue );break;
815 0 : case SvtPathOptions::PATH_BASIC: aPathOptions.SetBasicPath( sValue );break;
816 0 : case SvtPathOptions::PATH_BITMAP: aPathOptions.SetBitmapPath( sValue );break;
817 0 : case SvtPathOptions::PATH_CONFIG: aPathOptions.SetConfigPath( sValue );break;
818 0 : case SvtPathOptions::PATH_DICTIONARY: aPathOptions.SetDictionaryPath( sValue );break;
819 0 : case SvtPathOptions::PATH_FAVORITES: aPathOptions.SetFavoritesPath( sValue );break;
820 : case SvtPathOptions::PATH_FILTER:
821 : {
822 0 : OUString aTmp;
823 0 : if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
824 0 : aPathOptions.SetFilterPath( aTmp );
825 0 : break;
826 : }
827 0 : case SvtPathOptions::PATH_GALLERY: aPathOptions.SetGalleryPath( sValue );break;
828 0 : case SvtPathOptions::PATH_GRAPHIC: aPathOptions.SetGraphicPath( sValue );break;
829 : case SvtPathOptions::PATH_HELP:
830 : {
831 0 : OUString aTmp;
832 0 : if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
833 0 : aPathOptions.SetHelpPath( aTmp );
834 0 : break;
835 : }
836 :
837 0 : case SvtPathOptions::PATH_LINGUISTIC: aPathOptions.SetLinguisticPath( sValue );break;
838 : case SvtPathOptions::PATH_MODULE:
839 : {
840 0 : OUString aTmp;
841 0 : if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
842 0 : aPathOptions.SetModulePath( aTmp );
843 0 : break;
844 : }
845 :
846 0 : case SvtPathOptions::PATH_PALETTE: aPathOptions.SetPalettePath( sValue );break;
847 : case SvtPathOptions::PATH_PLUGIN:
848 : {
849 0 : OUString aTmp;
850 0 : if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
851 0 : aPathOptions.SetPluginPath( aTmp );
852 0 : break;
853 : }
854 :
855 : case SvtPathOptions::PATH_STORAGE:
856 : {
857 0 : OUString aTmp;
858 0 : if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( sValue, aTmp ) )
859 0 : aPathOptions.SetStoragePath( aTmp );
860 0 : break;
861 : }
862 :
863 0 : case SvtPathOptions::PATH_TEMP: aPathOptions.SetTempPath( sValue );break;
864 0 : case SvtPathOptions::PATH_TEMPLATE: aPathOptions.SetTemplatePath( sValue );break;
865 0 : case SvtPathOptions::PATH_USERCONFIG: aPathOptions.SetUserConfigPath( sValue );break;
866 0 : case SvtPathOptions::PATH_WORK: aPathOptions.SetWorkPath( sValue );break;
867 : default: SAL_WARN( "sfx2.appl", "SfxApplication::SetOptions_Impl() Invalid path number found for set directories!" );
868 : }
869 : }
870 0 : }
871 :
872 0 : aSendSet.ClearItem( rPool.GetWhich( SID_ATTR_PATHNAME ) );
873 : }
874 :
875 0 : SetOptions_Impl( rSet );
876 :
877 : // Undo-Count
878 0 : Broadcast( SfxItemSetHint( rSet ) );
879 0 : }
880 :
881 : //--------------------------------------------------------------------
882 14453 : void SfxApplication::NotifyEvent( const SfxEventHint& rEventHint, bool bSynchron )
883 : {
884 14453 : SfxObjectShell *pDoc = rEventHint.GetObjShell();
885 14453 : if ( pDoc && ( pDoc->IsPreview() || !pDoc->Get_Impl()->bInitialized ) )
886 17103 : return;
887 :
888 11803 : if ( bSynchron )
889 : {
890 : #ifdef DBG_UTIL
891 : if (!pDoc)
892 : {
893 : OStringBuffer aTmp(RTL_CONSTASCII_STRINGPARAM("SfxEvent: "));
894 : aTmp.append(OUStringToOString(rEventHint.GetEventName(), RTL_TEXTENCODING_UTF8));
895 : OSL_TRACE( "%s", aTmp.getStr() );
896 : }
897 : #endif
898 10354 : Broadcast(rEventHint);
899 10354 : if ( pDoc )
900 10354 : pDoc->Broadcast( rEventHint );
901 : }
902 : else
903 1449 : new SfxEventAsyncer_Impl( rEventHint );
904 : }
905 :
906 31441 : IMPL_OBJHINT( SfxStringHint, String )
907 :
908 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|