Lines Matching refs:m_pData

334     IMPL_SfxBaseModel_DataContainer* m_pData;  member in SfxPrintHelperListener_Impl
336 : m_pData( pData ) in SfxPrintHelperListener_Impl()
345 m_pData->m_xPrintable = 0; in disposing()
350 …::cppu::OInterfaceContainerHelper* pContainer = m_pData->m_aInterfaceContainer.getContainer( ::get… in printJobEvent()
464 IMPL_SfxBaseModel_DataContainer* m_pData; member in SfxSaveGuard
478 , m_pData (pData ) in SfxSaveGuard()
484 if ( m_pData->m_bClosed ) in SfxSaveGuard()
491 m_pData->m_bSaving in SfxSaveGuard()
497 m_pData->m_bSaving = sal_True; in SfxSaveGuard()
498 m_pFramesLock = new SfxOwnFramesLocker(m_pData->m_pObjectShell); in SfxSaveGuard()
507 m_pData->m_bSaving = sal_False; in ~SfxSaveGuard()
515 if ( m_pData->m_bSuicide ) in ~SfxSaveGuard()
519 m_pData->m_bSuicide = sal_False; in ~SfxSaveGuard()
539 , m_pData( new IMPL_SfxBaseModel_DataContainer( m_aMutex, pObjectShell ) ) in DBG_NAME()
682 uno::Reference< script::XStarBasicAccess >& rxAccess = m_pData->m_xStarBasicAccess; in getLibraryContainer()
683 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in getLibraryContainer()
684 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in getLibraryContainer()
701 uno::Reference< script::XStarBasicAccess >& rxAccess = m_pData->m_xStarBasicAccess; in createLibrary()
702 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in createLibrary()
703 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in createLibrary()
718 uno::Reference< script::XStarBasicAccess >& rxAccess = m_pData->m_xStarBasicAccess; in addModule()
719 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in addModule()
720 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in addModule()
735 uno::Reference< script::XStarBasicAccess >& rxAccess = m_pData->m_xStarBasicAccess; in addDialog()
736 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in addDialog()
737 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in addDialog()
752 return m_pData->m_xParent; in getParent()
762 m_pData->m_xParent = Parent; in setParent()
773 if ( !m_pData->m_bClosed ) in dispose()
788 if ( m_pData->m_pStorageModifyListen.is() ) in dispose()
790 m_pData->m_pStorageModifyListen->dispose(); in dispose()
791 m_pData->m_pStorageModifyListen = NULL; in dispose()
794 if ( m_pData->m_pDocumentUndoManager.is() ) in dispose()
796 m_pData->m_pDocumentUndoManager->disposing(); in dispose()
797 m_pData->m_pDocumentUndoManager = NULL; in dispose()
801 m_pData->m_aInterfaceContainer.disposeAndClear( aEvent ); in dispose()
803 if ( m_pData->m_xDocumentInfo.is() ) in dispose()
809 m_pData->m_xDocumentInfo = 0; in dispose()
812 m_pData->m_xDocumentProperties.clear(); in dispose()
814 m_pData->m_xDocumentMetadata.clear(); in dispose()
816 EndListening( *m_pData->m_pObjectShell ); in dispose()
818 m_pData->m_xCurrent = uno::Reference< frame::XController > (); in dispose()
819 m_pData->m_seqControllers = uno::Sequence< uno::Reference< frame::XController > > () ; in dispose()
824 IMPL_SfxBaseModel_DataContainer* pData = m_pData; in dispose()
825 m_pData = 0; in dispose()
837m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference< XEVENTLISTENER >… in addEventListener()
848m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XEVENTLISTENE… in removeEventListener()
858 if ( !m_pData->m_xDocumentInfo.is() ) in getDocumentInfo()
874 ((SfxBaseModel*)this)->m_pData->m_xDocumentInfo = xDocInfo; in getDocumentInfo()
888 m_pData->m_xDocumentInfo, uno::UNO_QUERY ); in getDocumentInfo()
895 return m_pData->m_xDocumentInfo; in getDocumentInfo()
904 if ( !m_pData->m_xDocumentProperties.is() ) in getDocumentProperties()
911 m_pData->m_xDocumentProperties.set(xDocProps, uno::UNO_QUERY_THROW); in getDocumentProperties()
912 …uno::Reference<util::XModifyBroadcaster> xMB(m_pData->m_xDocumentProperties, uno::UNO_QUERY_THROW); in getDocumentProperties()
913 xMB->addModifyListener(new SfxDocInfoListener_Impl(*m_pData->m_pObjectShell)); in getDocumentProperties()
916 return m_pData->m_xDocumentProperties; in getDocumentProperties()
936m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XMODIFYLISTEN… in disposing()
938m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XEVENTLISTENE… in disposing()
940m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XDOCEVENTLIST… in disposing()
956 if ( m_pData->m_pObjectShell.Is() && !m_pData->m_pObjectShell->GetMedium() ) in attachResource()
960 m_pData->m_pObjectShell->SetCreateMode_Impl( SFX_CREATE_MODE_EMBEDDED ); in attachResource()
966 if ( m_pData->m_pObjectShell.Is() ) in attachResource()
968 m_pData->m_sURL = rURL; in attachResource()
970 SfxObjectShell* pObjectShell = m_pData->m_pObjectShell; in attachResource()
999 m_pData->m_seqArguments = aArgs.getPropertyValues(); in attachResource()
1037 return m_pData->m_sURL ; in getURL()
1047 if ( m_pData->m_pObjectShell.Is() ) in getArgs()
1051 SfxAllItemSet aSet( m_pData->m_pObjectShell->GetPool() ); in getArgs()
1057 TransformItems( SID_OPENDOC, *(m_pData->m_pObjectShell->GetMedium()->GetItemSet()), seqArgsNew ); in getArgs()
1058 TransformParameters( SID_OPENDOC, m_pData->m_seqArguments, aSet ); in getArgs()
1061 sal_Int32 nOrgLength = m_pData->m_seqArguments.getLength(); in getArgs()
1068 Rectangle aTmpRect = m_pData->m_pObjectShell->GetVisArea( ASPECT_CONTENT ); in getArgs()
1069 …aTmpRect = OutputDevice::LogicToLogic( aTmpRect, m_pData->m_pObjectShell->GetMapUnit(), MAP_100TH_… in getArgs()
1081 if ( m_pData->m_aPreusedFilterName.getLength() ) in getArgs()
1085 seqArgsNew[ nNewLength - 1 ].Value <<= m_pData->m_aPreusedFilterName; in getArgs()
1088 SfxViewFrame* pFrame = SfxViewFrame::GetFirst( m_pData->m_pObjectShell ); in getArgs()
1113 if ( m_pData->m_seqArguments[nOrg].Name.equals( seqArgsOld[nOldInd].Name ) ) in getArgs()
1124 seqArgsNew[ nNewLength - 1 ] = m_pData->m_seqArguments[nOrg]; in getArgs()
1127 aFinalCache[ nFinalLength - 1 ] = m_pData->m_seqArguments[nOrg]; in getArgs()
1131 m_pData->m_seqArguments = aFinalCache; in getArgs()
1136 return m_pData->m_seqArguments; in getArgs()
1151 sal_uInt32 nOldCount = m_pData->m_seqControllers.getLength(); in connectController()
1154 aNewSeq.getArray()[n] = m_pData->m_seqControllers.getConstArray()[n]; in connectController()
1156 m_pData->m_seqControllers = aNewSeq; in connectController()
1158 if ( m_pData->m_seqControllers.getLength() == 1 ) in connectController()
1177 sal_uInt32 nOldCount = m_pData->m_seqControllers.getLength(); in disconnectController()
1184 if ( xController != m_pData->m_seqControllers.getConstArray()[nOld] ) in disconnectController()
1186 aNewSeq.getArray()[nNew] = m_pData->m_seqControllers.getConstArray()[nOld]; in disconnectController()
1191 m_pData->m_seqControllers = aNewSeq; in disconnectController()
1193 if ( xController == m_pData->m_xCurrent ) in disconnectController()
1194 m_pData->m_xCurrent = uno::Reference< frame::XController > (); in disconnectController()
1250 ++m_pData->m_nControllerLockCount ; in lockControllers()
1252 if ( m_pData->m_pDocumentUndoManager.is() in lockControllers()
1253 && m_pData->m_pDocumentUndoManager->isInContext() in lockControllers()
1254 && !m_pData->m_pDocumentUndoManager->isLocked() in lockControllers()
1257m_pData->m_pDocumentUndoManager->addUndoAction( new ControllerLockUndoAction( this, true ) ); in lockControllers()
1269 --m_pData->m_nControllerLockCount ; in unlockControllers()
1271 if ( m_pData->m_pDocumentUndoManager.is() in unlockControllers()
1272 && m_pData->m_pDocumentUndoManager->isInContext() in unlockControllers()
1273 && !m_pData->m_pDocumentUndoManager->isLocked() in unlockControllers()
1276m_pData->m_pDocumentUndoManager->addUndoAction( new ControllerLockUndoAction( this, false ) ); in unlockControllers()
1287 return ( m_pData->m_nControllerLockCount != 0 ) ; in hasControllersLocked()
1299 if ( m_pData->m_xCurrent.is() ) in getCurrentController()
1300 return m_pData->m_xCurrent; in getCurrentController()
1303 …return m_pData->m_seqControllers.getLength() ? m_pData->m_seqControllers.getConstArray()[0] : m_pD… in getCurrentController()
1315 m_pData->m_xCurrent = xCurrentController; in setCurrentController()
1350 if ( !m_pData->m_pObjectShell.Is() ) in disableSetModified()
1353 sal_Bool bResult = m_pData->m_pObjectShell->IsEnableSetModified(); in disableSetModified()
1354 m_pData->m_pObjectShell->EnableSetModified( sal_False ); in disableSetModified()
1363 if ( !m_pData->m_pObjectShell.Is() ) in enableSetModified()
1366 sal_Bool bResult = m_pData->m_pObjectShell->IsEnableSetModified(); in enableSetModified()
1367 m_pData->m_pObjectShell->EnableSetModified( sal_True ); in enableSetModified()
1376 if ( !m_pData->m_pObjectShell.Is() ) in isSetModifiedEnabled()
1379 return m_pData->m_pObjectShell->IsEnableSetModified(); in isSetModifiedEnabled()
1390 return m_pData->m_pObjectShell.Is() ? m_pData->m_pObjectShell->IsModified() : sal_False; in isModified()
1402 if ( m_pData->m_pObjectShell.Is() ) in setModified()
1403 m_pData->m_pObjectShell->SetModified(bModified); in setModified()
1414m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference< XMODIFYLISTENER … in addModifyListener()
1425m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XMODIFYLISTEN… in removeModifyListener()
1437 if ( impl_isDisposed() || m_pData->m_bClosed || m_pData->m_bClosing ) in close()
1442 …::cppu::OInterfaceContainerHelper* pContainer = m_pData->m_aInterfaceContainer.getContainer( ::get… in close()
1459 if ( m_pData->m_bSaving ) in close()
1462 m_pData->m_bSuicide = sal_True; in close()
1469 m_pData->m_bClosing = sal_True; in close()
1470 …pContainer = m_pData->m_aInterfaceContainer.getContainer( ::getCppuType( ( const uno::Reference< u… in close()
1487 m_pData->m_bClosed = sal_True; in close()
1488 m_pData->m_bClosing = sal_False; in close()
1501m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference< XCLOSELISTENER >… in addCloseListener()
1512m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XCLOSELISTENE… in removeCloseListener()
1524 return m_pData->m_xPrintable->getPrinter(); in getPrinter()
1535 m_pData->m_xPrintable->setPrinter( rPrinter ); in setPrinter()
1544 m_pData->m_xPrintable->print( rOptions ); in print()
1555 return m_pData->m_pObjectShell.Is() ? m_pData->m_pObjectShell->HasName() : sal_False; in hasLocation()
1566 if ( m_pData->m_pObjectShell.Is() ) in getLocation()
1569 if ( m_pData->m_pObjectShell->IsDocShared() ) in getLocation()
1570 return m_pData->m_pObjectShell->GetSharedFileURL(); in getLocation()
1572 return ::rtl::OUString(m_pData->m_pObjectShell->GetMedium()->GetName()); in getLocation()
1575 return m_pData->m_sURL; in getLocation()
1586 return m_pData->m_pObjectShell.Is() ? m_pData->m_pObjectShell->IsReadOnly() : sal_True; in isReadonly()
1602 if ( m_pData->m_pObjectShell.Is() ) in storeSelf()
1604m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "sto… in storeSelf()
1605 SfxSaveGuard aSaveGuard(this, m_pData, sal_False); in storeSelf()
1616m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "une… in storeSelf()
1617 m_pData->m_pObjectShell->StoreLog(); in storeSelf()
1628 …( SFX_EVENT_SAVEDOC, GlobalEventConfig::GetEventName(STR_EVENT_SAVEDOC), m_pData->m_pObjectShell )… in storeSelf()
1633 if ( m_pData->m_pObjectShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ) in storeSelf()
1642 bRet = m_pData->m_pObjectShell->DoSave() in storeSelf()
1643 && m_pData->m_pObjectShell->DoSaveCompleted(); in storeSelf()
1647 bRet = m_pData->m_pObjectShell->Save_Impl( pParams ); in storeSelf()
1651 bRet = m_pData->m_pObjectShell->Save_Impl( pParams ); in storeSelf()
1655 sal_uInt32 nErrCode = m_pData->m_pObjectShell->GetError() ? m_pData->m_pObjectShell->GetError() in storeSelf()
1657 m_pData->m_pObjectShell->ResetError(); in storeSelf()
1661m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "suc… in storeSelf()
1662 m_pData->m_aPreusedFilterName = GetMediumFilterName_Impl(); in storeSelf()
1664 …ENT_SAVEDOCDONE, GlobalEventConfig::GetEventName(STR_EVENT_SAVEDOCDONE), m_pData->m_pObjectShell )… in storeSelf()
1668m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in storeSelf()
1669 m_pData->m_pObjectShell->StoreLog(); in storeSelf()
1672 …SAVEDOCFAILED, GlobalEventConfig::GetEventName(STR_EVENT_SAVEDOCFAILED), m_pData->m_pObjectShell )… in storeSelf()
1701 if ( m_pData->m_pObjectShell.Is() ) in storeAsURL()
1703m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "sto… in storeAsURL()
1704 SfxSaveGuard aSaveGuard(this, m_pData, sal_False); in storeAsURL()
1709 TransformItems( SID_OPENDOC, *m_pData->m_pObjectShell->GetMedium()->GetItemSet(), aSequence ); in storeAsURL()
1713 …SFX_ITEMSET_ARG( m_pData->m_pObjectShell->GetMedium()->GetItemSet(), pPasswdItem, SfxStringItem, S… in storeAsURL()
1725 if ( !m_pData->m_pDocumentUndoManager.is() ) in getUndoManager()
1726 m_pData->m_pDocumentUndoManager.set( new ::sfx2::DocumentUndoManager( *this ) ); in getUndoManager()
1727 return m_pData->m_pDocumentUndoManager.get(); in getUndoManager()
1740 if ( m_pData->m_pObjectShell.Is() ) in storeToURL()
1742m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "sto… in storeToURL()
1743 SfxSaveGuard aSaveGuard(this, m_pData, sal_False); in storeToURL()
1751 return m_pData->m_bModifiedSinceLastSave; in wasModifiedSinceLastSave()
1759 SfxSaveGuard aSaveGuard( this, m_pData, sal_False ); in storeToRecoveryFile()
1763 m_pData->m_bModifiedSinceLastSave = sal_False; in storeToRecoveryFile()
1808 DBG_ASSERT( m_pData->m_pObjectShell.Is(), "Model is useless without an ObjectShell" ); in initNew()
1809 if ( m_pData->m_pObjectShell.Is() ) in initNew()
1811 if( m_pData->m_pObjectShell->GetMedium() ) in initNew()
1814 sal_Bool bRes = m_pData->m_pObjectShell->DoInitNew( NULL ); in initNew()
1815 sal_uInt32 nErrCode = m_pData->m_pObjectShell->GetError() ? in initNew()
1816 m_pData->m_pObjectShell->GetError() : ERRCODE_IO_CANTCREATE; in initNew()
1817 m_pData->m_pObjectShell->ResetError(); in initNew()
1839 DBG_ASSERT( m_pData->m_pObjectShell.Is(), "Model is useless without an ObjectShell" ); in load()
1841 if ( m_pData->m_pObjectShell.Is() ) in load()
1843 if( m_pData->m_pObjectShell->GetMedium() ) in load()
1852 …if( !m_pData->m_pObjectShell->GetFactory().GetFilterContainer()->GetFilter4FilterName( aFilterName… in load()
1878 if ( !m_pData->m_pObjectShell->DoLoad(pMedium) ) in load()
1883 if( m_pData->m_pObjectShell->GetErrorCode() ) in load()
1885 nError = m_pData->m_pObjectShell->GetErrorCode(); in load()
1904 m_pData->m_pObjectShell->PrepareSecondTryLoad_Impl(); in load()
1905 if ( !m_pData->m_pObjectShell->DoLoad(pMedium) ) in load()
1907 nError = m_pData->m_pObjectShell->GetErrorCode(); in load()
1920 if( m_pData->m_pObjectShell->IsAbortingImport() ) in load()
1930 m_pData->m_pObjectShell->SetModified(sal_True); in load()
1934 if ( m_pData->m_pObjectShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ) in load()
1938 m_pData->m_aPreusedFilterName = pFilterItem->GetValue(); in load()
1944 m_pData->m_pObjectShell->ResetError(); in load()
1964 if ( m_pData->m_pObjectShell->GetMedium() != pMedium ) in load()
2006 if ( m_pData->m_pObjectShell.Is() ) in getTransferData()
2014 aDesc.maClassName = m_pData->m_pObjectShell->GetClassName(); in getTransferData()
2021 aDesc.mnOle2Misc = m_pData->m_pObjectShell->GetMiscStatus(); in getTransferData()
2022 Size aSize = m_pData->m_pObjectShell->GetVisArea().GetSize(); in getTransferData()
2024 MapUnit aMapUnit = m_pData->m_pObjectShell->GetMapUnit(); in getTransferData()
2068 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2088 m_pData->m_pObjectShell->CreatePreviewMetaFile_Impl( sal_True, sal_True ); in getTransferData()
2108 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2127 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2143 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2165 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2183 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2207 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2231 m_pData->m_pObjectShell->GetPreviewMetaFile( sal_True ); in getTransferData()
2405 if ( ! m_pData->m_xEvents.is() ) in getEvents()
2407 m_pData->m_xEvents = new SfxEvents_Impl( m_pData->m_pObjectShell, this ); in getEvents()
2410 return m_pData->m_xEvents; in getEvents()
2422 if ( m_pData->m_pObjectShell ) in getBasicLibraries()
2423 xBasicLibraries.set( m_pData->m_pObjectShell->GetBasicContainer(), UNO_QUERY_THROW ); in getBasicLibraries()
2432 if ( m_pData->m_pObjectShell ) in getDialogLibraries()
2433 xDialogLibraries.set( m_pData->m_pObjectShell->GetDialogContainer(), UNO_QUERY_THROW ); in getDialogLibraries()
2441 if ( m_pData->m_pObjectShell ) in getAllowMacroExecution()
2442 return m_pData->m_pObjectShell->AdjustMacroMode( String(), false ); in getAllowMacroExecution()
2490m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference< XDOCEVENTLISTENE… in addEventListener()
2501m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XDOCEVENTLIST… in removeEventListener()
2512m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference< document::XDocum… in addDocumentEventListener()
2520m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< document::XDo… in removeDocumentEventListener()
2561 if ( m_pData->m_pObjectShell ) in NotifyStorageListeners_Impl()
2564 m_pData->m_aInterfaceContainer.getContainer( in NotifyStorageListeners_Impl()
2568 uno::Reference< embed::XStorage > xNewStorage = m_pData->m_pObjectShell->GetStorage(); in NotifyStorageListeners_Impl()
2590 if ( !m_pData ) in Notify()
2593 if ( &rBC == m_pData->m_pObjectShell ) in Notify()
2612 if ( m_pData->m_xUIConfigurationManager.is() in Notify()
2613 && m_pData->m_pObjectShell->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) in Notify()
2622 …if ( xConfigStorage.is() || !m_pData->m_pObjectShell->GetStorage()->hasByName( aUIConfigFolderName… in Notify()
2625 …Reference< ui::XUIConfigurationStorage > xUIConfigStorage( m_pData->m_xUIConfigurationManager, uno… in Notify()
2634 ListenForStorage_Impl( m_pData->m_pObjectShell->GetStorage() ); in Notify()
2641 ListenForStorage_Impl( m_pData->m_pObjectShell->GetStorage() ); in Notify()
2642 m_pData->m_bModifiedSinceLastSave = sal_False; in Notify()
2648 m_pData->m_sURL = m_pData->m_pObjectShell->GetMedium()->GetName(); in Notify()
2650 SfxItemSet *pSet = m_pData->m_pObjectShell->GetMedium()->GetItemSet(); in Notify()
2652 ::rtl::OUString aTitle = m_pData->m_pObjectShell->GetTitle(); in Notify()
2655 attachResource( m_pData->m_pObjectShell->GetMedium()->GetName(), aArgs ); in Notify()
2662 m_pData->m_bModifiedSinceLastSave = sal_False; in Notify()
2668 m_pData->m_bModifiedSinceLastSave = isModified(); in Notify()
2682 ::rtl::OUString aTitle = m_pData->m_pObjectShell->GetTitle(); in Notify()
2683 addTitle_Impl( m_pData->m_seqArguments, aTitle ); in Notify()
2708 …::cppu::OInterfaceContainerHelper* pIC = m_pData->m_aInterfaceContainer.getContainer( ::getCppuTyp… in NotifyModifyListeners_Impl()
2717 m_pData->m_bModifiedSinceLastSave = const_cast< SfxBaseModel* >( this )->isModified(); in NotifyModifyListeners_Impl()
2725 if ( !m_pData->m_pObjectShell.Is() || !m_pData->m_pObjectShell->IsEnableSetModified() ) in changing()
2746 return m_pData ? (SfxObjectShell*) m_pData->m_pObjectShell : 0; in GetObjectShell()
2751 return m_pData ? (SfxObjectShell*) m_pData->m_pObjectShell : 0; in impl_getObjectShell()
2760 if ( !m_pData || !m_pData->m_pObjectShell ) in IsInitialized()
2766 return m_pData->m_pObjectShell->GetMedium() != NULL; in IsInitialized()
2779 return ( m_pData == NULL ) ; in impl_isDisposed()
2789 SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); in GetMediumFilterName_Impl()
2809 if ( !bSaveTo && m_pData->m_pObjectShell && sURL.getLength() in impl_store()
2820 SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); in impl_store()
2851 if ( m_pData->m_pObjectShell->IsDocShared() ) in impl_store()
2853m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Can… in impl_store()
2854 m_pData->m_pObjectShell->StoreLog(); in impl_store()
2881 if ( !bSaved && m_pData->m_pObjectShell ) in impl_store()
2884 m_pData->m_pObjectShell ) ); in impl_store()
2897m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Mis… in impl_store()
2898 m_pData->m_pObjectShell->StoreLog(); in impl_store()
2918 sal_uInt32 nOldModifyPasswordHash = m_pData->m_pObjectShell->GetModifyPasswordHash(); in impl_store()
2919 m_pData->m_pObjectShell->SetModifyPasswordHash( nModifyPasswordHash ); in impl_store()
2920 …uno::Sequence< beans::PropertyValue > aOldModifyPasswordInfo = m_pData->m_pObjectShell->GetModifyP… in impl_store()
2921 m_pData->m_pObjectShell->SetModifyPasswordInfo( aModifyPasswordInfo ); in impl_store()
2927 m_pData->m_pObjectShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED; in impl_store()
2933 if (m_pData->m_xDocumentInfo.is()) in impl_store()
2944 m_pData->m_xDocumentProperties = xNewDocProps; in impl_store()
2945 m_pData->m_xDocumentInfo = xNewDocInfo; in impl_store()
2953 m_pData->m_xDocumentProperties = xNewDocProps; in impl_store()
2957 sal_Bool bRet = m_pData->m_pObjectShell->APISaveAs_Impl( sURL, aParams ); in impl_store()
2962 m_pData->m_xDocumentProperties = xOldDocProps; in impl_store()
2963 m_pData->m_xDocumentInfo = xOldDocInfo; in impl_store()
2973 sal_uInt32 nErrCode = m_pData->m_pObjectShell->GetErrorCode(); in impl_store()
2976m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in impl_store()
2979 m_pData->m_pObjectShell->ResetError(); in impl_store()
2989 SfxErrorContext aEc( ERRCTX_SFX_SAVEASDOC, m_pData->m_pObjectShell->GetTitle() ); in impl_store()
2997m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in impl_store()
3000 m_pData->m_aPreusedFilterName = GetMediumFilterName_Impl(); in impl_store()
3001 m_pData->m_pObjectShell->SetModifyPasswordEntered(); in impl_store()
3003 …SAVEASDOCDONE, GlobalEventConfig::GetEventName(STR_EVENT_SAVEASDOCDONE), m_pData->m_pObjectShell )… in impl_store()
3007 m_pData->m_pObjectShell->SetModifyPasswordHash( nOldModifyPasswordHash ); in impl_store()
3008 m_pData->m_pObjectShell->SetModifyPasswordInfo( aOldModifyPasswordInfo ); in impl_store()
3010 …SAVETODOCDONE, GlobalEventConfig::GetEventName(STR_EVENT_SAVETODOCDONE), m_pData->m_pObjectShell )… in impl_store()
3016m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in impl_store()
3017 m_pData->m_pObjectShell->StoreLog(); in impl_store()
3019 m_pData->m_pObjectShell->SetModifyPasswordHash( nOldModifyPasswordHash ); in impl_store()
3020 m_pData->m_pObjectShell->SetModifyPasswordInfo( aOldModifyPasswordInfo ); in impl_store()
3024 m_pData->m_pObjectShell ) ); in impl_store()
3068m_pData->m_aInterfaceContainer.getContainer( ::getCppuType( (const uno::Reference< document::XDocu… in postEvent_Impl()
3085 …pIC = m_pData->m_aInterfaceContainer.getContainer( ::getCppuType( (const uno::Reference< document:… in postEvent_Impl()
3108 if ( m_pData->m_pObjectShell.Is() && !m_pData->m_contViewData.is() ) in getViewData()
3111 if ( !pActFrame || pActFrame->GetObjectShell() != m_pData->m_pObjectShell ) in getViewData()
3112 pActFrame = SfxViewFrame::GetFirst( m_pData->m_pObjectShell ); in getViewData()
3118 m_pData->m_contViewData = Reference < container::XIndexAccess >( in getViewData()
3123 if ( !m_pData->m_contViewData.is() ) in getViewData()
3129 … uno::Reference < container::XIndexContainer > xCont( m_pData->m_contViewData, uno::UNO_QUERY ); in getViewData()
3133 for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst( m_pData->m_pObjectShell ); pFrame; in getViewData()
3134 pFrame = SfxViewFrame::GetNext( *pFrame, m_pData->m_pObjectShell ) ) in getViewData()
3144 return m_pData->m_contViewData; in getViewData()
3151 m_pData->m_contViewData = aData; in setViewData()
3161 ::cppu::OInterfaceContainerHelper* pIC = m_pData->m_aInterfaceContainer.getContainer( in notifyEvent()
3184 …return !impl_isDisposed() && (NULL != m_pData->m_aInterfaceContainer.getContainer( ::getCppuType((… in hasEventListeners()
3193 uno::Reference < view::XPrintJobBroadcaster > xPJB( m_pData->m_xPrintable, uno::UNO_QUERY ); in addPrintJobListener()
3207 uno::Reference < view::XPrintJobBroadcaster > xPJB( m_pData->m_xPrintable, uno::UNO_QUERY ); in removePrintJobListener()
3243 if ( !m_pData->m_pStorageModifyListen.is() ) in ListenForStorage_Impl()
3245m_pData->m_pStorageModifyListen = new ::sfx2::DocumentStorageModifyListener( *m_pData, Application… in ListenForStorage_Impl()
3249 xModifiable->addModifyListener( m_pData->m_pStorageModifyListen.get() ); in ListenForStorage_Impl()
3259 if ( m_pData->m_pObjectShell.Is() ) in getDocumentSubStorage()
3261 uno::Reference< embed::XStorage > xStorage = m_pData->m_pObjectShell->GetStorage(); in getDocumentSubStorage()
3286 if ( m_pData->m_pObjectShell.Is() ) in getDocumentSubStoragesNames()
3288 uno::Reference < embed::XStorage > xStorage = m_pData->m_pObjectShell->GetStorage(); in getDocumentSubStoragesNames()
3355 OSL_ENSURE( m_pData->m_sRuntimeUID.getLength() > 0, in getRuntimeUID()
3357 return m_pData->m_sRuntimeUID; in getRuntimeUID()
3363 if ( m_pData->m_pObjectShell.Is() ) in hasValidSignatures()
3364 …return ( m_pData->m_pObjectShell->ImplGetSignatureState( sal_False ) == SIGNATURESTATE_SIGNATURES_… in hasValidSignatures()
3428 if ( !m_pData->m_xUIConfigurationManager.is() ) in getUIConfigurationManager()
3465 if ( m_pData->m_pObjectShell->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) in getUIConfigurationManager()
3526 m_pData->m_xUIConfigurationManager = xNewUIConfMan; in getUIConfigurationManager()
3529 return m_pData->m_xUIConfigurationManager; in getUIConfigurationManager()
3544 if ( !m_pData->m_pObjectShell.Is() ) in setVisualAreaSize()
3547 SfxViewFrame* pViewFrm = SfxViewFrame::GetFirst( m_pData->m_pObjectShell, sal_False ); in setVisualAreaSize()
3548 …if ( pViewFrm && m_pData->m_pObjectShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED && !pViewFrm… in setVisualAreaSize()
3554 …Size aWrongDiff = OutputDevice::LogicToLogic( aDiff , m_pData->m_pObjectShell->GetMapUnit(), pWind… in setVisualAreaSize()
3562 Rectangle aTmpRect = m_pData->m_pObjectShell->GetVisArea( ASPECT_CONTENT ); in setVisualAreaSize()
3564 m_pData->m_pObjectShell->SetVisArea( aTmpRect ); in setVisualAreaSize()
3576 if ( !m_pData->m_pObjectShell.Is() ) in getVisualAreaSize()
3579 Rectangle aTmpRect = m_pData->m_pObjectShell->GetVisArea( ASPECT_CONTENT ); in getVisualAreaSize()
3583 SfxViewFrame* pViewFrm = m_pData->m_pObjectShell.Is() ? in getVisualAreaSize()
3584 SfxViewFrame::GetFirst( m_pData->m_pObjectShell, 0, sal_False ) : 0; in getVisualAreaSize()
3589 MapMode aExternalMapMode( m_pData->m_pObjectShell->GetMapUnit() ); in getVisualAreaSize()
3605 if ( !m_pData->m_pObjectShell.Is() ) in getMapUnit()
3608 return VCLUnoHelper::VCL2UnoEmbedMapUnit( m_pData->m_pObjectShell->GetMapUnit() ); in getMapUnit()
3661m_pData->m_pObjectShell->SetActivateEvent_Impl( bTemplate ? SFX_EVENT_CREATEDOC : SFX_EVENT_OPENDO… in loadFromStorage()
3662 m_pData->m_pObjectShell->Get_Impl()->bOwnsStorage = sal_False; in loadFromStorage()
3665 if ( !m_pData->m_pObjectShell->DoLoad(pMedium) ) in loadFromStorage()
3667 sal_uInt32 nError = m_pData->m_pObjectShell->GetErrorCode(); in loadFromStorage()
3684 if ( !m_pData->m_pObjectShell.Is() ) in storeToStorage()
3687 SfxAllItemSet aSet( m_pData->m_pObjectShell->GetPool() ); in storeToStorage()
3702 if ( xStorage == m_pData->m_pObjectShell->GetStorage() ) in storeToStorage()
3705 bSuccess = m_pData->m_pObjectShell->DoSave(); in storeToStorage()
3711 m_pData->m_pObjectShell->SetupStorage( xStorage, nVersion, sal_False ); in storeToStorage()
3719 bSuccess = m_pData->m_pObjectShell->DoSaveObjectAs( aMedium, sal_True ); in storeToStorage()
3720 m_pData->m_pObjectShell->DoSaveCompleted( NULL ); in storeToStorage()
3724 sal_uInt32 nError = m_pData->m_pObjectShell->GetErrorCode(); in storeToStorage()
3725 m_pData->m_pObjectShell->ResetError(); in storeToStorage()
3745 if ( !m_pData->m_pObjectShell.Is() ) in switchToStorage()
3749 if ( xStorage != m_pData->m_pObjectShell->GetStorage() in switchToStorage()
3750 && !m_pData->m_pObjectShell->SwitchPersistance( xStorage ) ) in switchToStorage()
3752 sal_uInt32 nError = m_pData->m_pObjectShell->GetErrorCode(); in switchToStorage()
3758 m_pData->m_pObjectShell->Get_Impl()->bOwnsStorage = sal_False; in switchToStorage()
3769 if ( !m_pData->m_pObjectShell.Is() ) in getDocumentStorage()
3772 return m_pData->m_pObjectShell->GetStorage(); in getDocumentStorage()
3781 m_pData->m_aInterfaceContainer.addInterface( in addStorageChangeListener()
3791 m_pData->m_aInterfaceContainer.removeInterface( in removeStorageChangeListener()
3798 if ( m_pData->m_xPrintable.is() ) in impl_getPrintHelper()
3800 m_pData->m_xPrintable = new SfxPrintHelper(); in impl_getPrintHelper()
3801 uno::Reference < lang::XInitialization > xInit( m_pData->m_xPrintable, uno::UNO_QUERY ); in impl_getPrintHelper()
3805 uno::Reference < view::XPrintJobBroadcaster > xBrd( m_pData->m_xPrintable, uno::UNO_QUERY ); in impl_getPrintHelper()
3806 xBrd->addPrintJobListener( new SfxPrintHelperListener_Impl( m_pData ) ); in impl_getPrintHelper()
3816 m_pData->m_sModuleIdentifier = Identifier; in setIdentifier()
3825 if (m_pData->m_sModuleIdentifier.getLength() > 0) in getIdentifier()
3826 return m_pData->m_sModuleIdentifier; in getIdentifier()
3827 if (m_pData->m_pObjectShell) in getIdentifier()
3828 return m_pData->m_pObjectShell->GetFactory().GetDocumentServiceName(); in getIdentifier()
3837 if ( ! m_pData->m_xTitleHelper.is ()) in impl_getTitleHelper()
3844m_pData->m_xTitleHelper = css::uno::Reference< css::frame::XTitle >(static_cast< ::cppu::OWeakObje… in impl_getTitleHelper()
3849 return m_pData->m_xTitleHelper; in impl_getTitleHelper()
3857 if ( ! m_pData->m_xNumberedControllers.is ()) in impl_getUntitledHelper()
3862m_pData->m_xNumberedControllers = css::uno::Reference< css::frame::XUntitledNumbers >(static_cast<… in impl_getUntitledHelper()
3868 return m_pData->m_xNumberedControllers; in impl_getUntitledHelper()
3880 if ( !m_pData->m_bExternalTitle && m_pData->m_pObjectShell ) in getTitle()
3882 SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); in getTitle()
3890 if ( m_pData->m_pObjectShell->IsReadOnlyUI() || (pMedium && pMedium->IsReadOnly()) ) in getTitle()
3892 else if ( m_pData->m_pObjectShell->IsDocShared() ) in getTitle()
3895 if ( m_pData->m_pObjectShell->GetDocumentSignatureState() == SIGNATURESTATE_SIGNATURES_OK ) in getTitle()
3911 m_pData->m_bExternalTitle = sal_True; in setTitle()
3987 sal_Int32 c = m_pData->m_seqControllers.getLength(); in getControllers()
3991 lEnum[i] <<= m_pData->m_seqControllers[i]; in getControllers()
4225 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getRDFRepository()
4240 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getStringValue()
4255 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getNamespace()
4269 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getLocalName()
4286 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getElementByMetadataReference()
4301 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getElementByURI()
4317 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getMetadataGraphsWithType()
4334 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in addMetadataFile()
4355 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in importMetadataFile()
4373 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in removeMetadataFile()
4389 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in addContentOrStylesFile()
4405 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in removeContentOrStylesFile()
4425 m_pData->CreateDMAUninitialized()); in loadMetadataFromStorage()
4437 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromStorage()
4440 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromStorage()
4452 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in storeMetadataToStorage()
4470 m_pData->CreateDMAUninitialized()); in loadMetadataFromMedium()
4482 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromMedium()
4485 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromMedium()
4496 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in storeMetadataToMedium()