Lines Matching refs:rSh

235     void Start( SwWrtShell& rSh, sal_uInt16 nWrdLen );
236 void Stop( SwWrtShell& rSh );
250 void FillStrArr( SwWrtShell& rSh, const String& rWord );
273 inline sal_Bool IsDrawObjSelectable( const SwWrtShell& rSh, const Point& rPt ) in IsDrawObjSelectable() argument
277 switch( rSh.GetObjCntType( rPt, pObj )) in IsDrawObjSelectable()
297 SwWrtShell &rSh = rView.GetWrtShell(); in UpdatePointer() local
301 if ( rSh.IsOverReadOnlyPos( rLPt ) ) in UpdatePointer()
323 0 !=(pFmt = rSh.GetFmtFromObj( rLPt, &pRect )) && in UpdatePointer()
331 pUserMarker = new SdrDropMarkerOverlay( *rSh.GetDrawView(), aTmp ); in UpdatePointer()
340 rSh.SwCrsrShell::SetVisCrsr( rLPt ); in UpdatePointer()
346 if( !rSh.VisArea().Width() ) in UpdatePointer()
349 SET_CURR_SHELL(&rSh); in UpdatePointer()
354 int nChainable = rSh.Chainable( aRect, *rSh.GetFlyFrmFmt(), rLPt ); in UpdatePointer()
363 pUserMarker = new SdrDropMarkerOverlay( *rSh.GetDrawView(), aTmp ); in UpdatePointer()
393 SdrView *pSdrView = rSh.GetDrawView(); in UpdatePointer()
398 rSh.IsCrsrReadonly(); in UpdatePointer()
410 const sal_Bool bNotInSelObj = !rSh.IsInsideSelectedObj( rLPt ); in UpdatePointer()
437 if ( rSh.IsObjSelectable( rLPt ) ) in UpdatePointer()
462 (rSh.IsObjSelected() || rSh.IsFrmSelected()) && in UpdatePointer()
463 (!rSh.IsSelObjProtected(FLYPROTECT_POS)); in UpdatePointer()
472 if ( rSh.IsFrmSelected() && !bNotInSelObj ) in UpdatePointer()
482 if (rSh.IsSelObjProtected(FLYPROTECT_SIZE)) in UpdatePointer()
501 if (bIsDocReadOnly || (rSh.IsObjSelected() && rSh.IsSelObjProtected(FLYPROTECT_CONTENT))) in UpdatePointer()
508 SetPointer( pSdrView->GetPreferedPointer( rLPt, rSh.GetOut() ) ); in UpdatePointer()
513 if( !rSh.IsPageAtPos( rLPt ) || pAnchorMarker ) in UpdatePointer()
524 if( rSh.GetContentAtPos( rLPt, aSwContentAtPos) ) in UpdatePointer()
538 if( POINTER_TEXT == eStyle && rSh.IsInVerticalText( &rLPt )) in UpdatePointer()
554 SwWrtShell &rSh = rView.GetWrtShell(); in IMPL_LINK() local
556 const SwRect aOldVis( rSh.VisArea() ); in IMPL_LINK()
559 if ( !rSh.VisArea().IsInside( aModPt ) ) in IMPL_LINK()
569 (rSh.*rSh.fnDrag)(&aModPt,sal_False); in IMPL_LINK()
573 aModPt = rSh.GetCntntPos( aModPt,aModPt.Y() > rSh.VisArea().Bottom() ); in IMPL_LINK()
580 rSh.SelectTableRowCol( *pRowColumnSelectionStart, &aPos, bIsRowDrag ); in IMPL_LINK()
583 (rSh.*rSh.fnSetCrsr)( &aModPt, sal_False ); in IMPL_LINK()
588 const SwRect& rVisArea = rSh.VisArea(); in IMPL_LINK()
589 if( aOldVis == rVisArea && !rSh.IsStartOfDoc() && !rSh.IsEndOfDoc() ) in IMPL_LINK()
594 rSh.Up( sal_True, 1 ); in IMPL_LINK()
596 rSh.Down( sal_True, 1 ); in IMPL_LINK()
600 aMovePos += rSh.VisArea().Pos() - aOldVis.Pos(); in IMPL_LINK()
728 SwWrtShell& rSh = rView.GetWrtShell(); in FlushInBuffer() local
735 if ( xISC.is() && IsInputSequenceCheckingRequired( aInBuffer, *rSh.GetCrsr() ) ) in FlushInBuffer()
741 rSh.Push(); // push current cursor to stack in FlushInBuffer()
745 rSh.NormalizePam(); // make point be the first (left) one in FlushInBuffer()
746 if (!rSh.GetCrsr()->HasMark()) in FlushInBuffer()
747 rSh.GetCrsr()->SetMark(); in FlushInBuffer()
748 rSh.GetCrsr()->GetMark()->nContent = 0; in FlushInBuffer()
749 String aLeftText( rSh.GetCrsr()->GetTxt() ); in FlushInBuffer()
815 rSh.Pop( sal_False ); // pop old cursor from stack in FlushInBuffer()
822 SwPaM &rCrsr = *rSh.GetCrsr(); in FlushInBuffer()
862 rSh.GetCurAttr(aLangSet); in FlushInBuffer()
922 rSh.SetAttrItem( aLangItem ); in FlushInBuffer()
927 rSh.Insert( aInBuffer ); in FlushInBuffer()
951 SwWrtShell &rSh = rView.GetWrtShell(); in ChangeFly() local
952 SwRect aTmp = rSh.GetFlyRect(); in ChangeFly()
954 !rSh.IsSelObjProtected( FLYPROTECT_POS ) ) in ChangeFly()
956 SfxItemSet aSet(rSh.GetAttrPool(), in ChangeFly()
962 rSh.GetFlyFrmAttr( aSet ); in ChangeFly()
979 aSnap = rSh.GetViewOptions()->GetSnapSize(); in ChangeFly()
980 short nDiv = rSh.GetViewOptions()->GetDivisionX(); in ChangeFly()
983 nDiv = rSh.GetViewOptions()->GetDivisionY(); in ChangeFly()
1001 rSh.CalcBoundRect( aBoundRect, eAnchorId, in ChangeFly()
1112 rSh.StartAllAction(); in ChangeFly()
1114 rSh.SetFlyFrmAttr( aSet ); in ChangeFly()
1129 rSh.SetFlyPos( aTmp.Pos() ); in ChangeFly()
1130 rSh.EndAllAction(); in ChangeFly()
1138 SwWrtShell &rSh = rView.GetWrtShell(); in ChangeDrawing() local
1139 rSh.StartUndo(); in ChangeDrawing()
1183 sal_uInt8 nProtect = rSh.IsSelObjProtected( FLYPROTECT_POS|FLYPROTECT_SIZE ); in ChangeDrawing()
1184 Size aSnap( rSh.GetViewOptions()->GetSnapSize() ); in ChangeDrawing()
1185 short nDiv = rSh.GetViewOptions()->GetDivisionX(); in ChangeDrawing()
1188 nDiv = rSh.GetViewOptions()->GetDivisionY(); in ChangeDrawing()
1205 SdrView *pSdrView = rSh.GetDrawView(); in ChangeDrawing()
1208 rSh.StartAllAction(); in ChangeDrawing()
1216 const bool bVertAnchor = rSh.IsFrmVertical( sal_True, bDummy1, bDummy2 ); in ChangeDrawing()
1219 !bHoriMove || (rSh.GetAnchorId() != FLY_AS_CHAR); in ChangeDrawing()
1223 rSh.SetModified(); in ChangeDrawing()
1237 rSh.MoveAnchor( nAnchorDir ); in ChangeDrawing()
1263 rSh.SetModified(); in ChangeDrawing()
1274 rSh.EndAllAction(); in ChangeDrawing()
1277 rSh.EndUndo(); in ChangeDrawing()
1307 SwWrtShell &rSh = rView.GetWrtShell(); in KeyInput() local
1309 rSh.IsCrsrReadonly(); in KeyInput()
1323 pQuickHlpData->Stop( rSh ); in KeyInput()
1327 if ( !bIsDocReadOnly && rSh.GetDrawView() && rSh.GetDrawView()->KeyInput( rKEvt, this ) ) in KeyInput()
1329 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll( sal_False ); in KeyInput()
1330 rSh.SetModified(); in KeyInput()
1337 rSh.Edit(); in KeyInput()
1347 if( !bIsDocReadOnly && !rSh.IsSelFrmMode() && !rSh.IsObjSelected() ) in KeyInput()
1363 const bool bVertText = rSh.IsInVerticalText(); in KeyInput()
1364 const bool bTblCrsr = rSh.GetTableCrsr(); in KeyInput()
1365 const bool bVertTable = rSh.IsTableVertical(); in KeyInput()
1377 if ( rSh.IsInRightToLeftText() ) in KeyInput()
1397 const SwFieldType* pFldType = rSh.GetFldType( 0, RES_POSTITFLD ); in KeyInput()
1398 rSh.MoveFldType( pFldType, bNext ); in KeyInput()
1402 const SwFrmFmt* pFlyFmt = rSh.GetFlyFrmFmt(); in KeyInput()
1429 rSh.ExecMacro( *pMacro, &sRet, &xArgs ); in KeyInput()
1437 && rSh.HasDrawView() && in KeyInput()
1438 (0 != (nLclSelectionType = rSh.GetSelectionType()) && in KeyInput()
1441 rSh.GetDrawView()->GetMarkedObjectList().GetMarkCount() == 1)))) in KeyInput()
1443 SdrHdlList& rHdlList = (SdrHdlList&)rSh.GetDrawView()->GetHdlList(); in KeyInput()
1539 rSh.SetReadOnlyAvailable( !rSh.IsReadOnlyAvailable() ); in KeyInput()
1545 !rSh.IsTableMode() && rSh.GetTableFmt() && in KeyInput()
1546 rSh.IsSttPara() /*&& rSh.IsEndPara()*/ && in KeyInput()
1547 !rSh.HasReadonlySel() ) in KeyInput()
1551 rSh.Push(); in KeyInput()
1552 if( !rSh.MoveSection( fnSectionCurr, fnSectionStart) && in KeyInput()
1553 !rSh.IsTableBoxTextFormat() ) in KeyInput()
1557 if( rSh.HasMark() ) in KeyInput()
1558 rSh.SwapPam(); in KeyInput()
1560 rSh.SttSelect(); in KeyInput()
1561 rSh.MoveSection( fnSectionCurr, fnSectionEnd ); in KeyInput()
1562 rSh.Pop( sal_True ); in KeyInput()
1563 rSh.EndSelect(); in KeyInput()
1567 rSh.Pop( sal_False ); in KeyInput()
1571 if( pACorr && aTmpQHD.HasCntnt() && !rSh.HasSelection() && in KeyInput()
1572 !rSh.HasReadonlySel() && !aTmpQHD.bIsAutoText && in KeyInput()
1647 if( rSh.IsTableMode() || !rSh.GetTableFmt() ) in KeyInput()
1652 … (rSh.GetSelectionType() & (nsSelectionType::SEL_DRW|nsSelectionType::SEL_DRW_FORM)) && in KeyInput()
1653 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
1670 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
1674 && rSh.GetDrawView()->AreObjectsMarked() ) ) in KeyInput()
1746 if( rSh.IsTableMode() || !rSh.GetTableFmt() || in KeyInput()
1751 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
1757 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
1772 if (rSh.IsInFrontOfLabel() && in KeyInput()
1773 rSh.NumOrNoNum(sal_False)) in KeyInput()
1778 if( !rSh.IsTableMode() && rSh.GetTableFmt() ) in KeyInput()
1789 if( !rSh.IsTableMode() && rSh.GetTableFmt() ) in KeyInput()
1801 if ( !rSh.HasReadonlySel() in KeyInput()
1802 && !rSh.CrsrInsideInputFld() ) in KeyInput()
1804 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
1811 rSh.GetDrawView()->GetMarkedObjectList().GetMarkCount() == 1) in KeyInput()
1813 else if( aTmpQHD.HasCntnt() && !rSh.HasSelection() && in KeyInput()
1819 rSh.GetNumRuleAtCurrCrsrPos() && in KeyInput()
1820 !rSh.GetNumRuleAtCurrCrsrPos()->IsOutlineRule() && in KeyInput()
1821 !rSh.HasSelection() && in KeyInput()
1822 rSh.IsSttPara() && rSh.IsEndPara() ) in KeyInput()
1838 if ( !rSh.HasReadonlySel() in KeyInput()
1839 && !rSh.IsSttPara() in KeyInput()
1840 && rSh.GetNumRuleAtCurrCrsrPos() in KeyInput()
1841 && !rSh.CrsrInsideInputFld() ) in KeyInput()
1845 else if( rSh.CanSpecialInsert() ) in KeyInput()
1851 if ( !rSh.HasReadonlySel() in KeyInput()
1852 && !rSh.CrsrInsideInputFld() ) in KeyInput()
1862 if ( rSh.IsSttPara() in KeyInput()
1863 && !rSh.HasSelection() in KeyInput()
1864 && ( rSh.GetNumRuleAtCurrCrsrPos() == NULL in KeyInput()
1865 || ( rSh.IsNoNum() && bOnlyBackspaceKey ) ) ) in KeyInput()
1867 bDone = rSh.TryRemoveIndent(); in KeyInput()
1874 if ( rSh.IsSttPara() && !rSh.IsNoNum() ) in KeyInput()
1877 && rSh.GetNumLevel() > 0) in KeyInput()
1901 if ( !bDone && rSh.IsSttPara() ) in KeyInput()
1904 if ( bOnlyBackspaceKey && !rSh.IsNoNum() ) in KeyInput()
1908 else if ( !bOnlyBackspaceKey && rSh.IsNoNum() ) in KeyInput()
1913 && rSh.IsSttPara() in KeyInput()
1914 && rSh.IsEndPara() in KeyInput()
1915 && !rSh.HasSelection() ) in KeyInput()
1917 const SwNumRule* pCurrNumRule( rSh.GetNumRuleAtCurrCrsrPos() ); in KeyInput()
1919 && pCurrNumRule != rSh.GetOutlineNumRule() ) in KeyInput()
1925 && rSh.NumOrNoNum( !bOnlyBackspaceKey, sal_True ) ) in KeyInput()
1946 sal_Bool bOld = rSh.ChgCrsrTimerFlag( sal_False ); in KeyInput()
1948 …if (rSh.IsFormProtected() || rSh.GetCurrentFieldmark() || rSh.GetChar(sal_False)==CH_TXT_ATR_FORME… in KeyInput()
1952 else if ( !rSh.IsMultiSelection() && rSh.CrsrInsideInputFld() ) in KeyInput()
1957 else if( rSh.GetNumRuleAtCurrCrsrPos() in KeyInput()
1958 && rSh.IsSttOfPara() in KeyInput()
1959 && !rSh.HasReadonlySel() ) in KeyInput()
1961 if ( !rSh.IsMultiSelection() in KeyInput()
1962 && rSh.IsFirstOfNumRuleAtCrsrPos() in KeyInput()
1968 else if ( rSh.GetTableFmt() ) in KeyInput()
1970 if( rSh.HasSelection() || rSh.HasReadonlySel() ) in KeyInput()
1975 else if ( rSh.GetSelectionType() & in KeyInput()
1986 if( rSh.IsSttOfPara() && !rSh.HasReadonlySel() ) in KeyInput()
1988 SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl(); in KeyInput()
1998 rSh.ChgCrsrTimerFlag( bOld ); in KeyInput()
2005 sal_Bool bOld = rSh.ChgCrsrTimerFlag( sal_False ); in KeyInput()
2006 sal_Bool bOld = rSh.ChgCrsrTimerFlag( sal_False ); in KeyInput()
2008 …if (rSh.IsFormProtected() || rSh.GetCurrentFieldmark()|| rSh.GetChar(sal_False)==CH_TXT_ATR_FORMEL… in KeyInput()
2012 else if ( !rSh.IsMultiSelection() && rSh.CrsrInsideInputFld() ) in KeyInput()
2017 else if( rSh.GetNumRuleAtCurrCrsrPos() in KeyInput()
2018 && rSh.IsSttOfPara() in KeyInput()
2019 && !rSh.HasReadonlySel() ) in KeyInput()
2021 if ( !rSh.IsMultiSelection() in KeyInput()
2022 && rSh.IsFirstOfNumRuleAtCrsrPos() in KeyInput()
2028 else if ( rSh.GetTableFmt() ) in KeyInput()
2030 if( rSh.HasSelection() || rSh.HasReadonlySel() ) in KeyInput()
2035 else if ( rSh.GetSelectionType() & in KeyInput()
2046 if( rSh.IsSttOfPara() && !rSh.HasReadonlySel() ) in KeyInput()
2048 SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl(); in KeyInput()
2058 rSh.ChgCrsrTimerFlag( bOld ); in KeyInput()
2064 if( !rSh.HasReadonlySel() ) in KeyInput()
2066 if( aTmpQHD.HasCntnt() && !rSh.HasSelection() ) in KeyInput()
2073 else if( rSh.GetTableFmt() ) in KeyInput()
2075 else if((rSh.GetSelectionType() & in KeyInput()
2078 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
2088 if( aTmpQHD.HasCntnt() && !rSh.HasSelection() && in KeyInput()
2089 !rSh.HasReadonlySel() ) in KeyInput()
2096 … else if((rSh.GetSelectionType() & (nsSelectionType::SEL_DRW|nsSelectionType::SEL_DRW_FORM| in KeyInput()
2098 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
2102 if( !rSh.HasReadonlySel() ) in KeyInput()
2104 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
2123 if ( rSh.GetSelectionType() & in KeyInput()
2134 else if ( !rSh.IsMultiSelection() && rSh.CrsrInsideInputFld() ) in KeyInput()
2141 rSh.SelectNextPrevHyperlink( KEY_SHIFT != rKeyCode.GetModifier() ); in KeyInput()
2146 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
2151 … SfxItemSet aSet(rSh.GetAttrPool(), RES_TXTATR_INETFMT, RES_TXTATR_INETFMT); in KeyInput()
2152 rSh.GetCurAttr(aSet); in KeyInput()
2158 rSh.ClickToINetAttr((const SwFmtINetFmt&)rItem, URLLOAD_NOFILTER); in KeyInput()
2173 rSh.Right( CRSR_SKIP_CHARS, sal_False, 1, sal_False ); in KeyInput()
2178 rSh.Left( CRSR_SKIP_CHARS, sal_False, 1, sal_False ); in KeyInput()
2195 if (bNormalChar && rSh.IsInFrontOfLabel()) in KeyInput()
2197 rSh.NumOrNoNum(sal_False); in KeyInput()
2216 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
2219 rSh.GetDrawView()->GetMarkedObjectList().GetMarkCount() == 1) in KeyInput()
2221 … SdrObject* pObj = rSh.GetDrawView()->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj(); in KeyInput()
2227 rSh.GetDrawView()->KeyInput( rKEvt, this ); in KeyInput()
2232 rSh.UnSelectFrm(); in KeyInput()
2233 rSh.LeaveSelFrmMode(); in KeyInput()
2234 rView.AttrChangedNotify(&rSh); in KeyInput()
2235 rSh.MoveSection( fnSectionCurr, fnSectionEnd ); in KeyInput()
2248 rSh.LaunchOLEObj(); in KeyInput()
2252 rSh.UnSelectFrm(); in KeyInput()
2253 rSh.LeaveSelFrmMode(); in KeyInput()
2254 rView.AttrChangedNotify(&rSh); in KeyInput()
2255 rSh.MoveSection( fnSectionCurr, fnSectionEnd ); in KeyInput()
2260 … SdrObject* pObj = rSh.GetDrawView()->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj(); in KeyInput()
2272 const SdrHdlList& rHdlList = rSh.GetDrawView()->GetHdlList(); in KeyInput()
2289 if (rSh.GetChar(sal_False)==CH_TXT_ATR_FORMELEMENT) in KeyInput()
2293 (rSh.GetCurrentFieldmark()); in KeyInput()
2303 rSh.CalcLayout(); in KeyInput()
2308 else if ( !rSh.HasReadonlySel() in KeyInput()
2309 || rSh.CrsrInsideInputFld() ) in KeyInput()
2314 (aInBuffer.Len() || !rSh.IsSttPara() || !rSh.IsEndPara() )) in KeyInput()
2332 rSh.AutoCorrect( *pACorr, aCh ); in KeyInput()
2334 rSh.UpdateAttr(); in KeyInput()
2346 rSh.AutoCorrect( *pACorr, aCh ); in KeyInput()
2372 !rSh.HasReadonlySel() ) in KeyInput()
2375 rSh.AutoCorrect( *pACorr, static_cast< sal_Unicode >('\0') ); in KeyInput()
2388 rSh.DoSpecialInsert(); in KeyInput()
2392 rSh.NoNum(); in KeyInput()
2397 rSh.DelNumRules(); in KeyInput()
2404 rSh.NumUpDown( sal_True ); in KeyInput()
2408 rSh.NumUpDown( sal_False ); in KeyInput()
2412 rSh.ChangeIndentOfAllListLevels(360); in KeyInput()
2418 ::sw::mark::IFieldmark const * const pFieldmark = rSh.GetFieldmarkAfter(); in KeyInput()
2419 if(pFieldmark) rSh.GotoFieldmark(pFieldmark); in KeyInput()
2425 ::sw::mark::IFieldmark const * const pFieldmark = rSh.GetFieldmarkBefore(); in KeyInput()
2426 if(pFieldmark) rSh.GotoFieldmark(pFieldmark); in KeyInput()
2431 rSh.ChangeIndentOfAllListLevels(-360); in KeyInput()
2436 rSh.OutlineUpDown( 1 ); in KeyInput()
2439 rSh.OutlineUpDown( -1 ); in KeyInput()
2444 rSh.GoNextCell(); in KeyInput()
2448 rSh.GoPrevCell(); in KeyInput()
2452 rSh.SplitNode( sal_True ); in KeyInput()
2457 if(rSh.GotoObj( KS_NextObject == eKeyState, GOTOOBJ_GOTO_ANY)) in KeyInput()
2459 if( rSh.IsFrmSelected() && in KeyInput()
2465 rView.AttrChangedNotify( &rSh ); in KeyInput()
2467 rSh.HideCrsr(); in KeyInput()
2468 rSh.EnterSelFrmMode(); in KeyInput()
2474 rSh.StartUndo( UNDO_START ); in KeyInput()
2484 rSh.SttSelect(); in KeyInput()
2485 rSh.ExtendSelection( sal_False, aTmpQHD.nLen ); in KeyInput()
2494 rSh.Insert( sFnd.Erase( 0, aTmpQHD.nLen )); in KeyInput()
2498 rSh.EndUndo( UNDO_END ); in KeyInput()
2504 pQuickHlpData->Start( rSh, USHRT_MAX ); in KeyInput()
2520 …case KS_ColLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_LEFT|nsTblCh… in KeyInput()
2521 …case KS_ColRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_RIGHT|nsTblC… in KeyInput()
2522 …case KS_ColLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_LEFT, pModOp… in KeyInput()
2523 …case KS_ColRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_RIGHT, pModO… in KeyInput()
2524 …case KS_ColBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_ROW_BOTTOM|nsTbl… in KeyInput()
2525 …case KS_ColBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_ROW_BOTTOM, pMod… in KeyInput()
2526 …case KS_CellLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_LEFT|nsTblC… in KeyInput()
2527 …case KS_CellRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_RIGHT|nsTbl… in KeyInput()
2528 …case KS_CellLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_LEFT, pModO… in KeyInput()
2529 …case KS_CellRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_RIGHT, pMod… in KeyInput()
2530 …case KS_CellTopBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_TOP|nsTblCh… in KeyInput()
2531 …case KS_CellBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_BOTTOM|nsTb… in KeyInput()
2532 …case KS_CellTopSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_TOP, pModOp… in KeyInput()
2533 …case KS_CellBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_BOTTOM, pMo… in KeyInput()
2536 …case KS_InsDel_ColLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2537 …case KS_InsDel_ColRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2538 …case KS_InsDel_ColLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2539 …case KS_InsDel_ColRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2540 …case KS_InsDel_ColTopBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2541 …case KS_InsDel_ColBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2542 …case KS_InsDel_ColTopSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2543 …case KS_InsDel_ColBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2544 …case KS_InsDel_CellLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2545 …case KS_InsDel_CellRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2546 …case KS_InsDel_CellLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2547 …case KS_InsDel_CellRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2548 …case KS_InsDel_CellTopBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2549 …case KS_InsDel_CellBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2550 …case KS_InsDel_CellTopSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2551 …case KS_InsDel_CellBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2554 rSh.SetColRowWidthHeight( eTblChgMode, nTblChgSize ); in KeyInput()
2558 SdrView *pSdrView = rSh.GetDrawView(); in KeyInput()
2601 rSh.GetPrevAutoCorrWord( *pACorr, sWord ) ) in KeyInput()
2628 SwWrtShell &rSh = rView.GetWrtShell(); in MouseButtonDown() local
2637 SfxInPlaceClient* pIPClient = rSh.GetSfxViewShell()->GetIPClient(); in MouseButtonDown()
2671 SwFlyFrmFmt *pFmt = (SwFlyFrmFmt*)rSh.GetFlyFrmFmt(); in MouseButtonDown()
2672 if ( !rSh.Chainable( aDummy, *pFmt, aDocPos ) ) in MouseButtonDown()
2673 rSh.Chain( *pFmt, aDocPos ); in MouseButtonDown()
2686 pQuickHlpData->Stop( rSh ); in MouseButtonDown()
2689 if( rSh.FinishOLEObj() ) in MouseButtonDown()
2692 SET_CURR_SHELL( &rSh ); in MouseButtonDown()
2694 SdrView *pSdrView = rSh.GetDrawView(); in MouseButtonDown()
2699 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False); in MouseButtonDown()
2710 const sal_Bool bTmp = !rSh.IsDrawCreate() && !pApplyTempl && !rSh.IsInSelect() && in MouseButtonDown()
2713 0 != (nMouseTabCol = rSh.WhichMouseTabCol( aDocPos ) ) && in MouseButtonDown()
2714 !rSh.IsObjSelectable( aDocPos ) ) in MouseButtonDown()
2719 rSh.EnterStdMode(); in MouseButtonDown()
2720 rSh.SelectTableRowCol( aDocPos ); in MouseButtonDown()
2733 if ( !rSh.IsTableMode() ) in MouseButtonDown()
2761 rSh.IsNumLabel(aDocPos)) in MouseButtonDown()
2763 SwTxtNode* pNodeAtPos = rSh.GetNumRuleNodeAtPos( aDocPos ); in MouseButtonDown()
2770 rSh.IsVerticalModeAtNdAndPos( *pNodeAtPos, aDocPos ) ) ) in MouseButtonDown()
2786 if ( rSh.IsInSelect() ) in MouseButtonDown()
2787 rSh.EndSelect(); in MouseButtonDown()
2800 rSh.ResetCursorStack(); in MouseButtonDown()
2807 if( rSh.IsObjSelected() ) in MouseButtonDown()
2831 rSh.Edit(); in MouseButtonDown()
2837 if ( rSh.IsSelFrmMode()) in MouseButtonDown()
2839 SdrHdl* pHdl = rSh.GetDrawView()->PickHandle(aDocPos); in MouseButtonDown()
2843 if ((rSh.IsInsideSelectedObj(aDocPos) || bHitHandle) && in MouseButtonDown()
2846 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
2907 if ( aActHitType != SDRHIT_NONE && !rSh.IsSelFrmMode() && in MouseButtonDown()
2912 sal_Bool bShould = rSh.ShouldObjectBeSelected(aDocPos); in MouseButtonDown()
2917 rSh.HideCrsr(); in MouseButtonDown()
2919 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
2920 rSh.LockView( sal_True ); in MouseButtonDown()
2921 sal_Bool bSelObj = rSh.SelectObj( aDocPos, in MouseButtonDown()
2924 rSh.LockView( sal_False ); in MouseButtonDown()
2931 if( FRMTYPE_NONE == rSh.GetSelFrmType() ) in MouseButtonDown()
2932 rSh.ShowCrsr(); in MouseButtonDown()
2935 if (rSh.IsFrmSelected() && rView.GetDrawFuncPtr()) in MouseButtonDown()
2940 rView.AttrChangedNotify( &rSh ); in MouseButtonDown()
2943 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
2950 … bOnlyText = static_cast< sal_Bool >(rSh.IsObjSelectable( aDocPos )); in MouseButtonDown()
2953 rSh.ShowCrsr(); in MouseButtonDown()
2958 else if ( rSh.IsSelFrmMode() && in MouseButtonDown()
2960 !rSh.IsInsideSelectedObj( aDocPos ))) in MouseButtonDown()
2975 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
2976 rSh.LockView( sal_True ); in MouseButtonDown()
2981 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
2983 rSh.UnSelectFrm(); in MouseButtonDown()
2984 rSh.LeaveSelFrmMode(); in MouseButtonDown()
2985 rView.AttrChangedNotify(&rSh); in MouseButtonDown()
2988 sal_Bool bSelObj = rSh.SelectObj( aDocPos, nFlag ); in MouseButtonDown()
2990 rSh.LockView( sal_False ); in MouseButtonDown()
2997 … bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in MouseButtonDown()
2998 rSh.LeaveSelFrmMode(); in MouseButtonDown()
2999 rView.AttrChangedNotify( &rSh ); in MouseButtonDown()
3004 rSh.HideCrsr(); in MouseButtonDown()
3005 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3006 rSh.SelFlyGrabCrsr(); in MouseButtonDown()
3007 rSh.MakeSelVisible(); in MouseButtonDown()
3009 if( rSh.IsFrmSelected() && in MouseButtonDown()
3015 rView.AttrChangedNotify( &rSh ); in MouseButtonDown()
3028 if ( !bIsDocReadOnly && rSh.IsInsideSelectedObj(aDocPos) && in MouseButtonDown()
3029 0 == rSh.IsSelObjProtected( FLYPROTECT_CONTENT|FLYPROTECT_PARENT ) ) in MouseButtonDown()
3034 …switch ( rSh.GetSelectionType() &~ ( nsSelectionType::SEL_FONTWORK | nsSelectionType::SEL_EXTRUDED… in MouseButtonDown()
3045 if (!rSh.IsSelObjProtected(FLYPROTECT_CONTENT)) in MouseButtonDown()
3048 rSh.LaunchOLEObj(); in MouseButtonDown()
3070 (rSh.IsFrmSelected() && rSh.IsFrmSelected() )) in MouseButtonDown()
3077 ( 0 != ( pFld = rSh.GetCurFld() ) || in MouseButtonDown()
3078 0 != ( bFtn = rSh.GetCurFtn() )) ) in MouseButtonDown()
3111 if ( rSh.IsExtMode() || rSh.IsBlockMode() ) in MouseButtonDown()
3115 if ( KEY_MOD1 == rMEvt.GetModifier() && !rSh.IsAddMode() ) in MouseButtonDown()
3117 rSh.EnterAddMode(); in MouseButtonDown()
3118 rSh.SelWrd( &aDocPos ); in MouseButtonDown()
3119 rSh.LeaveAddMode(); in MouseButtonDown()
3122 rSh.SelWrd( &aDocPos ); in MouseButtonDown()
3132 if ( rSh.IsExtMode() ) in MouseButtonDown()
3138 if ( !bValidCrsrPos || rSh.IsFrmSelected() ) in MouseButtonDown()
3143 !rSh.IsAddMode(); in MouseButtonDown()
3146 rSh.EnterAddMode(); in MouseButtonDown()
3150 rSh.SelSentence( &aDocPos ); in MouseButtonDown()
3152 rSh.SelPara( &aDocPos ); in MouseButtonDown()
3155 rSh.LeaveAddMode(); in MouseButtonDown()
3174 if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) ) in MouseButtonDown()
3177 rSh.HideCrsr(); in MouseButtonDown()
3178 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3179 rSh.SelectObj(aDocPos, SW_ADD_SELECT | SW_ENTER_GROUP); in MouseButtonDown()
3181 { if ( rSh.SelectObj( aDocPos, SW_ADD_SELECT | SW_ENTER_GROUP ) ) in MouseButtonDown()
3183 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3191 else if( rSh.IsSelFrmMode() && in MouseButtonDown()
3192 rSh.GetDrawView()->PickHandle( aDocPos )) in MouseButtonDown()
3203 if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) ) in MouseButtonDown()
3206 rSh.HideCrsr(); in MouseButtonDown()
3207 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3208 rSh.SelectObj(aDocPos, SW_ENTER_GROUP); in MouseButtonDown()
3210 { if ( rSh.SelectObj( aDocPos, SW_ENTER_GROUP ) ) in MouseButtonDown()
3212 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3220 else if( rSh.IsSelFrmMode() && in MouseButtonDown()
3221 rSh.GetDrawView()->PickHandle( aDocPos )) in MouseButtonDown()
3229 if ( !rSh.IsAddMode() && !rSh.IsExtMode() && !rSh.IsBlockMode() ) in MouseButtonDown()
3231 rSh.PushMode(); in MouseButtonDown()
3234 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
3235 rSh.LockView( sal_True ); in MouseButtonDown()
3236 rSh.EnterAddMode(); in MouseButtonDown()
3238 rSh.LockView( sal_False ); in MouseButtonDown()
3246 if ( !rSh.IsAddMode() && !rSh.IsExtMode() && !rSh.IsBlockMode() ) in MouseButtonDown()
3248 rSh.PushMode(); in MouseButtonDown()
3250 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
3251 rSh.LockView( sal_True ); in MouseButtonDown()
3252 rSh.EnterBlockMode(); in MouseButtonDown()
3254 rSh.LockView( sal_False ); in MouseButtonDown()
3261 if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) ) in MouseButtonDown()
3264 rSh.HideCrsr(); in MouseButtonDown()
3265 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3267 rSh.SelectObj(aDocPos, SW_ADD_SELECT); in MouseButtonDown()
3272 rSh.LeaveSelFrmMode(); in MouseButtonDown()
3273 rView.AttrChangedNotify(&rSh); in MouseButtonDown()
3278 { if ( rSh.SelectObj( aDocPos ) ) in MouseButtonDown()
3280 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3290 if ( rSh.IsSelFrmMode() && in MouseButtonDown()
3291 rSh.IsInsideSelectedObj( aDocPos ) ) in MouseButtonDown()
3293 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3299 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3301 rSh.UnSelectFrm(); in MouseButtonDown()
3302 rSh.LeaveSelFrmMode(); in MouseButtonDown()
3303 rView.AttrChangedNotify(&rSh); in MouseButtonDown()
3306 if ( !rSh.IsExtMode() ) in MouseButtonDown()
3310 sal_Bool bSttSelect = rSh.HasSelection() || in MouseButtonDown()
3322 if( rSh.GetContentAtPos( aDocPos, aCntntAtPos ) ) in MouseButtonDown()
3324 if( !rSh.IsViewLocked() && in MouseButtonDown()
3325 !rSh.IsReadOnlyAvailable() && in MouseButtonDown()
3331 else if( rSh.IsURLGrfAtPos( aDocPos )) in MouseButtonDown()
3337 rSh.SttSelect(); in MouseButtonDown()
3344 if( !rSh.IsViewLocked() ) in MouseButtonDown()
3348 if( rSh.GetContentAtPos( aDocPos, aCntntAtPos, sal_False ) && in MouseButtonDown()
3349 !rSh.IsReadOnlyAvailable() && in MouseButtonDown()
3355 if ( rSh.IsGCAttr() ) in MouseButtonDown()
3357 rSh.GCAttr(); in MouseButtonDown()
3358 rSh.ClearGCAttr(); in MouseButtonDown()
3361 sal_Bool bOverSelect = rSh.ChgCurrPam( aDocPos ), bOverURLGrf = sal_False; in MouseButtonDown()
3363 bOverURLGrf = bOverSelect = 0 != rSh.IsURLGrfAtPos( aDocPos ); in MouseButtonDown()
3370 if( !rSh.IsViewLocked() && bLockView ) in MouseButtonDown()
3371 rSh.LockView( sal_True ); in MouseButtonDown()
3379 MV_CONTEXT( &rSh ); in MouseButtonDown()
3380 nTmpSetCrsr = (rSh.*rSh.fnSetCrsr)(&aDocPos,bOnlyText); in MouseButtonDown()
3390 rSh.LockView( sal_False ); in MouseButtonDown()
3396 const int nSelType = rSh.GetSelectionType(); in MouseButtonDown()
3401 || rSh.IsObjSelectable( aDocPos ) ) in MouseButtonDown()
3403 MV_CONTEXT( &rSh ); in MouseButtonDown()
3404 if( !rSh.IsFrmSelected() ) in MouseButtonDown()
3405 rSh.GotoNextFly(); in MouseButtonDown()
3406 rSh.EnterSelFrmMode(); in MouseButtonDown()
3438 SwWrtShell &rSh = rView.GetWrtShell(); in MouseMove() local
3439 if( rSh.ActionPend() ) in MouseMove()
3447 SET_CURR_SHELL( &rSh ); in MouseMove()
3462 SdrView *pSdrView = rSh.GetDrawView(); in MouseMove()
3473 const Point aOldPt( rSh.VisArea().Pos() ); in MouseMove()
3474 const sal_Bool bInsWin = rSh.VisArea().IsInside( aDocPt ); in MouseMove()
3483 if( rSh.SelectTableRowCol( *pRowColumnSelectionStart, &aPos, bIsRowDrag )) in MouseMove()
3495 StopDDTimer( &rSh, aDocPt ); in MouseMove()
3506 aTmp += rSh.VisArea().Pos() - aOldPt; in MouseMove()
3513 else if(!rSh.IsFrmSelected() && !rSh.IsObjSelected()) in MouseMove()
3515 SfxBindings &rBnd = rSh.GetView().GetViewFrame()->GetBindings(); in MouseMove()
3516 Point aRelPos = rSh.GetRelativePagePosition(aDocPt); in MouseMove()
3535 if( !bIsDocReadOnly && bInsWin && !pApplyTempl && !rSh.IsInSelect() ) in MouseMove()
3537 if ( SW_TABCOL_NONE != (nMouseTabCol = rSh.WhichMouseTabCol( aDocPt ) ) && in MouseMove()
3538 !rSh.IsObjSelectable( aDocPt ) ) in MouseMove()
3578 ( !bChkTblSel || !rSh.IsTableMode() ) ) in MouseMove()
3585 else if (rSh.IsNumLabel(aDocPt, RULER_MOUSE_MARGINWIDTH)) in MouseMove()
3587 SwTxtNode* pNodeAtPos = rSh.GetNumRuleNodeAtPos( aDocPt ); in MouseMove()
3589 rSh.IsVerticalModeAtNdAndPos( *pNodeAtPos, aDocPt ) in MouseMove()
3614 const Point aOld = pAnchorMarker->GetPosForHitTest( *(rSh.GetOut()) ); in MouseMove()
3615 Point aNew = rSh.FindAnchorPos( aDocPt ); in MouseMove()
3659 if ( bFrmDrag && rSh.IsSelFrmMode() ) in MouseMove()
3685 if( 0 != ( pFlyFmt = rSh.GetFlyFrmFmt() ) && in MouseMove()
3714 rSh.ExecMacro( *pMacro, &sRet, &xArgs ); in MouseMove()
3738 (rSh.*rSh.fnDrag)( &aDocPt, rMEvt.IsShift() ); in MouseMove()
3747 aTmp += rSh.VisArea().Pos() - aOldPt; in MouseMove()
3754 if ( !rSh.IsSelFrmMode() && !bDDINetAttr && in MouseMove()
3756 (rSh.IsInSelect() || !rSh.ChgCurrPam( aDocPt )) ) in MouseMove()
3768 aTmp += rSh.VisArea().Pos() - aOldPt; in MouseMove()
3779 rSh.Is_FnDragEQBeginDrag() && !rSh.IsAddMode() )) in MouseMove()
3781 (rSh.*rSh.fnDrag)( &aDocPt,sal_False ); in MouseMove()
3783 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPt,sal_False)); in MouseMove()
3801 if( rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_False, &aFldRect ) ) in MouseMove()
3827 if( rSh.GetContentAtPos( aDocPt, aCntntAtPos ) ) in MouseMove()
3833 0 != ( pTmp = pFmt = rSh.GetFmtFromAnyObj( aDocPt ))) in MouseMove()
3852 rSh.CallEvent( SFX_EVENT_MOUSEOUT_OBJECT, in MouseMove()
3855 if( !rSh.CallEvent( SFX_EVENT_MOUSEOVER_OBJECT, in MouseMove()
3863 rSh.CallEvent( SFX_EVENT_MOUSEOUT_OBJECT, in MouseMove()
3869 !rSh.GetViewOptions()->getBrowseMode() && in MouseMove()
3870 rSh.GetViewOptions()->IsShadowCursor() && in MouseMove()
3872 !rSh.HasSelection() && !GetConnectMetaFile() ) in MouseMove()
3876 SwFillMode eMode = (SwFillMode)rSh.GetViewOptions()->GetShdwCrsrFillMode(); in MouseMove()
3877 if( rSh.GetShadowCrsrPos( aDocPt, eMode, aRect, eOrient )) in MouseMove()
3891 if( rSh.IsBlockMode() && !rMEvt.IsSynthetic() ) in MouseMove()
3893 (rSh.*rSh.fnDrag)( &aDocPt,sal_False ); in MouseMove()
3894 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPt,sal_False)); in MouseMove()
3929 SwWrtShell &rSh = rView.GetWrtShell(); in MouseButtonUp() local
3930 SET_CURR_SHELL( &rSh ); in MouseButtonUp()
3931 SdrView *pSdrView = rSh.GetDrawView(); in MouseButtonUp()
3938 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False); in MouseButtonUp()
3952 StopDDTimer( &rSh, aDocPt ); in MouseButtonUp()
3954 if ( rSh.IsSelFrmMode() ) in MouseButtonUp()
3956 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
3975 rSh.FindAnchorPos( aPnt, sal_True ); in MouseButtonUp()
3994 if ( rSh.IsObjSelected() ) in MouseButtonUp()
3996 rSh.EnterSelFrmMode(); in MouseButtonUp()
4000 else if ( rSh.IsFrmSelected() ) in MouseButtonUp()
4002 rSh.EnterSelFrmMode(); in MouseButtonUp()
4008 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in MouseButtonUp()
4009 rSh.Edit(); in MouseButtonUp()
4012 rView.AttrChangedNotify( &rSh ); in MouseButtonUp()
4014 else if (rMEvt.GetButtons() == MOUSE_RIGHT && rSh.IsDrawCreate()) in MouseButtonUp()
4025 if ( bInsDraw && rSh.IsDrawCreate() ) in MouseButtonUp()
4030 rView.AttrChangedNotify( &rSh ); in MouseButtonUp()
4031 if ( rSh.IsObjSelected() ) in MouseButtonUp()
4032 rSh.EnterSelFrmMode(); in MouseButtonUp()
4042 if ( bFrmDrag && rSh.IsSelFrmMode() ) in MouseButtonUp()
4048 rSh.GetDrawView()->TakeActionRect( aRect ); in MouseButtonUp()
4051 rSh.BreakDrag(); in MouseButtonUp()
4053 if ( rSh.GetSelFrmType() & FRMTYPE_FLY_ATCNT ) in MouseButtonUp()
4056 aSttPt = rSh.GetDrawView()->GetAllMarkedRect().TopLeft(); in MouseButtonUp()
4061 aSttPt = rSh.GetDrawView()->GetAllMarkedRect().Center(); in MouseButtonUp()
4065 rSh.StartUndo( UNDO_UI_DRAG_AND_COPY ); in MouseButtonUp()
4066 rSh.Copy(&rSh, aSttPt, aEndPt, sal_False); in MouseButtonUp()
4067 rSh.EndUndo( UNDO_UI_DRAG_AND_COPY ); in MouseButtonUp()
4071 (rSh.*rSh.fnEndDrag)( &aDocPt,sal_False ); in MouseButtonUp()
4083 if( 0 != ( pFlyFmt = rSh.GetFlyFrmFmt() ) && in MouseButtonUp()
4115 rSh.ExecMacro( *pMacro, 0, &xArgs ); in MouseButtonUp()
4120 (rSh.*rSh.fnEndDrag)( &aDocPt,sal_False ); in MouseButtonUp()
4129 if (rSh.IsSelFrmMode()) in MouseButtonUp()
4132 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
4143 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
4147 if ( !rSh.IsInSelect() && rSh.ChgCurrPam( aDocPt ) ) in MouseButtonUp()
4153 MV_CONTEXT( &rSh ); in MouseButtonUp()
4155 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in MouseButtonUp()
4162 sal_Bool bInSel = rSh.IsInSelect(); in MouseButtonUp()
4163 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
4193 if( rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_True ) ) in MouseButtonUp()
4195 sal_Bool bViewLocked = rSh.IsViewLocked(); in MouseButtonUp()
4196 if( !bViewLocked && !rSh.IsReadOnlyAvailable() && in MouseButtonUp()
4198 rSh.LockView( sal_True ); in MouseButtonUp()
4209 rSh.SttSelect(); in MouseButtonUp()
4210 rSh.SelectTxt( *(aCntntAtPos.pFndTxtAttr->GetStart()) + 1, in MouseButtonUp()
4215 rSh.ClickToField( *aCntntAtPos.aFnd.pFld ); in MouseButtonUp()
4235 rSh.InvalidateWindows( rView.GetVisArea() ); in MouseButtonUp()
4239 rSh.InvalidateWindows( rView.GetVisArea() ); in MouseButtonUp()
4248rSh.ClickToINetAttr( *(SwFmtINetFmt*)aCntntAtPos.aFnd.pAttr, nFilter ); in MouseButtonUp()
4251 rSh.LockView( bViewLocked ); in MouseButtonUp()
4257 … if( !rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_True ) && bExecHyperlinks ) in MouseButtonUp()
4272 ::LoadURL( sURL, &rSh, nFilter, &sTarget); in MouseButtonUp()
4280 if( rSh.ClickToINetGrf( aDocPt, nFilter )) in MouseButtonUp()
4287 rSh.GetViewOptions()->IsShadowCursor() && in MouseButtonUp()
4289 !rSh.HasSelection() && in MouseButtonUp()
4291 rSh.VisArea().IsInside( aDocPt )) in MouseButtonUp()
4294 if (rSh.GetLastUndoInfo(0, & nLastUndoId)) in MouseButtonUp()
4298 rSh.Undo(); in MouseButtonUp()
4301 … SwFillMode eMode = (SwFillMode)rSh.GetViewOptions()->GetShdwCrsrFillMode(); in MouseButtonUp()
4302 rSh.SetShadowCrsrPos( aDocPt, eMode ); in MouseButtonUp()
4313 rSh.PopMode(); in MouseButtonUp()
4326 int eSelection = rSh.GetSelectionType(); in MouseButtonUp()
4365 if( rSh.IsSelection() && !rSh.HasReadonlySel() ) in MouseButtonUp()
4372 rSh.SetAttrItem( SvxBrushItem( aColor, nId ) ); in MouseButtonUp()
4375 rSh.SetAttrItem( SvxColorItem(SwEditWin::aTextColor, nId) ); in MouseButtonUp()
4376 rSh.UnSetVisCrsr(); in MouseButtonUp()
4377 rSh.EnterStdMode(); in MouseButtonUp()
4378 rSh.SetVisCrsr(aDocPt); in MouseButtonUp()
4398 & eSelection ) && !rSh.HasReadonlySel() ) in MouseButtonUp()
4400 rSh.SetTxtFmtColl( pApplyTempl->aColl.pTxtColl ); in MouseButtonUp()
4409 & eSelection ) && !rSh.HasReadonlySel() ) in MouseButtonUp()
4411 rSh.SetAttrItem( SwFmtCharFmt(pApplyTempl->aColl.pCharFmt) ); in MouseButtonUp()
4412 rSh.UnSetVisCrsr(); in MouseButtonUp()
4413 rSh.EnterStdMode(); in MouseButtonUp()
4414 rSh.SetVisCrsr(aDocPt); in MouseButtonUp()
4423 const SwFrmFmt* pFmt = rSh.GetFmtFromObj( aDocPt ); in MouseButtonUp()
4426 rSh.SetFrmFmt( pApplyTempl->aColl.pFrmFmt, sal_False, &aDocPt ); in MouseButtonUp()
4436 rSh.ChgCurPageDesc( *pApplyTempl->aColl.pPageDesc ); in MouseButtonUp()
4442 if( !rSh.HasReadonlySel() ) in MouseButtonUp()
4444 rSh.SetCurNumRule( *pApplyTempl->aColl.pNumRule, in MouseButtonUp()
4495 SwWrtShell &rSh = rView.GetWrtShell(); in SetApplyTemplate() local
4501 rSh.NoEdit( sal_False ); in SetApplyTemplate()
4502 bIdle = rSh.GetViewOptions()->IsIdle(); in SetApplyTemplate()
4503 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( sal_False ); in SetApplyTemplate()
4509 rSh.NoEdit( sal_False ); in SetApplyTemplate()
4510 bIdle = rSh.GetViewOptions()->IsIdle(); in SetApplyTemplate()
4511 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( sal_False ); in SetApplyTemplate()
4517 rSh.NoEdit( sal_False ); in SetApplyTemplate()
4518 bIdle = rSh.GetViewOptions()->IsIdle(); in SetApplyTemplate()
4519 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( sal_False ); in SetApplyTemplate()
4524 rSh.UnSetVisCrsr(); in SetApplyTemplate()
4526 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( bIdle ); in SetApplyTemplate()
4527 if ( !rSh.IsSelFrmMode() ) in SetApplyTemplate()
4528 rSh.Edit(); in SetApplyTemplate()
4660 SwWrtShell &rSh = rView.GetWrtShell(); in EnterDrawMode() local
4661 SdrView *pSdrView = rSh.GetDrawView(); in EnterDrawMode()
4665 if (rSh.IsDrawCreate()) in EnterDrawMode()
4669 rView.AttrChangedNotify( &rSh ); in EnterDrawMode()
4675 sal_Bool bUnLockView = !rSh.IsViewLocked(); in EnterDrawMode()
4676 rSh.LockView( sal_True ); in EnterDrawMode()
4678 rSh.EndTextEdit(); // Danebengeklickt, Ende mit Edit in EnterDrawMode()
4679 rSh.SelectObj( aDocPos ); in EnterDrawMode()
4680 if ( !rSh.IsObjSelected() && !rSh.IsFrmSelected() ) in EnterDrawMode()
4681 rSh.LeaveSelFrmMode(); in EnterDrawMode()
4689 rSh.LockView( sal_False ); in EnterDrawMode()
4690 rView.AttrChangedNotify( &rSh ); in EnterDrawMode()
4749 SwWrtShell &rSh = rView.GetWrtShell(); in Command() local
4763 SfxInPlaceClient* pIPClient = rSh.GetSfxViewShell()->GetIPClient(); in Command()
4767 rSh.FinishOLEObj(); in Command()
4785 !rSh.IsDrawCreate() && !IsDrawAction()) in Command()
4787 SET_CURR_SHELL( &rSh ); in Command()
4798 aDocPos = rSh.GetCharRect().Center(); in Command()
4801 SelectMenuPosition(rSh, rCEvt.GetMousePosPixel()); in Command()
4835 rSh.Do(SwWrtShell::UNDO); in Command()
4852 if ( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
4855 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
4898 if ( !rSh.GetNumRuleAtCurrCrsrPos() ) in Command()
4902 if ( rSh.GetNumRuleAtCurrCrsrPos() ) in Command()
4907 rSh.Insert( '\t' ); in Command()
4942 rSh.IsCrsrReadonly(); in Command()
4945 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
4948 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
4952 if( rSh.HasSelection() ) in Command()
4953 rSh.DelRight(); in Command()
4957 rSh.CreateExtTextInput(eInputLanguage); in Command()
4965 rSh.IsCrsrReadonly(); in Command()
4968 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
4971 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
4976 String sRecord = rSh.DeleteExtTextInput(); in Command()
4992 rSh.DelLeft(); in Command()
4993 rSh.AutoCorrect( *pACorr, aCh ); in Command()
5016 rSh.IsCrsrReadonly(); in Command()
5023 pQuickHlpData->Stop( rSh ); in Command()
5026 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
5029 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
5038 rSh.SetExtTextInputData( *pData ); in Command()
5050 rSh.GetPrevAutoCorrWord( *pACorr, sWord ) ) in Command()
5061 rSh.IsCrsrReadonly(); in Command()
5064 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
5067 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
5071 const SwExtTextInput* pExtInp = rSh.GetDoc()->GetExtTextInput(); in Command()
5076 *rSh.GetCrsr()->End(), *rSh.GetCrsr()->End() ) ) in Command()
5079 if ( rSh.GetCharRectAt( aInputRect, *pExtInp->Start() ) ) in Command()
5116 SwTransferable::PasteData( aDataHelper, rSh, nDropAction, in Command()
5149 rSh.SttCrsrMove(); in Command()
5150 rSh.GoStartSentence(); in Command()
5151rSh.GetCrsr()->GetPoint()->nContent += sal::static_int_cast<sal_uInt16, sal_uLong>(pData->GetStart… in Command()
5152 rSh.SetMark(); in Command()
5153rSh.GetCrsr()->GetMark()->nContent += sal::static_int_cast<sal_uInt16, sal_uLong>(pData->GetEnd() … in Command()
5154 rSh.EndCrsrMove( sal_True ); in Command()
5158 if( rSh.HasSelection() ) in Command()
5160 SwPaM *pCrsr = (SwPaM*)rSh.GetCrsr(); in Command()
5162 if( rSh.IsMultiSelection() ) in Command()
5167 rSh.GoPrevCrsr(); in Command()
5168 pCrsr = (SwPaM*)rSh.GetCrsr(); in Command()
5172 while( rSh.GetCrsr()->GetNext() != rSh.GetCrsr() ) in Command()
5173 delete rSh.GetCrsr()->GetNext(); in Command()
5183 if( !rSh.GetCrsr()->HasMark() ) in Command()
5184 rSh.GetCrsr()->SetMark(); in Command()
5186 rSh.SttCrsrMove(); in Command()
5190 rSh.GetCrsr()->GetPoint()->nNode = nPosNodeIdx; in Command()
5191 rSh.GetCrsr()->GetPoint()->nContent = nPosIdx; in Command()
5192 rSh.GetCrsr()->GetMark()->nNode = nPosNodeIdx; in Command()
5193 rSh.GetCrsr()->GetMark()->nContent = in Command()
5194 rSh.GetCrsr()->GetCntntNode( sal_True )->Len(); in Command()
5198 rSh.GetCrsr()->GetPoint()->nNode = nPosNodeIdx; in Command()
5199 rSh.GetCrsr()->GetPoint()->nContent = nPosIdx; in Command()
5200 rSh.GetCrsr()->GetMark()->nNode = nMarkNodeIdx; in Command()
5201 rSh.GetCrsr()->GetMark()->nContent = nMarkIdx; in Command()
5205 rSh.GetCrsr()->GetMark()->nNode = nMarkNodeIdx; in Command()
5206 rSh.GetCrsr()->GetMark()->nContent = nMarkIdx; in Command()
5207 rSh.GetCrsr()->GetPoint()->nNode = nMarkNodeIdx; in Command()
5208 rSh.GetCrsr()->GetPoint()->nContent = in Command()
5209 rSh.GetCrsr()->GetCntntNode( sal_False )->Len(); in Command()
5212 rSh.EndCrsrMove( sal_True ); in Command()
5229 sal_Bool SwEditWin::SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos ) in SelectMenuPosition() argument
5233 const bool bIsInsideSelectedObj( rSh.IsInsideSelectedObj( aDocPos ) ); in SelectMenuPosition()
5236 SdrView *pSdrView = rSh.GetDrawView(); in SelectMenuPosition()
5254 if(rSh.GetSelectionType() & nsSelectionType::SEL_DRW_TXT) in SelectMenuPosition()
5292 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False); in SelectMenuPosition()
5296 rSh.ResetCursorStack(); in SelectMenuPosition()
5305 rSh.Edit(); in SelectMenuPosition()
5310 if( !rSh.IsSelFrmMode() && in SelectMenuPosition()
5315 sal_Bool bShould = rSh.ShouldObjectBeSelected(aDocPos); in SelectMenuPosition()
5320 rSh.HideCrsr(); in SelectMenuPosition()
5322 sal_Bool bUnLockView = !rSh.IsViewLocked(); in SelectMenuPosition()
5323 rSh.LockView( sal_True ); in SelectMenuPosition()
5324 sal_Bool bSelObj = rSh.SelectObj( aDocPos, 0); in SelectMenuPosition()
5326 rSh.LockView( sal_False ); in SelectMenuPosition()
5334 if( FRMTYPE_NONE == rSh.GetSelFrmType() ) in SelectMenuPosition()
5335 rSh.ShowCrsr(); in SelectMenuPosition()
5338 if (rSh.IsFrmSelected() && rView.GetDrawFuncPtr()) in SelectMenuPosition()
5343 rView.AttrChangedNotify( &rSh ); in SelectMenuPosition()
5346 rSh.EnterSelFrmMode( &aDocPos ); in SelectMenuPosition()
5354 rSh.ShowCrsr(); in SelectMenuPosition()
5357 else if ( rSh.IsSelFrmMode() && in SelectMenuPosition()
5362 sal_Bool bUnLockView = !rSh.IsViewLocked(); in SelectMenuPosition()
5363 rSh.LockView( sal_True ); in SelectMenuPosition()
5366 if ( rSh.IsSelFrmMode() ) in SelectMenuPosition()
5368 rSh.UnSelectFrm(); in SelectMenuPosition()
5369 rSh.LeaveSelFrmMode(); in SelectMenuPosition()
5370 rView.AttrChangedNotify(&rSh); in SelectMenuPosition()
5374 sal_Bool bSelObj = rSh.SelectObj( aDocPos, nFlag ); in SelectMenuPosition()
5376 rSh.LockView( sal_False ); in SelectMenuPosition()
5383 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in SelectMenuPosition()
5384 rSh.LeaveSelFrmMode(); in SelectMenuPosition()
5386 rView.AttrChangedNotify( &rSh ); in SelectMenuPosition()
5391 rSh.HideCrsr(); in SelectMenuPosition()
5392 rSh.EnterSelFrmMode( &aDocPos ); in SelectMenuPosition()
5393 rSh.SelFlyGrabCrsr(); in SelectMenuPosition()
5394 rSh.MakeSelVisible(); in SelectMenuPosition()
5396 if( rSh.IsFrmSelected() && in SelectMenuPosition()
5402 rView.AttrChangedNotify( &rSh ); in SelectMenuPosition()
5408 else if ( rSh.IsSelFrmMode() && bIsInsideSelectedObj ) in SelectMenuPosition()
5414 if ( rSh.IsGCAttr() ) in SelectMenuPosition()
5416 rSh.GCAttr(); in SelectMenuPosition()
5417 rSh.ClearGCAttr(); in SelectMenuPosition()
5420 sal_Bool bOverSelect = rSh.ChgCurrPam( aDocPos ), bOverURLGrf = sal_False; in SelectMenuPosition()
5422 bOverURLGrf = bOverSelect = 0 != rSh.IsURLGrfAtPos( aDocPos ); in SelectMenuPosition()
5428 MV_CONTEXT( &rSh ); in SelectMenuPosition()
5429 (rSh.*rSh.fnSetCrsr)(&aDocPos, sal_False); in SelectMenuPosition()
5435 const int nSelType = rSh.GetSelectionType(); in SelectMenuPosition()
5439 MV_CONTEXT( &rSh ); in SelectMenuPosition()
5440 if( !rSh.IsFrmSelected() ) in SelectMenuPosition()
5441 rSh.GotoNextFly(); in SelectMenuPosition()
5442 rSh.EnterSelFrmMode(); in SelectMenuPosition()
5587 void QuickHelpData::Start( SwWrtShell& rSh, sal_uInt16 nWrdLen ) in Start() argument
5599 Window& rWin = rSh.GetView().GetEditWin(); in Start()
5603 rSh.GetCharRect().Pos() ))); in Start()
5620 rSh.CreateExtTextInput(rWin.GetInputLanguage()); in Start()
5621 rSh.SetExtTextInputData( *pCETID ); in Start()
5625 void QuickHelpData::Stop( SwWrtShell& rSh ) in Stop() argument
5628 rSh.DeleteExtTextInput( 0, sal_False ); in Stop()
5634 void QuickHelpData::FillStrArr( SwWrtShell& rSh, const String& rWord ) in FillStrArr() argument
5644 (*pCalendar)->LoadDefaultCalendar( rSh.GetCurLang() ); in FillStrArr()
5670 const SwAutoCompleteWord& rACLst = rSh.GetAutoCompleteWords(); in FillStrArr()
5691 SwWrtShell& rSh = rView.GetWrtShell(); in ShowAutoTextCorrectQuickHelp() local
5711 pQuickHlpData->FillStrArr( rSh, rWord ); in ShowAutoTextCorrectQuickHelp()
5715 pQuickHlpData->Start( rSh, rWord.Len() ); in ShowAutoTextCorrectQuickHelp()
5739 SwWrtShell& rSh = rView.GetWrtShell(); in GetSurroundingText() local
5740 if( rSh.HasSelection() && !rSh.IsMultiSelection() && rSh.IsSelOnePara() ) in GetSurroundingText()
5741 rSh.GetSelectedText( sReturn, GETSELTXT_PARABRK_TO_ONLYCR ); in GetSurroundingText()
5742 else if( !rSh.HasSelection() ) in GetSurroundingText()
5744 SwPosition *pPos = rSh.GetCrsr()->GetPoint(); in GetSurroundingText()
5748 rSh.HideCrsr(); in GetSurroundingText()
5749 rSh.GoStartSentence(); in GetSurroundingText()
5750 rSh.SetMark(); in GetSurroundingText()
5751 rSh.GoEndSentence(); in GetSurroundingText()
5752 rSh.GetSelectedText( sReturn, GETSELTXT_PARABRK_TO_ONLYCR ); in GetSurroundingText()
5755 rSh.ClearMark(); in GetSurroundingText()
5756 rSh.HideCrsr(); in GetSurroundingText()
5766 SwWrtShell& rSh = rView.GetWrtShell(); in GetSurroundingTextSelection() local
5767 if( rSh.HasSelection() ) in GetSurroundingTextSelection()
5770 rSh.GetSelectedText( sReturn, GETSELTXT_PARABRK_TO_ONLYCR ); in GetSurroundingTextSelection()
5777 SwPosition *pPos = rSh.GetCrsr()->GetPoint(); in GetSurroundingTextSelection()
5780 rSh.HideCrsr(); in GetSurroundingTextSelection()
5781 rSh.GoStartSentence(); in GetSurroundingTextSelection()
5782 xub_StrLen nStartPos = rSh.GetCrsr()->GetPoint()->nContent.GetIndex(); in GetSurroundingTextSelection()
5785 rSh.ClearMark(); in GetSurroundingTextSelection()
5786 rSh.ShowCrsr(); in GetSurroundingTextSelection()