LibreOffice Module sfx2 (master) 1
sfxbasemodel.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#pragma once
21
22#include <sal/config.h>
23#include <sfx2/dllapi.h>
24#include <sal/types.h>
25#include <com/sun/star/frame/XModule.hpp>
26#include <com/sun/star/frame/XTitle.hpp>
27#include <com/sun/star/frame/XTitleChangeBroadcaster.hpp>
28#include <com/sun/star/frame/XUntitledNumbers.hpp>
29#include <com/sun/star/container/XChild.hpp>
30#include <com/sun/star/document/XCmisDocument.hpp>
31#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
32#include <com/sun/star/document/XDocumentRecovery2.hpp>
33#include <com/sun/star/document/XUndoManagerSupplier.hpp>
34#include <com/sun/star/rdf/XDocumentMetadataAccess.hpp>
35#include <com/sun/star/document/XEventBroadcaster.hpp>
36#include <com/sun/star/document/XShapeEventBroadcaster.hpp>
37#include <com/sun/star/document/XDocumentEventBroadcaster.hpp>
38#include <com/sun/star/document/XEventsSupplier.hpp>
39#include <com/sun/star/document/XEmbeddedScripts.hpp>
40#include <com/sun/star/document/XDocumentSubStorageSupplier.hpp>
41#include <com/sun/star/document/XStorageBasedDocument.hpp>
42#include <com/sun/star/document/XScriptInvocationContext.hpp>
43#include <com/sun/star/lang/XEventListener.hpp>
44#include <com/sun/star/frame/XModel3.hpp>
45#include <com/sun/star/util/XModifiable2.hpp>
46#include <com/sun/star/util/XCloseable.hpp>
47#include <com/sun/star/view/XPrintable.hpp>
48#include <com/sun/star/view/XPrintJobBroadcaster.hpp>
49#include <com/sun/star/frame/XStorable2.hpp>
50#include <com/sun/star/frame/XLoadable.hpp>
51#include <com/sun/star/lang/EventObject.hpp>
52#include <com/sun/star/datatransfer/XTransferable.hpp>
53#include <com/sun/star/script/provider/XScriptProviderSupplier.hpp>
54#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
55#include <com/sun/star/embed/XVisualObject.hpp>
56#include <com/sun/star/uno/Sequence.hxx>
57#include <com/sun/star/uno/Reference.hxx>
58#include <com/sun/star/uno/Any.hxx>
60#include <com/sun/star/script/XStarBasicAccess.hpp>
61
62#include <com/sun/star/document/XViewDataSupplier.hpp>
63#include <com/sun/star/lang/XUnoTunnel.hpp>
65#include <svl/lstner.hxx>
66
67#include <memory>
68
69class ErrCode;
70class SfxMedium;
71class SfxObjectShell ;
72class SfxViewFrame;
73struct IMPL_SfxBaseModel_DataContainer ; // impl. struct to hold member of class SfxBaseModel
74
75namespace sfx::intern {
76 class ViewCreationGuard;
77}
78
79namespace com::sun::star::beans { struct PropertyValue; }
80namespace com::sun::star::container { class XNameContainer; }
81namespace com::sun::star::container { class XNameReplace; }
82namespace com::sun::star::document { class XEventListener; }
83namespace com::sun::star::document { struct CmisProperty; }
84namespace com::sun::star::document { struct CmisVersion; }
85namespace com::sun::star::document { struct EventObject; }
86namespace com::sun::star::frame { class XController2; }
88namespace com::sun::star::ui { class XUIConfigurationManager2; }
89namespace com::sun::star::util { class XCloseListener; }
90namespace com::sun::star::util { class XModifyListener; }
91
92
93
115typedef ::cppu::WeakImplHelper < css::container::XChild
116 , css::document::XDocumentPropertiesSupplier
117 , css::document::XCmisDocument
118 , css::rdf::XDocumentMetadataAccess
119 , css::document::XDocumentRecovery2
120 , css::document::XUndoManagerSupplier
121 , css::document::XShapeEventBroadcaster
122 , css::document::XDocumentEventBroadcaster
123 , css::lang::XEventListener
124 , css::document::XEventsSupplier
125 , css::document::XEmbeddedScripts
126 , css::document::XScriptInvocationContext
127 , css::frame::XModel3
128 , css::util::XModifiable2
129 , css::view::XPrintable
130 , css::view::XPrintJobBroadcaster
131 , css::frame::XStorable2
132 , css::frame::XLoadable
133 , css::script::XStarBasicAccess
134 , css::document::XViewDataSupplier
135 , css::util::XCloseable // => css::util::XCloseBroadcaster
136 , css::datatransfer::XTransferable
137 , css::document::XDocumentSubStorageSupplier
138 , css::document::XStorageBasedDocument
139 , css::script::provider::XScriptProviderSupplier
140 , css::ui::XUIConfigurationManagerSupplier
141 , css::embed::XVisualObject
142 , css::lang::XUnoTunnel
143 , css::frame::XModule
144 , css::frame::XTitle
145 , css::frame::XTitleChangeBroadcaster
146 , css::frame::XUntitledNumbers
148
150 , public SfxBaseModel_Base
151 , public SfxListener
152{
153
154
155// public methods
156
157
158public:
159
160
161 // constructor/destructor
162
163
164 SfxBaseModel( SfxObjectShell *pObjectShell ) ;
165
166 virtual ~SfxBaseModel() override ;
167
168
169 // XInterface
170
171
185 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override ;
186
194 virtual void SAL_CALL acquire() noexcept override
196
204 virtual void SAL_CALL release() noexcept override
206
207
208 // XTypeProvider
209
210
219 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override ;
220
232 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override ;
233
234
235 // XStarBasicAccess
236
237
241 virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getLibraryContainer() override;
242
246 virtual void SAL_CALL createLibrary( const OUString& LibName, const OUString& Password,
247 const OUString& ExternalSourceURL, const OUString& LinkTargetURL ) override;
248
252 virtual void SAL_CALL addModule( const OUString& LibraryName, const OUString& ModuleName,
253 const OUString& Language, const OUString& Source ) override;
254
258 virtual void SAL_CALL addDialog( const OUString& LibraryName, const OUString& DialogName,
259 const css::uno::Sequence< sal_Int8 >& Data ) override;
260
261
262 // XChild
263
264
265 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override ;
266
267 virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& xParent ) override;
268
269
270 // XComponent
271
272
273 virtual void SAL_CALL dispose() override;
274
275 virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener >& aListener) override;
276
277 virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
278
279 // XDocumentPropertiesSupplier
280 virtual css::uno::Reference< css::document::XDocumentProperties >
281 SAL_CALL getDocumentProperties() override;
282
283
284 // XEventListener
285
286
287 virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) override;
288
289
290 // XModel
291
292
293 virtual sal_Bool SAL_CALL attachResource(const OUString& sURL,
294 const css::uno::Sequence< css::beans::PropertyValue >& aArgs) override;
295
296 virtual OUString SAL_CALL getURL() override;
297
298 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getArgs() override;
299
300 virtual void SAL_CALL connectController( const css::uno::Reference< css::frame::XController >& xController ) override;
301
302 virtual void SAL_CALL disconnectController( const css::uno::Reference< css::frame::XController >& xController ) override;
303
304 virtual void SAL_CALL lockControllers() override;
305
306 virtual void SAL_CALL unlockControllers() override;
307
308 virtual sal_Bool SAL_CALL hasControllersLocked() override;
309
310 virtual css::uno::Reference< css::frame::XController > SAL_CALL getCurrentController() override;
311
312 virtual void SAL_CALL setCurrentController( const css::uno::Reference< css::frame::XController >& xController ) override;
313
314 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getCurrentSelection() override;
315
316
317 // XModel2
318
319 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL getControllers() override;
320
321 virtual css::uno::Sequence< OUString > SAL_CALL getAvailableViewControllerNames() override;
322
323 virtual css::uno::Reference< css::frame::XController2 > SAL_CALL createDefaultViewController(const css::uno::Reference< css::frame::XFrame >& Frame ) override;
324
325 virtual css::uno::Reference< css::frame::XController2 > SAL_CALL createViewController(const OUString& ViewName ,
326 const css::uno::Sequence< css::beans::PropertyValue >& Arguments ,
327 const css::uno::Reference< css::frame::XFrame >& Frame ) override;
328
329 virtual void SAL_CALL setArgs(const css::uno::Sequence<css::beans::PropertyValue>& aArgs) override;
330
331
332 // XModel3
333
334 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getArgs2( const css::uno::Sequence< OUString > & requestedArgs ) override;
335
336 // XModifiable2
337
338
339 virtual sal_Bool SAL_CALL disableSetModified( ) override;
340 virtual sal_Bool SAL_CALL enableSetModified( ) override;
341 virtual sal_Bool SAL_CALL isSetModifiedEnabled( ) override;
342
343 virtual sal_Bool SAL_CALL isModified() override;
344
345 virtual void SAL_CALL setModified( sal_Bool bModified ) override;
346
347 virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& xListener ) override ;
348
349 virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > & xListener) override ;
350
351
352 // XCloseable
353
354
355 virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) override;
356
357
358 // XCloseBroadcaster
359
360
361 virtual void SAL_CALL addCloseListener( const css::uno::Reference< css::util::XCloseListener >& xListener ) override;
362 virtual void SAL_CALL removeCloseListener( const css::uno::Reference< css::util::XCloseListener >& xListener ) override;
363
364
365 // XPrintJobBroadcaster
366
367
368 virtual void SAL_CALL addPrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) override;
369 virtual void SAL_CALL removePrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) override;
370
371
372 // XPrintable
373
374
375 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPrinter() override;
376
377 virtual void SAL_CALL setPrinter( const css::uno::Sequence< css::beans::PropertyValue >& seqPrinter ) override;
378 virtual void SAL_CALL print( const css::uno::Sequence< css::beans::PropertyValue >& seqOptions ) override;
379
380
381 // XStorable2
382
383
384 virtual void SAL_CALL storeSelf( const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override;
385
386
387 // XStorable
388
389
390 virtual sal_Bool SAL_CALL hasLocation() override;
391
392 virtual OUString SAL_CALL getLocation() override;
393
394 virtual sal_Bool SAL_CALL isReadonly() override;
395
396 virtual void SAL_CALL store() override;
397
398 virtual void SAL_CALL storeAsURL( const OUString& sURL,
399 const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override ;
400
401 virtual void SAL_CALL storeToURL( const OUString& sURL,
402 const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override;
403
404 SAL_DLLPRIVATE void
405 impl_store(const OUString& sURL,
406 const css::uno::Sequence<css::beans::PropertyValue>& seqArguments, bool bSaveTo);
407
408 // XLoadable
409
410
411 virtual void SAL_CALL initNew() override;
412
413 virtual void SAL_CALL load( const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override;
414
415
416 // XDocumentSubStorageSupplier
417
418
419 virtual css::uno::Reference< css::embed::XStorage > SAL_CALL getDocumentSubStorage( const OUString& aStorageName, sal_Int32 nMode ) override;
420
421 virtual css::uno::Sequence< OUString > SAL_CALL getDocumentSubStoragesNames() override;
422
423
424 // XStorageBasedDocument
425
426
427 virtual void SAL_CALL loadFromStorage( const css::uno::Reference< css::embed::XStorage >& xStorage,
428 const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescriptor ) override;
429
430 virtual void SAL_CALL storeToStorage( const css::uno::Reference< css::embed::XStorage >& xStorage,
431 const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescriptor ) override;
432
433 virtual void SAL_CALL switchToStorage( const css::uno::Reference< css::embed::XStorage >& xStorage ) override;
434
435 virtual css::uno::Reference< css::embed::XStorage > SAL_CALL getDocumentStorage() override;
436
437 virtual void SAL_CALL addStorageChangeListener(
438 const css::uno::Reference< css::document::XStorageChangeListener >& xListener ) override;
439
440 virtual void SAL_CALL removeStorageChangeListener(
441 const css::uno::Reference< css::document::XStorageChangeListener >& xListener ) override;
442
443
444 // XVisualObject
445
446
447 virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize ) override;
448
449 virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ) override;
450
451 virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) override;
452
453 virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ) override;
454
455
456 // XScriptProviderSupplier
457
458
459 virtual css::uno::Reference< css::script::provider::XScriptProvider > SAL_CALL getScriptProvider() override;
460
461
462 // XUIConfigurationManagerSupplier
463 virtual css::uno::Reference< css::ui::XUIConfigurationManager > SAL_CALL getUIConfigurationManager() override;
464
465
466 // XTransferable
467
468
469 virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor ) override;
470
471 virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() override;
472
473 virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor ) override;
474
475
476 // XEventsSupplier
477
478
485 virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents() override;
486
487
488 // XEmbeddedScripts
489
490
491 virtual css::uno::Reference< css::script::XStorageBasedLibraryContainer > SAL_CALL getBasicLibraries() override;
492 virtual css::uno::Reference< css::script::XStorageBasedLibraryContainer > SAL_CALL getDialogLibraries() override;
493 virtual sal_Bool SAL_CALL getAllowMacroExecution() override;
494
495
496 // XScriptInvocationContext
497
498
499 virtual css::uno::Reference< css::document::XEmbeddedScripts > SAL_CALL getScriptContainer() override;
500
501
502 // document::XEventBroadcaster
503
507 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::document::XEventListener >& xListener ) override;
508
512 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::document::XEventListener >& xListener ) override;
513
514
515 // document::XShapeEventBroadcaster
516
520 virtual void SAL_CALL addShapeEventListener( const css::uno::Reference< css::drawing::XShape >& xShape, const css::uno::Reference< css::document::XShapeEventListener >& xListener ) override;
521
525 virtual void SAL_CALL removeShapeEventListener( const css::uno::Reference< css::drawing::XShape >& xShape, const css::uno::Reference< css::document::XShapeEventListener >& xListener ) override;
526
527
528 // XDocumentEventBroadcaster
529
530 virtual void SAL_CALL addDocumentEventListener( const css::uno::Reference< css::document::XDocumentEventListener >& Listener ) override;
531 virtual void SAL_CALL removeDocumentEventListener( const css::uno::Reference< css::document::XDocumentEventListener >& Listener ) override;
532 virtual void SAL_CALL notifyDocumentEvent( const OUString& EventName, const css::uno::Reference< css::frame::XController2 >& ViewController, const css::uno::Any& Supplement ) override;
533
534
535 // XUnoTunnel
536
537
538 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
539
540 // css.frame.XModule
541 virtual void SAL_CALL setIdentifier(const OUString& sIdentifier) override;
542
543 // css.frame.XModule
544 virtual OUString SAL_CALL getIdentifier() override;
545
546 // css.frame.XTitle
547 virtual OUString SAL_CALL getTitle() override;
548
549 // css.frame.XTitle
550 virtual void SAL_CALL setTitle( const OUString& sTitle ) override;
551
552 // css.frame.XTitleChangeBroadcaster
553 virtual void SAL_CALL addTitleChangeListener( const css::uno::Reference< css::frame::XTitleChangeListener >& xListener ) override;
554
555 // css.frame.XTitleChangeBroadcaster
556 virtual void SAL_CALL removeTitleChangeListener( const css::uno::Reference< css::frame::XTitleChangeListener >& xListener ) override;
557
558 // css.frame.XUntitledNumbers
559 virtual ::sal_Int32 SAL_CALL leaseNumber( const css::uno::Reference< css::uno::XInterface >& xComponent ) override;
560
561 // css.frame.XUntitledNumbers
562 virtual void SAL_CALL releaseNumber( ::sal_Int32 nNumber ) override;
563
564 // css.frame.XUntitledNumbers
565 virtual void SAL_CALL releaseNumberForComponent( const css::uno::Reference< css::uno::XInterface >& xComponent ) override;
566
567 // css.frame.XUntitledNumbers
568 virtual OUString SAL_CALL getUntitledPrefix() override;
569
570 // css.document.XDocumentRecovery
571 virtual sal_Bool SAL_CALL wasModifiedSinceLastSave() override;
572 virtual void SAL_CALL storeToRecoveryFile( const OUString& i_TargetLocation, const css::uno::Sequence< css::beans::PropertyValue >& i_MediaDescriptor ) override;
573 virtual void SAL_CALL recoverFromFile( const OUString& i_SourceLocation, const OUString& i_SalvagedFile, const css::uno::Sequence< css::beans::PropertyValue >& i_MediaDescriptor ) override;
574
575 // css.document.XDocumentRecovery2
576 virtual sal_Int64 SAL_CALL getModifiedStateDuration() override;
577
578 // css.document.XUndoManagerSupplier
579 virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL getUndoManager( ) override;
580
581
582 // css::rdf::XNode:
583 virtual OUString SAL_CALL getStringValue() override;
584
585 // css::rdf::XURI:
586 virtual OUString SAL_CALL getNamespace() override;
587 virtual OUString SAL_CALL getLocalName() override;
588
589 // css::rdf::XRepositorySupplier:
590 virtual css::uno::Reference<
591 css::rdf::XRepository > SAL_CALL getRDFRepository() override;
592
593 // css::rdf::XDocumentMetadataAccess:
594 virtual css::uno::Reference<
595 css::rdf::XMetadatable > SAL_CALL
596 getElementByMetadataReference(
597 const css::beans::StringPair & i_rReference) override;
598 virtual css::uno::Reference<
599 css::rdf::XMetadatable > SAL_CALL
600 getElementByURI(const css::uno::Reference<
601 css::rdf::XURI > & i_xURI) override;
602 virtual css::uno::Sequence< css::uno::Reference<
603 css::rdf::XURI > > SAL_CALL getMetadataGraphsWithType(
604 const css::uno::Reference<
605 css::rdf::XURI > & i_xType) override;
606 virtual css::uno::Reference<
607 css::rdf::XURI> SAL_CALL
608 addMetadataFile(const OUString & i_rFileName,
609 const css::uno::Sequence<
610 css::uno::Reference< css::rdf::XURI >
611 > & i_rTypes) override;
612 virtual css::uno::Reference<
613 css::rdf::XURI> SAL_CALL
614 importMetadataFile(::sal_Int16 i_Format,
615 const css::uno::Reference<
616 css::io::XInputStream > & i_xInStream,
617 const OUString & i_rFileName,
618 const css::uno::Reference<
619 css::rdf::XURI > & i_xBaseURI,
620 const css::uno::Sequence<
621 css::uno::Reference< css::rdf::XURI >
622 > & i_rTypes) override;
623 virtual void SAL_CALL removeMetadataFile(
624 const css::uno::Reference<
625 css::rdf::XURI > & i_xGraphName) override;
626 virtual void SAL_CALL addContentOrStylesFile(
627 const OUString & i_rFileName) override;
628 virtual void SAL_CALL removeContentOrStylesFile(
629 const OUString & i_rFileName) override;
630
631 virtual void SAL_CALL loadMetadataFromStorage(
632 const css::uno::Reference<
633 css::embed::XStorage > & i_xStorage,
634 const css::uno::Reference<
635 css::rdf::XURI > & i_xBaseURI,
636 const css::uno::Reference<
637 css::task::XInteractionHandler> & i_xHandler) override;
638 virtual void SAL_CALL storeMetadataToStorage(
639 const css::uno::Reference<
640 css::embed::XStorage > & i_xStorage) override;
641 virtual void SAL_CALL loadMetadataFromMedium(
642 const css::uno::Sequence<
643 css::beans::PropertyValue > & i_rMedium) override;
644 virtual void SAL_CALL storeMetadataToMedium(
645 const css::uno::Sequence<
646 css::beans::PropertyValue > & i_rMedium) override;
647
648 // XCmisDocument
649
650 virtual css::uno::Sequence< css::document::CmisProperty >
651 SAL_CALL getCmisProperties() override;
652 virtual void SAL_CALL setCmisProperties(
653 const css::uno::Sequence<
654 css::document::CmisProperty >& _cmisproperties ) override;
655
656 virtual void SAL_CALL updateCmisProperties(
657 const css::uno::Sequence<
658 css::document::CmisProperty >& _cmisproperties ) override;
659
660 virtual css::uno::Sequence< css::document::CmisVersion > SAL_CALL getAllVersions ( ) override;
661
662 virtual void SAL_CALL checkOut( ) override;
663 virtual void SAL_CALL cancelCheckOut( ) override;
664 virtual void SAL_CALL checkIn( sal_Bool bIsMajor, const OUString & rMessage ) override;
665
666 virtual sal_Bool SAL_CALL isVersionable( ) override;
667 virtual sal_Bool SAL_CALL canCheckOut( ) override;
668 virtual sal_Bool SAL_CALL canCancelCheckOut( ) override;
669 virtual sal_Bool SAL_CALL canCheckIn( ) override;
670
672 bool getBoolPropertyValue( const OUString& rName );
673
674
675 // SfxListener
676
677
678 void Notify( SfxBroadcaster& aBC ,
679 const SfxHint& aHint ) override ;
680
681
682 // public IMPL?
683
684
685 void changing() ;
686
687 SfxObjectShell* GetObjectShell() const ;
688
689 SAL_DLLPRIVATE bool impl_isDisposed() const ;
690 bool IsInitialized() const;
691 void MethodEntryCheck( const bool i_mustBeInitialized ) const;
692
693 css::uno::Reference < css::container::XIndexAccess > SAL_CALL getViewData() override;
694 void SAL_CALL setViewData( const css::uno::Reference < css::container::XIndexAccess >& aData ) override;
695
697 void notifyEvent( const css::document::EventObject& aEvent ) const;
698
700 bool hasEventListeners() const;
701
702protected:
703
704 /* returns a unique id for the model that is valid as long as the document
705 is loaded. The id is not saved across document close/reload. */
706 OUString const & getRuntimeUID() const;
707
708 /* returns true if the document signatures are valid, otherwise false */
709 bool hasValidSignatures() const;
710
711 /* GrabBagItem for interim interop purposes */
712 void getGrabBagItem(css::uno::Any& rVal) const;
713
714 void setGrabBagItem(const css::uno::Any& rVal);
715
716
717// private methods
718
719
720private:
722 css::uno::Reference< css::ui::XUIConfigurationManager2 > getUIConfigurationManager2();
723 void impl_getPrintHelper();
724 SAL_DLLPRIVATE void ListenForStorage_Impl( const css::uno::Reference< css::embed::XStorage >& xStorage );
725 SAL_DLLPRIVATE OUString GetMediumFilterName_Impl() const;
726
727 SAL_DLLPRIVATE void postEvent_Impl( const OUString& aName, const css::uno::Reference< css::frame::XController2 >& xController = css::uno::Reference< css::frame::XController2 >(), const css::uno::Any& aSupplement = css::uno::Any());
728
729 SAL_DLLPRIVATE css::uno::Reference< css::frame::XTitle > impl_getTitleHelper ();
730 SAL_DLLPRIVATE css::uno::Reference< css::frame::XUntitledNumbers > impl_getUntitledHelper ();
731
732 SAL_DLLPRIVATE SfxViewFrame* FindOrCreateViewFrame_Impl(
733 const css::uno::Reference< css::frame::XFrame >& i_rFrame,
735 ) const;
736
737 SAL_DLLPRIVATE void NotifyModifyListeners_Impl() const;
738
739 SAL_DLLPRIVATE void loadCmisProperties();
740
741 SAL_DLLPRIVATE SfxMedium* handleLoadError( ErrCode nError, SfxMedium* pMedium );
742
743
744// private variables and methods
745
746
747private:
748
749 std::shared_ptr<IMPL_SfxBaseModel_DataContainer> m_pData;
750 // cannot be held in m_pData, since it needs to be accessed in non-threadsafe context
753
754} ; // class SfxBaseModel
755
756/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::shared_ptr< IMPL_SfxBaseModel_DataContainer > m_pData
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::document::XEventListener > &xListener) override
const bool m_bSupportEmbeddedScripts
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL acquire() noexcept override
increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::document::XEventListener > &xListener) override
virtual void SAL_CALL release() noexcept override
decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.
const bool m_bSupportDocRecovery
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint)
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
a class which, in its dtor, cleans up various objects (well, at the moment only the frame) collected ...
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29
bool close
DdeData aData
Definition: lnkbase2.cxx:82
SVT_DLLPUBLIC bool IsInitialized()
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getIdentifier(css::uno::Reference< css::deployment::XPackage > const &package)
std::u16string_view getTitle(std::u16string_view aPath)
void dispose()
::cppu::WeakImplHelper< css::container::XChild, css::document::XDocumentPropertiesSupplier, css::document::XCmisDocument, css::rdf::XDocumentMetadataAccess, css::document::XDocumentRecovery2, css::document::XUndoManagerSupplier, css::document::XShapeEventBroadcaster, css::document::XDocumentEventBroadcaster, css::lang::XEventListener, css::document::XEventsSupplier, css::document::XEmbeddedScripts, css::document::XScriptInvocationContext, css::frame::XModel3, css::util::XModifiable2, css::view::XPrintable, css::view::XPrintJobBroadcaster, css::frame::XStorable2, css::frame::XLoadable, css::script::XStarBasicAccess, css::document::XViewDataSupplier, css::util::XCloseable, css::datatransfer::XTransferable, css::document::XDocumentSubStorageSupplier, css::document::XStorageBasedDocument, css::script::provider::XScriptProviderSupplier, css::ui::XUIConfigurationManagerSupplier, css::embed::XVisualObject, css::lang::XUnoTunnel, css::frame::XModule, css::frame::XTitle, css::frame::XTitleChangeBroadcaster, css::frame::XUntitledNumbers > SfxBaseModel_Base
unsigned char sal_Bool