Lines Matching refs:pSh

359     SfxObjectShell* pSh = GetObjectShell();  in ExecReload_Impl()  local
369 … if( !pSh || !pSh->HasName() || !(pSh->Get_Impl()->nLoadedFlags & SFX_LOADED_MAINDOCUMENT )) in ExecReload_Impl()
372 SfxMedium* pMed = pSh->GetMedium(); in ExecReload_Impl()
374 … SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pItem, SfxBoolItem, SID_VIEWONLY, sal_False ); in ExecReload_Impl()
385 …SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pVersionItem, SfxInt16Item, SID_VERSION, sal_Fals… in ExecReload_Impl()
403 if ( !pSh->IsReadOnly() ) in ExecReload_Impl()
406 if( pSh->IsModified() ) in ExecReload_Impl()
408 if ( pSh->PrepareClose() ) in ExecReload_Impl()
411 pMed = pSh->GetMedium(); in ExecReload_Impl()
424 if ( pSh->IsReadOnlyMedium() in ExecReload_Impl()
425 && ( pSh->GetModifyPasswordHash() || pSh->GetModifyPasswordInfo().getLength() ) in ExecReload_Impl()
426 && !pSh->IsModifyPasswordEntered() ) in ExecReload_Impl()
429 …InteractionHandler(), aDocumentName, pMed->GetOrigFilter(), pSh->GetModifyPasswordHash(), pSh->Get… in ExecReload_Impl()
437 pSh->SetModifyPasswordEntered(); in ExecReload_Impl()
441 pSh->SetReadOnlyUI( sal_False ); in ExecReload_Impl()
444 if ( !pSh->IsReadOnly() ) in ExecReload_Impl()
463 SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), in ExecReload_Impl()
495 if ( bHasStorage && pMed->GetStorage() == pSh->GetStorage() ) in ExecReload_Impl()
498 if ( !pSh->ConnectTmpStorage_Impl( pMed->GetStorage(), pMed ) ) in ExecReload_Impl()
527 pSh->DoSaveCompleted( pMed ); in ExecReload_Impl()
574 pSh->DoSaveCompleted( pMed ); in ExecReload_Impl()
575 pSh->Broadcast( SfxSimpleHint(SFX_HINT_MODECHANGED) ); in ExecReload_Impl()
592 if ( !pSh || !pSh->CanReload_Impl() ) in ExecReload_Impl()
598 !pSh->GetMedium()->IsExpired() ) in ExecReload_Impl()
600 if( pImp->bReloading || pSh->IsInModalMode() ) in ExecReload_Impl()
609 SfxObjectShellLock xOldObj( pSh ); in ExecReload_Impl()
614 sal_Bool bForEdit = !pSh->IsReadOnly(); in ExecReload_Impl()
913 SfxObjectShell* pSh = GetObjectShell(); in StateReload_Impl() local
914 if ( !pSh ) in StateReload_Impl()
934 … if ( !pSh || !pSh->HasName() || !( pSh->Get_Impl()->nLoadedFlags & SFX_LOADED_MAINDOCUMENT ) in StateReload_Impl()
935 || pSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ) in StateReload_Impl()
939 SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pItem, SfxBoolItem, SID_EDITDOC, sal_False ); in StateReload_Impl()
943 rSet.Put( SfxBoolItem( nWhich, !pSh->IsReadOnly() ) ); in StateReload_Impl()
952 … if ( !pSh || !pSh->CanReload_Impl() || pSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ) in StateReload_Impl()
988 SfxShell *pSh = GetDispatcher()->GetShell(0); in ExecHistory_Impl() local
989 ::svl::IUndoManager* pShUndoMgr = pSh->GetUndoManager(); in ExecHistory_Impl()
1013 if ( pSh->GetRepeatTarget() ) in ExecHistory_Impl()
1014 pShUndoMgr->Repeat( *pSh->GetRepeatTarget() ); in ExecHistory_Impl()
1035 SfxShell *pSh = GetDispatcher()->GetShell(0); in StateHistory_Impl() local
1036 if ( !pSh ) in StateHistory_Impl()
1040 ::svl::IUndoManager *pShUndoMgr = pSh->GetUndoManager(); in StateHistory_Impl()
1074 SfxRepeatTarget *pTarget = pSh->GetRepeatTarget(); in StateHistory_Impl()
1280 void SfxViewFrame::InvalidateBorderImpl( const SfxViewShell* pSh ) in InvalidateBorderImpl() argument
1282 if( pSh && !nAdjustPosPixelLock ) in InvalidateBorderImpl()
1771 SfxViewShell* pSh, in DoAdjustPosSizePixel() argument
1779 if( pSh && pSh->GetWindow() && !nAdjustPosPixelLock ) in DoAdjustPosSizePixel()
1783 pSh->InnerResizePixel( rPos, rSize ); in DoAdjustPosSizePixel()
1785 pSh->OuterResizePixel( rPos, rSize ); in DoAdjustPosSizePixel()
1856 void SfxViewFrame::DoAdjustPosSize( SfxViewShell *pSh, in DoAdjustPosSize() argument
1860 if( pSh && !nAdjustPosPixelLock ) in DoAdjustPosSize()
1862 Window *pWindow = pSh->GetWindow(); in DoAdjustPosSize()
1865 DoAdjustPosSizePixel(pSh, aPos, aSize); in DoAdjustPosSize()