Lines Matching refs:m_pObjectShell

205     SfxObjectShellRef                                       m_pObjectShell          ;  member
239 : m_pObjectShell ( pObjectShell ) in IMPL_SfxBaseModel_DataContainer()
268 if ( m_pObjectShell.Is() && !m_pObjectShell->IsModified() ) in storageIsModified()
269 m_pObjectShell->SetModified( sal_True ); in storageIsModified()
276 OSL_ENSURE(m_pObjectShell, "GetDMA: no object shell?"); in GetDMA()
277 if (!m_pObjectShell) in GetDMA()
286 m_pObjectShell->GetModel()); in GetDMA()
311 xContext, *m_pObjectShell, uri); in GetDMA()
318 return (m_pObjectShell) in CreateDMAUninitialized()
320 ::comphelper::getProcessComponentContext(), *m_pObjectShell) in CreateDMAUninitialized()
498 m_pFramesLock = new SfxOwnFramesLocker(m_pData->m_pObjectShell); in SfxSaveGuard()
683 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in getLibraryContainer()
684 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in getLibraryContainer()
702 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in createLibrary()
703 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in createLibrary()
719 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in addModule()
720 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in addModule()
736 if( !rxAccess.is() && m_pData->m_pObjectShell.Is() ) in addDialog()
737 rxAccess = implGetStarBasicAccess( m_pData->m_pObjectShell ); in addDialog()
816 EndListening( *m_pData->m_pObjectShell ); in dispose()
913 xMB->addModifyListener(new SfxDocInfoListener_Impl(*m_pData->m_pObjectShell)); in getDocumentProperties()
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()
970 SfxObjectShell* pObjectShell = m_pData->m_pObjectShell; in attachResource()
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()
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()
1088 SfxViewFrame* pFrame = SfxViewFrame::GetFirst( m_pData->m_pObjectShell ); in getArgs()
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()
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()
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()
1604 …m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "sto… in storeSelf()
1616 …m_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()
1661 …m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "suc… in storeSelf()
1664 …T_SAVEDOCDONE, GlobalEventConfig::GetEventName(STR_EVENT_SAVEDOCDONE), m_pData->m_pObjectShell ) ); in storeSelf()
1668 …m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in storeSelf()
1669 m_pData->m_pObjectShell->StoreLog(); in storeSelf()
1672 …VEDOCFAILED, GlobalEventConfig::GetEventName(STR_EVENT_SAVEDOCFAILED), m_pData->m_pObjectShell ) ); in storeSelf()
1701 if ( m_pData->m_pObjectShell.Is() ) in storeAsURL()
1703 …m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "sto… 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()
1740 if ( m_pData->m_pObjectShell.Is() ) in storeToURL()
1742 …m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "sto… in storeToURL()
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()
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()
2407 m_pData->m_xEvents = new SfxEvents_Impl( m_pData->m_pObjectShell, this ); 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()
2561 if ( m_pData->m_pObjectShell ) in NotifyStorageListeners_Impl()
2568 uno::Reference< embed::XStorage > xNewStorage = m_pData->m_pObjectShell->GetStorage(); in NotifyStorageListeners_Impl()
2593 if ( &rBC == m_pData->m_pObjectShell ) 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()
2634 ListenForStorage_Impl( m_pData->m_pObjectShell->GetStorage() ); in Notify()
2641 ListenForStorage_Impl( m_pData->m_pObjectShell->GetStorage() ); 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()
2682 ::rtl::OUString aTitle = m_pData->m_pObjectShell->GetTitle(); in Notify()
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()
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()
2853 …m_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()
2897 …m_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()
2957 sal_Bool bRet = m_pData->m_pObjectShell->APISaveAs_Impl( sURL, aParams ); in impl_store()
2973 sal_uInt32 nErrCode = m_pData->m_pObjectShell->GetErrorCode(); in impl_store()
2976 …m_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()
2997 …m_pData->m_pObjectShell->AddLog( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX "Sto… in impl_store()
3001 m_pData->m_pObjectShell->SetModifyPasswordEntered(); in impl_store()
3003 …VEASDOCDONE, 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 …VETODOCDONE, GlobalEventConfig::GetEventName(STR_EVENT_SAVETODOCDONE), m_pData->m_pObjectShell ) ); in impl_store()
3016 …m_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()
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()
3133 for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst( m_pData->m_pObjectShell ); pFrame; in getViewData()
3134 pFrame = SfxViewFrame::GetNext( *pFrame, m_pData->m_pObjectShell ) ) in getViewData()
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()
3363 if ( m_pData->m_pObjectShell.Is() ) in hasValidSignatures()
3364 …return ( m_pData->m_pObjectShell->ImplGetSignatureState( sal_False ) == SIGNATURESTATE_SIGNATURES_… in hasValidSignatures()
3465 if ( m_pData->m_pObjectShell->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) 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()
3661 …m_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()
3827 if (m_pData->m_pObjectShell) in getIdentifier()
3828 return m_pData->m_pObjectShell->GetFactory().GetDocumentServiceName(); in getIdentifier()
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()