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()
2371 if ( ! m_pData->m_xEvents.is() ) in getEvents()
2373 m_pData->m_xEvents = new SfxEvents_Impl( m_pData->m_pObjectShell, this ); in getEvents()
2376 return m_pData->m_xEvents; in getEvents()
2388 if ( m_pData->m_pObjectShell ) in getBasicLibraries()
2389 xBasicLibraries.set( m_pData->m_pObjectShell->GetBasicContainer(), UNO_QUERY_THROW ); in getBasicLibraries()
2398 if ( m_pData->m_pObjectShell ) in getDialogLibraries()
2399 xDialogLibraries.set( m_pData->m_pObjectShell->GetDialogContainer(), UNO_QUERY_THROW ); in getDialogLibraries()
2407 if ( m_pData->m_pObjectShell ) in getAllowMacroExecution()
2408 return m_pData->m_pObjectShell->AdjustMacroMode( String(), false ); in getAllowMacroExecution()
2456m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference< XDOCEVENTLISTENE… in addEventListener()
2467m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XDOCEVENTLIST… in removeEventListener()
2478m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference< document::XDocum… in addDocumentEventListener()
2486m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< document::XDo… in removeDocumentEventListener()
2527 if ( m_pData->m_pObjectShell ) in NotifyStorageListeners_Impl()
2530 m_pData->m_aInterfaceContainer.getContainer( in NotifyStorageListeners_Impl()
2534 uno::Reference< embed::XStorage > xNewStorage = m_pData->m_pObjectShell->GetStorage(); in NotifyStorageListeners_Impl()
2556 if ( !m_pData ) in Notify()
2559 if ( &rBC == m_pData->m_pObjectShell ) in Notify()
2578 if ( m_pData->m_xUIConfigurationManager.is() in Notify()
2579 && m_pData->m_pObjectShell->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) in Notify()
2588 …if ( xConfigStorage.is() || !m_pData->m_pObjectShell->GetStorage()->hasByName( aUIConfigFolderName… in Notify()
2591 …Reference< ui::XUIConfigurationStorage > xUIConfigStorage( m_pData->m_xUIConfigurationManager, uno… in Notify()
2600 ListenForStorage_Impl( m_pData->m_pObjectShell->GetStorage() ); in Notify()
2607 ListenForStorage_Impl( m_pData->m_pObjectShell->GetStorage() ); in Notify()
2608 m_pData->m_bModifiedSinceLastSave = sal_False; in Notify()
2614 m_pData->m_sURL = m_pData->m_pObjectShell->GetMedium()->GetName(); in Notify()
2616 SfxItemSet *pSet = m_pData->m_pObjectShell->GetMedium()->GetItemSet(); in Notify()
2618 ::rtl::OUString aTitle = m_pData->m_pObjectShell->GetTitle(); in Notify()
2621 attachResource( m_pData->m_pObjectShell->GetMedium()->GetName(), aArgs ); in Notify()
2628 m_pData->m_bModifiedSinceLastSave = sal_False; in Notify()
2634 m_pData->m_bModifiedSinceLastSave = isModified(); in Notify()
2648 ::rtl::OUString aTitle = m_pData->m_pObjectShell->GetTitle(); in Notify()
2649 addTitle_Impl( m_pData->m_seqArguments, aTitle ); in Notify()
2674 …::cppu::OInterfaceContainerHelper* pIC = m_pData->m_aInterfaceContainer.getContainer( ::getCppuTyp… in NotifyModifyListeners_Impl()
2683 m_pData->m_bModifiedSinceLastSave = const_cast< SfxBaseModel* >( this )->isModified(); in NotifyModifyListeners_Impl()
2691 if ( !m_pData->m_pObjectShell.Is() || !m_pData->m_pObjectShell->IsEnableSetModified() ) in changing()
2712 return m_pData ? (SfxObjectShell*) m_pData->m_pObjectShell : 0; in GetObjectShell()
2717 return m_pData ? (SfxObjectShell*) m_pData->m_pObjectShell : 0; in impl_getObjectShell()
2726 if ( !m_pData || !m_pData->m_pObjectShell ) in IsInitialized()
2732 return m_pData->m_pObjectShell->GetMedium() != NULL; in IsInitialized()
2745 return ( m_pData == NULL ) ; in impl_isDisposed()
2755 SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); in GetMediumFilterName_Impl()
2775 if ( !bSaveTo && m_pData->m_pObjectShell && sURL.getLength() in impl_store()
2786 SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); in impl_store()
2817 if ( m_pData->m_pObjectShell->IsDocShared() ) in impl_store()
2819m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Can… in impl_store()
2820 m_pData->m_pObjectShell->StoreLog(); in impl_store()
2847 if ( !bSaved && m_pData->m_pObjectShell ) in impl_store()
2850 m_pData->m_pObjectShell ) ); in impl_store()
2863m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Mis… in impl_store()
2864 m_pData->m_pObjectShell->StoreLog(); in impl_store()
2884 sal_uInt32 nOldModifyPasswordHash = m_pData->m_pObjectShell->GetModifyPasswordHash(); in impl_store()
2885 m_pData->m_pObjectShell->SetModifyPasswordHash( nModifyPasswordHash ); in impl_store()
2886 …uno::Sequence< beans::PropertyValue > aOldModifyPasswordInfo = m_pData->m_pObjectShell->GetModifyP… in impl_store()
2887 m_pData->m_pObjectShell->SetModifyPasswordInfo( aModifyPasswordInfo ); in impl_store()
2893 m_pData->m_pObjectShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED; in impl_store()
2899 if (m_pData->m_xDocumentInfo.is()) in impl_store()
2910 m_pData->m_xDocumentProperties = xNewDocProps; in impl_store()
2911 m_pData->m_xDocumentInfo = xNewDocInfo; in impl_store()
2919 m_pData->m_xDocumentProperties = xNewDocProps; in impl_store()
2923 sal_Bool bRet = m_pData->m_pObjectShell->APISaveAs_Impl( sURL, aParams ); in impl_store()
2928 m_pData->m_xDocumentProperties = xOldDocProps; in impl_store()
2929 m_pData->m_xDocumentInfo = xOldDocInfo; in impl_store()
2939 sal_uInt32 nErrCode = m_pData->m_pObjectShell->GetErrorCode(); in impl_store()
2942m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in impl_store()
2945 m_pData->m_pObjectShell->ResetError(); in impl_store()
2955 SfxErrorContext aEc( ERRCTX_SFX_SAVEASDOC, m_pData->m_pObjectShell->GetTitle() ); in impl_store()
2963m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in impl_store()
2966 m_pData->m_aPreusedFilterName = GetMediumFilterName_Impl(); in impl_store()
2967 m_pData->m_pObjectShell->SetModifyPasswordEntered(); in impl_store()
2969 …SAVEASDOCDONE, GlobalEventConfig::GetEventName(STR_EVENT_SAVEASDOCDONE), m_pData->m_pObjectShell )… in impl_store()
2973 m_pData->m_pObjectShell->SetModifyPasswordHash( nOldModifyPasswordHash ); in impl_store()
2974 m_pData->m_pObjectShell->SetModifyPasswordInfo( aOldModifyPasswordInfo ); in impl_store()
2976 …SAVETODOCDONE, GlobalEventConfig::GetEventName(STR_EVENT_SAVETODOCDONE), m_pData->m_pObjectShell )… in impl_store()
2982m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in impl_store()
2983 m_pData->m_pObjectShell->StoreLog(); in impl_store()
2985 m_pData->m_pObjectShell->SetModifyPasswordHash( nOldModifyPasswordHash ); in impl_store()
2986 m_pData->m_pObjectShell->SetModifyPasswordInfo( aOldModifyPasswordInfo ); in impl_store()
2990 m_pData->m_pObjectShell ) ); in impl_store()
3034m_pData->m_aInterfaceContainer.getContainer( ::getCppuType( (const uno::Reference< document::XDocu… in postEvent_Impl()
3051 …pIC = m_pData->m_aInterfaceContainer.getContainer( ::getCppuType( (const uno::Reference< document:… in postEvent_Impl()
3074 if ( m_pData->m_pObjectShell.Is() && !m_pData->m_contViewData.is() ) in getViewData()
3077 if ( !pActFrame || pActFrame->GetObjectShell() != m_pData->m_pObjectShell ) in getViewData()
3078 pActFrame = SfxViewFrame::GetFirst( m_pData->m_pObjectShell ); in getViewData()
3084 m_pData->m_contViewData = Reference < container::XIndexAccess >( in getViewData()
3089 if ( !m_pData->m_contViewData.is() ) in getViewData()
3095 … uno::Reference < container::XIndexContainer > xCont( m_pData->m_contViewData, uno::UNO_QUERY ); in getViewData()
3099 for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst( m_pData->m_pObjectShell ); pFrame; in getViewData()
3100 pFrame = SfxViewFrame::GetNext( *pFrame, m_pData->m_pObjectShell ) ) in getViewData()
3110 return m_pData->m_contViewData; in getViewData()
3117 m_pData->m_contViewData = aData; in setViewData()
3127 ::cppu::OInterfaceContainerHelper* pIC = m_pData->m_aInterfaceContainer.getContainer( in notifyEvent()
3150 …return !impl_isDisposed() && (NULL != m_pData->m_aInterfaceContainer.getContainer( ::getCppuType((… in hasEventListeners()
3159 uno::Reference < view::XPrintJobBroadcaster > xPJB( m_pData->m_xPrintable, uno::UNO_QUERY ); in addPrintJobListener()
3173 uno::Reference < view::XPrintJobBroadcaster > xPJB( m_pData->m_xPrintable, uno::UNO_QUERY ); in removePrintJobListener()
3209 if ( !m_pData->m_pStorageModifyListen.is() ) in ListenForStorage_Impl()
3211m_pData->m_pStorageModifyListen = new ::sfx2::DocumentStorageModifyListener( *m_pData, Application… in ListenForStorage_Impl()
3215 xModifiable->addModifyListener( m_pData->m_pStorageModifyListen.get() ); in ListenForStorage_Impl()
3225 if ( m_pData->m_pObjectShell.Is() ) in getDocumentSubStorage()
3227 uno::Reference< embed::XStorage > xStorage = m_pData->m_pObjectShell->GetStorage(); in getDocumentSubStorage()
3252 if ( m_pData->m_pObjectShell.Is() ) in getDocumentSubStoragesNames()
3254 uno::Reference < embed::XStorage > xStorage = m_pData->m_pObjectShell->GetStorage(); in getDocumentSubStoragesNames()
3321 OSL_ENSURE( m_pData->m_sRuntimeUID.getLength() > 0, in getRuntimeUID()
3323 return m_pData->m_sRuntimeUID; in getRuntimeUID()
3329 if ( m_pData->m_pObjectShell.Is() ) in hasValidSignatures()
3330 …return ( m_pData->m_pObjectShell->ImplGetSignatureState( sal_False ) == SIGNATURESTATE_SIGNATURES_… in hasValidSignatures()
3394 if ( !m_pData->m_xUIConfigurationManager.is() ) in getUIConfigurationManager()
3431 if ( m_pData->m_pObjectShell->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) in getUIConfigurationManager()
3492 m_pData->m_xUIConfigurationManager = xNewUIConfMan; in getUIConfigurationManager()
3495 return m_pData->m_xUIConfigurationManager; in getUIConfigurationManager()
3510 if ( !m_pData->m_pObjectShell.Is() ) in setVisualAreaSize()
3513 SfxViewFrame* pViewFrm = SfxViewFrame::GetFirst( m_pData->m_pObjectShell, sal_False ); in setVisualAreaSize()
3514 …if ( pViewFrm && m_pData->m_pObjectShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED && !pViewFrm… in setVisualAreaSize()
3520 …Size aWrongDiff = OutputDevice::LogicToLogic( aDiff , m_pData->m_pObjectShell->GetMapUnit(), pWind… in setVisualAreaSize()
3528 Rectangle aTmpRect = m_pData->m_pObjectShell->GetVisArea( ASPECT_CONTENT ); in setVisualAreaSize()
3530 m_pData->m_pObjectShell->SetVisArea( aTmpRect ); in setVisualAreaSize()
3542 if ( !m_pData->m_pObjectShell.Is() ) in getVisualAreaSize()
3545 Rectangle aTmpRect = m_pData->m_pObjectShell->GetVisArea( ASPECT_CONTENT ); in getVisualAreaSize()
3549 SfxViewFrame* pViewFrm = m_pData->m_pObjectShell.Is() ? in getVisualAreaSize()
3550 SfxViewFrame::GetFirst( m_pData->m_pObjectShell, 0, sal_False ) : 0; in getVisualAreaSize()
3555 MapMode aExternalMapMode( m_pData->m_pObjectShell->GetMapUnit() ); in getVisualAreaSize()
3571 if ( !m_pData->m_pObjectShell.Is() ) in getMapUnit()
3574 return VCLUnoHelper::VCL2UnoEmbedMapUnit( m_pData->m_pObjectShell->GetMapUnit() ); in getMapUnit()
3627m_pData->m_pObjectShell->SetActivateEvent_Impl( bTemplate ? SFX_EVENT_CREATEDOC : SFX_EVENT_OPENDO… in loadFromStorage()
3628 m_pData->m_pObjectShell->Get_Impl()->bOwnsStorage = sal_False; in loadFromStorage()
3631 if ( !m_pData->m_pObjectShell->DoLoad(pMedium) ) in loadFromStorage()
3633 sal_uInt32 nError = m_pData->m_pObjectShell->GetErrorCode(); in loadFromStorage()
3650 if ( !m_pData->m_pObjectShell.Is() ) in storeToStorage()
3653 SfxAllItemSet aSet( m_pData->m_pObjectShell->GetPool() ); in storeToStorage()
3668 if ( xStorage == m_pData->m_pObjectShell->GetStorage() ) in storeToStorage()
3671 bSuccess = m_pData->m_pObjectShell->DoSave(); in storeToStorage()
3677 m_pData->m_pObjectShell->SetupStorage( xStorage, nVersion, sal_False ); in storeToStorage()
3685 bSuccess = m_pData->m_pObjectShell->DoSaveObjectAs( aMedium, sal_True ); in storeToStorage()
3686 m_pData->m_pObjectShell->DoSaveCompleted( NULL ); in storeToStorage()
3690 sal_uInt32 nError = m_pData->m_pObjectShell->GetErrorCode(); in storeToStorage()
3691 m_pData->m_pObjectShell->ResetError(); in storeToStorage()
3711 if ( !m_pData->m_pObjectShell.Is() ) in switchToStorage()
3715 if ( xStorage != m_pData->m_pObjectShell->GetStorage() in switchToStorage()
3716 && !m_pData->m_pObjectShell->SwitchPersistance( xStorage ) ) in switchToStorage()
3718 sal_uInt32 nError = m_pData->m_pObjectShell->GetErrorCode(); in switchToStorage()
3724 m_pData->m_pObjectShell->Get_Impl()->bOwnsStorage = sal_False; in switchToStorage()
3735 if ( !m_pData->m_pObjectShell.Is() ) in getDocumentStorage()
3738 return m_pData->m_pObjectShell->GetStorage(); in getDocumentStorage()
3747 m_pData->m_aInterfaceContainer.addInterface( in addStorageChangeListener()
3757 m_pData->m_aInterfaceContainer.removeInterface( in removeStorageChangeListener()
3764 if ( m_pData->m_xPrintable.is() ) in impl_getPrintHelper()
3766 m_pData->m_xPrintable = new SfxPrintHelper(); in impl_getPrintHelper()
3767 uno::Reference < lang::XInitialization > xInit( m_pData->m_xPrintable, uno::UNO_QUERY ); in impl_getPrintHelper()
3771 uno::Reference < view::XPrintJobBroadcaster > xBrd( m_pData->m_xPrintable, uno::UNO_QUERY ); in impl_getPrintHelper()
3772 xBrd->addPrintJobListener( new SfxPrintHelperListener_Impl( m_pData ) ); in impl_getPrintHelper()
3782 m_pData->m_sModuleIdentifier = Identifier; in setIdentifier()
3791 if (m_pData->m_sModuleIdentifier.getLength() > 0) in getIdentifier()
3792 return m_pData->m_sModuleIdentifier; in getIdentifier()
3793 if (m_pData->m_pObjectShell) in getIdentifier()
3794 return m_pData->m_pObjectShell->GetFactory().GetDocumentServiceName(); in getIdentifier()
3803 if ( ! m_pData->m_xTitleHelper.is ()) in impl_getTitleHelper()
3810m_pData->m_xTitleHelper = css::uno::Reference< css::frame::XTitle >(static_cast< ::cppu::OWeakObje… in impl_getTitleHelper()
3815 return m_pData->m_xTitleHelper; in impl_getTitleHelper()
3823 if ( ! m_pData->m_xNumberedControllers.is ()) in impl_getUntitledHelper()
3828m_pData->m_xNumberedControllers = css::uno::Reference< css::frame::XUntitledNumbers >(static_cast<… in impl_getUntitledHelper()
3834 return m_pData->m_xNumberedControllers; in impl_getUntitledHelper()
3846 if ( !m_pData->m_bExternalTitle && m_pData->m_pObjectShell ) in getTitle()
3848 SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); in getTitle()
3856 if ( m_pData->m_pObjectShell->IsReadOnlyUI() || (pMedium && pMedium->IsReadOnly()) ) in getTitle()
3858 else if ( m_pData->m_pObjectShell->IsDocShared() ) in getTitle()
3861 if ( m_pData->m_pObjectShell->GetDocumentSignatureState() == SIGNATURESTATE_SIGNATURES_OK ) in getTitle()
3877 m_pData->m_bExternalTitle = sal_True; in setTitle()
3953 sal_Int32 c = m_pData->m_seqControllers.getLength(); in getControllers()
3957 lEnum[i] <<= m_pData->m_seqControllers[i]; in getControllers()
4191 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getRDFRepository()
4206 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getStringValue()
4221 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getNamespace()
4235 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getLocalName()
4252 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getElementByMetadataReference()
4267 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getElementByURI()
4283 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in getMetadataGraphsWithType()
4300 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in addMetadataFile()
4321 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in importMetadataFile()
4339 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in removeMetadataFile()
4355 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in addContentOrStylesFile()
4371 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in removeContentOrStylesFile()
4391 m_pData->CreateDMAUninitialized()); in loadMetadataFromStorage()
4403 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromStorage()
4406 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromStorage()
4418 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in storeMetadataToStorage()
4436 m_pData->CreateDMAUninitialized()); in loadMetadataFromMedium()
4448 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromMedium()
4451 m_pData->m_xDocumentMetadata = xDMA; in loadMetadataFromMedium()
4462 const uno::Reference<rdf::XDocumentMetadataAccess> xDMA(m_pData->GetDMA()); in storeMetadataToMedium()