Lines Matching refs:rSh

236     void Start( SwWrtShell& rSh, sal_uInt16 nWrdLen );
237 void Stop( SwWrtShell& rSh );
251 void FillStrArr( SwWrtShell& rSh, const String& rWord );
274 inline sal_Bool IsDrawObjSelectable( const SwWrtShell& rSh, const Point& rPt ) in IsDrawObjSelectable() argument
278 switch( rSh.GetObjCntType( rPt, pObj )) in IsDrawObjSelectable()
298 SwWrtShell &rSh = rView.GetWrtShell(); in UpdatePointer() local
302 if ( rSh.IsOverReadOnlyPos( rLPt ) ) in UpdatePointer()
324 0 !=(pFmt = rSh.GetFmtFromObj( rLPt, &pRect )) && in UpdatePointer()
332 pUserMarker = new SdrDropMarkerOverlay( *rSh.GetDrawView(), aTmp ); in UpdatePointer()
341 rSh.SwCrsrShell::SetVisCrsr( rLPt ); in UpdatePointer()
347 if( !rSh.VisArea().Width() ) in UpdatePointer()
350 SET_CURR_SHELL(&rSh); in UpdatePointer()
355 int nChainable = rSh.Chainable( aRect, *rSh.GetFlyFrmFmt(), rLPt ); in UpdatePointer()
364 pUserMarker = new SdrDropMarkerOverlay( *rSh.GetDrawView(), aTmp ); in UpdatePointer()
394 SdrView *pSdrView = rSh.GetDrawView(); in UpdatePointer()
399 rSh.IsCrsrReadonly(); in UpdatePointer()
411 const sal_Bool bNotInSelObj = !rSh.IsInsideSelectedObj( rLPt ); in UpdatePointer()
438 if ( rSh.IsObjSelectable( rLPt ) ) in UpdatePointer()
463 (rSh.IsObjSelected() || rSh.IsFrmSelected()) && in UpdatePointer()
464 (!rSh.IsSelObjProtected(FLYPROTECT_POS)); in UpdatePointer()
473 if ( rSh.IsFrmSelected() && !bNotInSelObj ) in UpdatePointer()
483 if (rSh.IsSelObjProtected(FLYPROTECT_SIZE)) in UpdatePointer()
502 if (bIsDocReadOnly || (rSh.IsObjSelected() && rSh.IsSelObjProtected(FLYPROTECT_CONTENT))) in UpdatePointer()
509 SetPointer( pSdrView->GetPreferedPointer( rLPt, rSh.GetOut() ) ); in UpdatePointer()
514 if( !rSh.IsPageAtPos( rLPt ) || pAnchorMarker ) in UpdatePointer()
525 if( rSh.GetContentAtPos( rLPt, aSwContentAtPos) ) in UpdatePointer()
539 if( POINTER_TEXT == eStyle && rSh.IsInVerticalText( &rLPt )) in UpdatePointer()
555 SwWrtShell &rSh = rView.GetWrtShell(); in IMPL_LINK() local
557 const SwRect aOldVis( rSh.VisArea() ); in IMPL_LINK()
560 if ( !rSh.VisArea().IsInside( aModPt ) ) in IMPL_LINK()
570 (rSh.*rSh.fnDrag)(&aModPt,sal_False); in IMPL_LINK()
574 aModPt = rSh.GetCntntPos( aModPt,aModPt.Y() > rSh.VisArea().Bottom() ); in IMPL_LINK()
581 rSh.SelectTableRowCol( *pRowColumnSelectionStart, &aPos, bIsRowDrag ); in IMPL_LINK()
584 (rSh.*rSh.fnSetCrsr)( &aModPt, sal_False ); in IMPL_LINK()
589 const SwRect& rVisArea = rSh.VisArea(); in IMPL_LINK()
590 if( aOldVis == rVisArea && !rSh.IsStartOfDoc() && !rSh.IsEndOfDoc() ) in IMPL_LINK()
595 rSh.Up( sal_True, 1 ); in IMPL_LINK()
597 rSh.Down( sal_True, 1 ); in IMPL_LINK()
601 aMovePos += rSh.VisArea().Pos() - aOldVis.Pos(); in IMPL_LINK()
729 SwWrtShell& rSh = rView.GetWrtShell(); in FlushInBuffer() local
736 if ( xISC.is() && IsInputSequenceCheckingRequired( aInBuffer, *rSh.GetCrsr() ) ) in FlushInBuffer()
742 rSh.Push(); // push current cursor to stack in FlushInBuffer()
746 rSh.NormalizePam(); // make point be the first (left) one in FlushInBuffer()
747 if (!rSh.GetCrsr()->HasMark()) in FlushInBuffer()
748 rSh.GetCrsr()->SetMark(); in FlushInBuffer()
749 rSh.GetCrsr()->GetMark()->nContent = 0; in FlushInBuffer()
750 String aLeftText( rSh.GetCrsr()->GetTxt() ); in FlushInBuffer()
816 rSh.Pop( sal_False ); // pop old cursor from stack in FlushInBuffer()
823 SwPaM &rCrsr = *rSh.GetCrsr(); in FlushInBuffer()
863 rSh.GetCurAttr(aLangSet); in FlushInBuffer()
923 rSh.SetAttrItem( aLangItem ); in FlushInBuffer()
928 rSh.Insert( aInBuffer ); in FlushInBuffer()
952 SwWrtShell &rSh = rView.GetWrtShell(); in ChangeFly() local
953 SwRect aTmp = rSh.GetFlyRect(); in ChangeFly()
955 !rSh.IsSelObjProtected( FLYPROTECT_POS ) ) in ChangeFly()
957 SfxItemSet aSet(rSh.GetAttrPool(), in ChangeFly()
963 rSh.GetFlyFrmAttr( aSet ); in ChangeFly()
980 aSnap = rSh.GetViewOptions()->GetSnapSize(); in ChangeFly()
981 short nDiv = rSh.GetViewOptions()->GetDivisionX(); in ChangeFly()
984 nDiv = rSh.GetViewOptions()->GetDivisionY(); in ChangeFly()
1002 rSh.CalcBoundRect( aBoundRect, eAnchorId, in ChangeFly()
1113 rSh.StartAllAction(); in ChangeFly()
1115 rSh.SetFlyFrmAttr( aSet ); in ChangeFly()
1130 rSh.SetFlyPos( aTmp.Pos() ); in ChangeFly()
1131 rSh.EndAllAction(); in ChangeFly()
1139 SwWrtShell &rSh = rView.GetWrtShell(); in ChangeDrawing() local
1140 rSh.StartUndo(); in ChangeDrawing()
1184 sal_uInt8 nProtect = rSh.IsSelObjProtected( FLYPROTECT_POS|FLYPROTECT_SIZE ); in ChangeDrawing()
1185 Size aSnap( rSh.GetViewOptions()->GetSnapSize() ); in ChangeDrawing()
1186 short nDiv = rSh.GetViewOptions()->GetDivisionX(); in ChangeDrawing()
1189 nDiv = rSh.GetViewOptions()->GetDivisionY(); in ChangeDrawing()
1206 SdrView *pSdrView = rSh.GetDrawView(); in ChangeDrawing()
1209 rSh.StartAllAction(); in ChangeDrawing()
1217 const bool bVertAnchor = rSh.IsFrmVertical( sal_True, bDummy1, bDummy2 ); in ChangeDrawing()
1220 !bHoriMove || (rSh.GetAnchorId() != FLY_AS_CHAR); in ChangeDrawing()
1224 rSh.SetModified(); in ChangeDrawing()
1238 rSh.MoveAnchor( nAnchorDir ); in ChangeDrawing()
1264 rSh.SetModified(); in ChangeDrawing()
1275 rSh.EndAllAction(); in ChangeDrawing()
1278 rSh.EndUndo(); in ChangeDrawing()
1308 SwWrtShell &rSh = rView.GetWrtShell(); in KeyInput() local
1310 rSh.IsCrsrReadonly(); in KeyInput()
1324 pQuickHlpData->Stop( rSh ); in KeyInput()
1328 if ( !bIsDocReadOnly && rSh.GetDrawView() && rSh.GetDrawView()->KeyInput( rKEvt, this ) ) in KeyInput()
1330 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll( sal_False ); in KeyInput()
1331 rSh.SetModified(); in KeyInput()
1338 rSh.Edit(); in KeyInput()
1348 if( !bIsDocReadOnly && !rSh.IsSelFrmMode() && !rSh.IsObjSelected() ) in KeyInput()
1364 const bool bVertText = rSh.IsInVerticalText(); in KeyInput()
1365 const bool bTblCrsr = rSh.GetTableCrsr(); in KeyInput()
1366 const bool bVertTable = rSh.IsTableVertical(); in KeyInput()
1378 if ( rSh.IsInRightToLeftText() ) in KeyInput()
1398 const SwFieldType* pFldType = rSh.GetFldType( 0, RES_POSTITFLD ); in KeyInput()
1399 rSh.MoveFldType( pFldType, bNext ); in KeyInput()
1403 const SwFrmFmt* pFlyFmt = rSh.GetFlyFrmFmt(); in KeyInput()
1430 rSh.ExecMacro( *pMacro, &sRet, &xArgs ); in KeyInput()
1438 && rSh.HasDrawView() && in KeyInput()
1439 (0 != (nLclSelectionType = rSh.GetSelectionType()) && in KeyInput()
1442 rSh.GetDrawView()->GetMarkedObjectList().GetMarkCount() == 1)))) in KeyInput()
1444 SdrHdlList& rHdlList = (SdrHdlList&)rSh.GetDrawView()->GetHdlList(); in KeyInput()
1540 rSh.SetReadOnlyAvailable( !rSh.IsReadOnlyAvailable() ); in KeyInput()
1546 !rSh.IsTableMode() && rSh.GetTableFmt() && in KeyInput()
1547 rSh.IsSttPara() /*&& rSh.IsEndPara()*/ && in KeyInput()
1548 !rSh.HasReadonlySel() ) in KeyInput()
1552 rSh.Push(); in KeyInput()
1553 if( !rSh.MoveSection( fnSectionCurr, fnSectionStart) && in KeyInput()
1554 !rSh.IsTableBoxTextFormat() ) in KeyInput()
1558 if( rSh.HasMark() ) in KeyInput()
1559 rSh.SwapPam(); in KeyInput()
1561 rSh.SttSelect(); in KeyInput()
1562 rSh.MoveSection( fnSectionCurr, fnSectionEnd ); in KeyInput()
1563 rSh.Pop( sal_True ); in KeyInput()
1564 rSh.EndSelect(); in KeyInput()
1568 rSh.Pop( sal_False ); in KeyInput()
1572 if( pACorr && aTmpQHD.HasCntnt() && !rSh.HasSelection() && in KeyInput()
1573 !rSh.HasReadonlySel() && !aTmpQHD.bIsAutoText && in KeyInput()
1648 if( rSh.IsTableMode() || !rSh.GetTableFmt() ) in KeyInput()
1653 … (rSh.GetSelectionType() & (nsSelectionType::SEL_DRW|nsSelectionType::SEL_DRW_FORM)) && in KeyInput()
1654 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
1671 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
1675 && rSh.GetDrawView()->AreObjectsMarked() ) ) in KeyInput()
1747 if( rSh.IsTableMode() || !rSh.GetTableFmt() || in KeyInput()
1752 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
1758 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
1773 if (rSh.IsInFrontOfLabel() && in KeyInput()
1774 rSh.NumOrNoNum(sal_False)) in KeyInput()
1779 if( !rSh.IsTableMode() && rSh.GetTableFmt() ) in KeyInput()
1790 if( !rSh.IsTableMode() && rSh.GetTableFmt() ) in KeyInput()
1802 if ( !rSh.HasReadonlySel() in KeyInput()
1803 && !rSh.CrsrInsideInputFld() ) in KeyInput()
1805 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
1812 rSh.GetDrawView()->GetMarkedObjectList().GetMarkCount() == 1) in KeyInput()
1814 else if( aTmpQHD.HasCntnt() && !rSh.HasSelection() && in KeyInput()
1820 rSh.GetNumRuleAtCurrCrsrPos() && in KeyInput()
1821 !rSh.GetNumRuleAtCurrCrsrPos()->IsOutlineRule() && in KeyInput()
1822 !rSh.HasSelection() && in KeyInput()
1823 rSh.IsSttPara() && rSh.IsEndPara() ) in KeyInput()
1839 if ( !rSh.HasReadonlySel() in KeyInput()
1840 && !rSh.IsSttPara() in KeyInput()
1841 && rSh.GetNumRuleAtCurrCrsrPos() in KeyInput()
1842 && !rSh.CrsrInsideInputFld() ) in KeyInput()
1846 else if( rSh.CanSpecialInsert() ) in KeyInput()
1852 if ( !rSh.HasReadonlySel() in KeyInput()
1853 && !rSh.CrsrInsideInputFld() ) in KeyInput()
1863 if ( rSh.IsSttPara() in KeyInput()
1864 && !rSh.HasSelection() in KeyInput()
1865 && ( rSh.GetNumRuleAtCurrCrsrPos() == NULL in KeyInput()
1866 || ( rSh.IsNoNum() && bOnlyBackspaceKey ) ) ) in KeyInput()
1868 bDone = rSh.TryRemoveIndent(); in KeyInput()
1875 if ( rSh.IsSttPara() && !rSh.IsNoNum() ) in KeyInput()
1878 && rSh.GetNumLevel() > 0) in KeyInput()
1902 if ( !bDone && rSh.IsSttPara() ) in KeyInput()
1905 if ( bOnlyBackspaceKey && !rSh.IsNoNum() ) in KeyInput()
1909 else if ( !bOnlyBackspaceKey && rSh.IsNoNum() ) in KeyInput()
1914 && rSh.IsSttPara() in KeyInput()
1915 && rSh.IsEndPara() in KeyInput()
1916 && !rSh.HasSelection() ) in KeyInput()
1918 const SwNumRule* pCurrNumRule( rSh.GetNumRuleAtCurrCrsrPos() ); in KeyInput()
1920 && pCurrNumRule != rSh.GetOutlineNumRule() ) in KeyInput()
1926 && rSh.NumOrNoNum( !bOnlyBackspaceKey, sal_True ) ) in KeyInput()
1947 sal_Bool bOld = rSh.ChgCrsrTimerFlag( sal_False ); in KeyInput()
1949 …if (rSh.IsFormProtected() || rSh.GetCurrentFieldmark() || rSh.GetChar(sal_False)==CH_TXT_ATR_FORME… in KeyInput()
1953 else if ( !rSh.IsMultiSelection() && rSh.CrsrInsideInputFld() ) in KeyInput()
1958 else if( rSh.GetNumRuleAtCurrCrsrPos() in KeyInput()
1959 && rSh.IsSttOfPara() in KeyInput()
1960 && !rSh.HasReadonlySel() ) in KeyInput()
1962 if ( !rSh.IsMultiSelection() in KeyInput()
1963 && rSh.IsFirstOfNumRuleAtCrsrPos() in KeyInput()
1969 else if ( rSh.GetTableFmt() ) in KeyInput()
1971 if( rSh.HasSelection() || rSh.HasReadonlySel() ) in KeyInput()
1976 else if ( rSh.GetSelectionType() & in KeyInput()
1987 if( rSh.IsSttOfPara() && !rSh.HasReadonlySel() ) in KeyInput()
1989 SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl(); in KeyInput()
1999 rSh.ChgCrsrTimerFlag( bOld ); in KeyInput()
2006 sal_Bool bOld = rSh.ChgCrsrTimerFlag( sal_False ); in KeyInput()
2007 sal_Bool bOld = rSh.ChgCrsrTimerFlag( sal_False ); in KeyInput()
2009 …if (rSh.IsFormProtected() || rSh.GetCurrentFieldmark()|| rSh.GetChar(sal_False)==CH_TXT_ATR_FORMEL… in KeyInput()
2013 else if ( !rSh.IsMultiSelection() && rSh.CrsrInsideInputFld() ) in KeyInput()
2018 else if( rSh.GetNumRuleAtCurrCrsrPos() in KeyInput()
2019 && rSh.IsSttOfPara() in KeyInput()
2020 && !rSh.HasReadonlySel() ) in KeyInput()
2022 if ( !rSh.IsMultiSelection() in KeyInput()
2023 && rSh.IsFirstOfNumRuleAtCrsrPos() in KeyInput()
2029 else if ( rSh.GetTableFmt() ) in KeyInput()
2031 if( rSh.HasSelection() || rSh.HasReadonlySel() ) in KeyInput()
2036 else if ( rSh.GetSelectionType() & in KeyInput()
2047 if( rSh.IsSttOfPara() && !rSh.HasReadonlySel() ) in KeyInput()
2049 SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl(); in KeyInput()
2059 rSh.ChgCrsrTimerFlag( bOld ); in KeyInput()
2065 if( !rSh.HasReadonlySel() ) in KeyInput()
2067 if( aTmpQHD.HasCntnt() && !rSh.HasSelection() ) in KeyInput()
2074 else if( rSh.GetTableFmt() ) in KeyInput()
2076 else if((rSh.GetSelectionType() & in KeyInput()
2079 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
2089 if( aTmpQHD.HasCntnt() && !rSh.HasSelection() && in KeyInput()
2090 !rSh.HasReadonlySel() ) in KeyInput()
2097 … else if((rSh.GetSelectionType() & (nsSelectionType::SEL_DRW|nsSelectionType::SEL_DRW_FORM| in KeyInput()
2099 rSh.GetDrawView()->AreObjectsMarked()) in KeyInput()
2103 if( !rSh.HasReadonlySel() ) in KeyInput()
2105 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
2124 if ( rSh.GetSelectionType() & in KeyInput()
2135 else if ( !rSh.IsMultiSelection() && rSh.CrsrInsideInputFld() ) in KeyInput()
2142 rSh.SelectNextPrevHyperlink( KEY_SHIFT != rKeyCode.GetModifier() ); in KeyInput()
2147 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
2152 … SfxItemSet aSet(rSh.GetAttrPool(), RES_TXTATR_INETFMT, RES_TXTATR_INETFMT); in KeyInput()
2153 rSh.GetCurAttr(aSet); in KeyInput()
2159 rSh.ClickToINetAttr((const SwFmtINetFmt&)rItem, URLLOAD_NOFILTER); in KeyInput()
2174 rSh.Right( CRSR_SKIP_CHARS, sal_False, 1, sal_False ); in KeyInput()
2179 rSh.Left( CRSR_SKIP_CHARS, sal_False, 1, sal_False ); in KeyInput()
2196 if (bNormalChar && rSh.IsInFrontOfLabel()) in KeyInput()
2198 rSh.NumOrNoNum(sal_False); in KeyInput()
2217 const int nSelectionType = rSh.GetSelectionType(); in KeyInput()
2220 rSh.GetDrawView()->GetMarkedObjectList().GetMarkCount() == 1) in KeyInput()
2222 … SdrObject* pObj = rSh.GetDrawView()->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj(); in KeyInput()
2228 rSh.GetDrawView()->KeyInput( rKEvt, this ); in KeyInput()
2233 rSh.UnSelectFrm(); in KeyInput()
2234 rSh.LeaveSelFrmMode(); in KeyInput()
2235 rView.AttrChangedNotify(&rSh); in KeyInput()
2236 rSh.MoveSection( fnSectionCurr, fnSectionEnd ); in KeyInput()
2249 rSh.LaunchOLEObj(); in KeyInput()
2253 rSh.UnSelectFrm(); in KeyInput()
2254 rSh.LeaveSelFrmMode(); in KeyInput()
2255 rView.AttrChangedNotify(&rSh); in KeyInput()
2256 rSh.MoveSection( fnSectionCurr, fnSectionEnd ); in KeyInput()
2261 … SdrObject* pObj = rSh.GetDrawView()->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj(); in KeyInput()
2273 const SdrHdlList& rHdlList = rSh.GetDrawView()->GetHdlList(); in KeyInput()
2290 if (rSh.GetChar(sal_False)==CH_TXT_ATR_FORMELEMENT) in KeyInput()
2294 (rSh.GetCurrentFieldmark()); in KeyInput()
2304 rSh.CalcLayout(); in KeyInput()
2309 else if ( !rSh.HasReadonlySel() in KeyInput()
2310 || rSh.CrsrInsideInputFld() ) in KeyInput()
2315 (aInBuffer.Len() || !rSh.IsSttPara() || !rSh.IsEndPara() )) in KeyInput()
2333 rSh.AutoCorrect( *pACorr, aCh ); in KeyInput()
2335 rSh.UpdateAttr(); in KeyInput()
2347 rSh.AutoCorrect( *pACorr, aCh ); in KeyInput()
2373 !rSh.HasReadonlySel() ) in KeyInput()
2376 rSh.AutoCorrect( *pACorr, static_cast< sal_Unicode >('\0') ); in KeyInput()
2389 rSh.DoSpecialInsert(); in KeyInput()
2393 rSh.NoNum(); in KeyInput()
2398 rSh.DelNumRules(); in KeyInput()
2405 rSh.NumUpDown( sal_True ); in KeyInput()
2409 rSh.NumUpDown( sal_False ); in KeyInput()
2413 rSh.ChangeIndentOfAllListLevels(360); in KeyInput()
2419 ::sw::mark::IFieldmark const * const pFieldmark = rSh.GetFieldmarkAfter(); in KeyInput()
2420 if(pFieldmark) rSh.GotoFieldmark(pFieldmark); in KeyInput()
2426 ::sw::mark::IFieldmark const * const pFieldmark = rSh.GetFieldmarkBefore(); in KeyInput()
2427 if(pFieldmark) rSh.GotoFieldmark(pFieldmark); in KeyInput()
2432 rSh.ChangeIndentOfAllListLevels(-360); in KeyInput()
2437 rSh.OutlineUpDown( 1 ); in KeyInput()
2440 rSh.OutlineUpDown( -1 ); in KeyInput()
2445 rSh.GoNextCell(); in KeyInput()
2449 rSh.GoPrevCell(); in KeyInput()
2453 rSh.SplitNode( sal_True ); in KeyInput()
2458 if(rSh.GotoObj( KS_NextObject == eKeyState, GOTOOBJ_GOTO_ANY)) in KeyInput()
2460 if( rSh.IsFrmSelected() && in KeyInput()
2466 rView.AttrChangedNotify( &rSh ); in KeyInput()
2468 rSh.HideCrsr(); in KeyInput()
2469 rSh.EnterSelFrmMode(); in KeyInput()
2475 rSh.StartUndo( UNDO_START ); in KeyInput()
2485 rSh.SttSelect(); in KeyInput()
2486 rSh.ExtendSelection( sal_False, aTmpQHD.nLen ); in KeyInput()
2495 rSh.Insert( sFnd.Erase( 0, aTmpQHD.nLen )); in KeyInput()
2499 rSh.EndUndo( UNDO_END ); in KeyInput()
2505 pQuickHlpData->Start( rSh, USHRT_MAX ); in KeyInput()
2521 …case KS_ColLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_LEFT|nsTblCh… in KeyInput()
2522 …case KS_ColRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_RIGHT|nsTblC… in KeyInput()
2523 …case KS_ColLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_LEFT, pModOp… in KeyInput()
2524 …case KS_ColRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_COL_RIGHT, pModO… in KeyInput()
2525 …case KS_ColBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_ROW_BOTTOM|nsTbl… in KeyInput()
2526 …case KS_ColBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_ROW_BOTTOM, pMod… in KeyInput()
2527 …case KS_CellLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_LEFT|nsTblC… in KeyInput()
2528 …case KS_CellRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_RIGHT|nsTbl… in KeyInput()
2529 …case KS_CellLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_LEFT, pModO… in KeyInput()
2530 …case KS_CellRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_RIGHT, pMod… in KeyInput()
2531 …case KS_CellTopBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_TOP|nsTblCh… in KeyInput()
2532 …case KS_CellBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_BOTTOM|nsTb… in KeyInput()
2533 …case KS_CellTopSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_TOP, pModOp… in KeyInput()
2534 …case KS_CellBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_CELL_BOTTOM, pMo… in KeyInput()
2537 …case KS_InsDel_ColLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2538 …case KS_InsDel_ColRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2539 …case KS_InsDel_ColLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2540 …case KS_InsDel_ColRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2541 …case KS_InsDel_ColTopBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2542 …case KS_InsDel_ColBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2543 …case KS_InsDel_ColTopSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2544 …case KS_InsDel_ColBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2545 …case KS_InsDel_CellLeftBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2546 …case KS_InsDel_CellRightBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2547 …case KS_InsDel_CellLeftSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2548 …case KS_InsDel_CellRightSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2549 …case KS_InsDel_CellTopBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2550 …case KS_InsDel_CellBottomBig: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2551 …case KS_InsDel_CellTopSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2552 …case KS_InsDel_CellBottomSmall: rSh.SetColRowWidthHeight( nsTblChgWidthHeightType::WH_FLAG_INS… in KeyInput()
2555 rSh.SetColRowWidthHeight( eTblChgMode, nTblChgSize ); in KeyInput()
2559 SdrView *pSdrView = rSh.GetDrawView(); in KeyInput()
2602 rSh.GetPrevAutoCorrWord( *pACorr, sWord ) ) in KeyInput()
2629 SwWrtShell &rSh = rView.GetWrtShell(); in MouseButtonDown() local
2638 SfxInPlaceClient* pIPClient = rSh.GetSfxViewShell()->GetIPClient(); in MouseButtonDown()
2672 SwFlyFrmFmt *pFmt = (SwFlyFrmFmt*)rSh.GetFlyFrmFmt(); in MouseButtonDown()
2673 if ( !rSh.Chainable( aDummy, *pFmt, aDocPos ) ) in MouseButtonDown()
2674 rSh.Chain( *pFmt, aDocPos ); in MouseButtonDown()
2687 pQuickHlpData->Stop( rSh ); in MouseButtonDown()
2690 if( rSh.FinishOLEObj() ) in MouseButtonDown()
2693 SET_CURR_SHELL( &rSh ); in MouseButtonDown()
2695 SdrView *pSdrView = rSh.GetDrawView(); in MouseButtonDown()
2700 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False); in MouseButtonDown()
2711 const sal_Bool bTmp = !rSh.IsDrawCreate() && !pApplyTempl && !rSh.IsInSelect() && in MouseButtonDown()
2714 0 != (nMouseTabCol = rSh.WhichMouseTabCol( aDocPos ) ) && in MouseButtonDown()
2715 !rSh.IsObjSelectable( aDocPos ) ) in MouseButtonDown()
2720 rSh.EnterStdMode(); in MouseButtonDown()
2721 rSh.SelectTableRowCol( aDocPos ); in MouseButtonDown()
2734 if ( !rSh.IsTableMode() ) in MouseButtonDown()
2762 rSh.IsNumLabel(aDocPos)) in MouseButtonDown()
2764 SwTxtNode* pNodeAtPos = rSh.GetNumRuleNodeAtPos( aDocPos ); in MouseButtonDown()
2771 rSh.IsVerticalModeAtNdAndPos( *pNodeAtPos, aDocPos ) ) ) in MouseButtonDown()
2787 if ( rSh.IsInSelect() ) in MouseButtonDown()
2788 rSh.EndSelect(); in MouseButtonDown()
2801 rSh.ResetCursorStack(); in MouseButtonDown()
2808 if( rSh.IsObjSelected() ) in MouseButtonDown()
2832 rSh.Edit(); in MouseButtonDown()
2838 if ( rSh.IsSelFrmMode()) in MouseButtonDown()
2840 SdrHdl* pHdl = rSh.GetDrawView()->PickHandle(aDocPos); in MouseButtonDown()
2844 if ((rSh.IsInsideSelectedObj(aDocPos) || bHitHandle) && in MouseButtonDown()
2847 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
2908 if ( aActHitType != SDRHIT_NONE && !rSh.IsSelFrmMode() && in MouseButtonDown()
2913 sal_Bool bShould = rSh.ShouldObjectBeSelected(aDocPos); in MouseButtonDown()
2918 rSh.HideCrsr(); in MouseButtonDown()
2920 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
2921 rSh.LockView( sal_True ); in MouseButtonDown()
2922 sal_Bool bSelObj = rSh.SelectObj( aDocPos, in MouseButtonDown()
2925 rSh.LockView( sal_False ); in MouseButtonDown()
2932 if( FRMTYPE_NONE == rSh.GetSelFrmType() ) in MouseButtonDown()
2933 rSh.ShowCrsr(); in MouseButtonDown()
2936 if (rSh.IsFrmSelected() && rView.GetDrawFuncPtr()) in MouseButtonDown()
2941 rView.AttrChangedNotify( &rSh ); in MouseButtonDown()
2944 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
2951 … bOnlyText = static_cast< sal_Bool >(rSh.IsObjSelectable( aDocPos )); in MouseButtonDown()
2954 rSh.ShowCrsr(); in MouseButtonDown()
2959 else if ( rSh.IsSelFrmMode() && in MouseButtonDown()
2961 !rSh.IsInsideSelectedObj( aDocPos ))) in MouseButtonDown()
2976 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
2977 rSh.LockView( sal_True ); in MouseButtonDown()
2982 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
2984 rSh.UnSelectFrm(); in MouseButtonDown()
2985 rSh.LeaveSelFrmMode(); in MouseButtonDown()
2986 rView.AttrChangedNotify(&rSh); in MouseButtonDown()
2989 sal_Bool bSelObj = rSh.SelectObj( aDocPos, nFlag ); in MouseButtonDown()
2991 rSh.LockView( sal_False ); in MouseButtonDown()
2998 … bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in MouseButtonDown()
2999 rSh.LeaveSelFrmMode(); in MouseButtonDown()
3000 rView.AttrChangedNotify( &rSh ); in MouseButtonDown()
3005 rSh.HideCrsr(); in MouseButtonDown()
3006 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3007 rSh.SelFlyGrabCrsr(); in MouseButtonDown()
3008 rSh.MakeSelVisible(); in MouseButtonDown()
3010 if( rSh.IsFrmSelected() && in MouseButtonDown()
3016 rView.AttrChangedNotify( &rSh ); in MouseButtonDown()
3029 if ( !bIsDocReadOnly && rSh.IsInsideSelectedObj(aDocPos) && in MouseButtonDown()
3030 0 == rSh.IsSelObjProtected( FLYPROTECT_CONTENT|FLYPROTECT_PARENT ) ) in MouseButtonDown()
3035 …switch ( rSh.GetSelectionType() &~ ( nsSelectionType::SEL_FONTWORK | nsSelectionType::SEL_EXTRUDED… in MouseButtonDown()
3046 if (!rSh.IsSelObjProtected(FLYPROTECT_CONTENT)) in MouseButtonDown()
3049 rSh.LaunchOLEObj(); in MouseButtonDown()
3071 (rSh.IsFrmSelected() && rSh.IsFrmSelected() )) in MouseButtonDown()
3078 ( 0 != ( pFld = rSh.GetCurFld() ) || in MouseButtonDown()
3079 0 != ( bFtn = rSh.GetCurFtn() )) ) in MouseButtonDown()
3112 if ( rSh.IsExtMode() || rSh.IsBlockMode() ) in MouseButtonDown()
3116 if ( KEY_MOD1 == rMEvt.GetModifier() && !rSh.IsAddMode() ) in MouseButtonDown()
3118 rSh.EnterAddMode(); in MouseButtonDown()
3119 rSh.SelWrd( &aDocPos ); in MouseButtonDown()
3120 rSh.LeaveAddMode(); in MouseButtonDown()
3123 rSh.SelWrd( &aDocPos ); in MouseButtonDown()
3133 if ( rSh.IsExtMode() ) in MouseButtonDown()
3139 if ( !bValidCrsrPos || rSh.IsFrmSelected() ) in MouseButtonDown()
3144 !rSh.IsAddMode(); in MouseButtonDown()
3147 rSh.EnterAddMode(); in MouseButtonDown()
3151 rSh.SelSentence( &aDocPos ); in MouseButtonDown()
3153 rSh.SelPara( &aDocPos ); in MouseButtonDown()
3156 rSh.LeaveAddMode(); in MouseButtonDown()
3175 if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) ) in MouseButtonDown()
3178 rSh.HideCrsr(); in MouseButtonDown()
3179 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3180 rSh.SelectObj(aDocPos, SW_ADD_SELECT | SW_ENTER_GROUP); in MouseButtonDown()
3182 { if ( rSh.SelectObj( aDocPos, SW_ADD_SELECT | SW_ENTER_GROUP ) ) in MouseButtonDown()
3184 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3192 else if( rSh.IsSelFrmMode() && in MouseButtonDown()
3193 rSh.GetDrawView()->PickHandle( aDocPos )) in MouseButtonDown()
3204 if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) ) in MouseButtonDown()
3207 rSh.HideCrsr(); in MouseButtonDown()
3208 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3209 rSh.SelectObj(aDocPos, SW_ENTER_GROUP); in MouseButtonDown()
3211 { if ( rSh.SelectObj( aDocPos, SW_ENTER_GROUP ) ) in MouseButtonDown()
3213 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3221 else if( rSh.IsSelFrmMode() && in MouseButtonDown()
3222 rSh.GetDrawView()->PickHandle( aDocPos )) in MouseButtonDown()
3230 if ( !rSh.IsAddMode() && !rSh.IsExtMode() && !rSh.IsBlockMode() ) in MouseButtonDown()
3232 rSh.PushMode(); in MouseButtonDown()
3235 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
3236 rSh.LockView( sal_True ); in MouseButtonDown()
3237 rSh.EnterAddMode(); in MouseButtonDown()
3239 rSh.LockView( sal_False ); in MouseButtonDown()
3247 if ( !rSh.IsAddMode() && !rSh.IsExtMode() && !rSh.IsBlockMode() ) in MouseButtonDown()
3249 rSh.PushMode(); in MouseButtonDown()
3251 sal_Bool bUnLockView = !rSh.IsViewLocked(); in MouseButtonDown()
3252 rSh.LockView( sal_True ); in MouseButtonDown()
3253 rSh.EnterBlockMode(); in MouseButtonDown()
3255 rSh.LockView( sal_False ); in MouseButtonDown()
3262 if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) ) in MouseButtonDown()
3265 rSh.HideCrsr(); in MouseButtonDown()
3266 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3268 rSh.SelectObj(aDocPos, SW_ADD_SELECT); in MouseButtonDown()
3273 rSh.LeaveSelFrmMode(); in MouseButtonDown()
3274 rView.AttrChangedNotify(&rSh); in MouseButtonDown()
3279 { if ( rSh.SelectObj( aDocPos ) ) in MouseButtonDown()
3281 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3291 if ( rSh.IsSelFrmMode() && in MouseButtonDown()
3292 rSh.IsInsideSelectedObj( aDocPos ) ) in MouseButtonDown()
3294 rSh.EnterSelFrmMode( &aDocPos ); in MouseButtonDown()
3300 if ( rSh.IsSelFrmMode() ) in MouseButtonDown()
3302 rSh.UnSelectFrm(); in MouseButtonDown()
3303 rSh.LeaveSelFrmMode(); in MouseButtonDown()
3304 rView.AttrChangedNotify(&rSh); in MouseButtonDown()
3307 if ( !rSh.IsExtMode() ) in MouseButtonDown()
3311 sal_Bool bSttSelect = rSh.HasSelection() || in MouseButtonDown()
3323 if( rSh.GetContentAtPos( aDocPos, aCntntAtPos ) ) in MouseButtonDown()
3325 if( !rSh.IsViewLocked() && in MouseButtonDown()
3326 !rSh.IsReadOnlyAvailable() && in MouseButtonDown()
3332 else if( rSh.IsURLGrfAtPos( aDocPos )) in MouseButtonDown()
3338 rSh.SttSelect(); in MouseButtonDown()
3345 if( !rSh.IsViewLocked() ) in MouseButtonDown()
3349 if( rSh.GetContentAtPos( aDocPos, aCntntAtPos, sal_False ) && in MouseButtonDown()
3350 !rSh.IsReadOnlyAvailable() && in MouseButtonDown()
3356 if ( rSh.IsGCAttr() ) in MouseButtonDown()
3358 rSh.GCAttr(); in MouseButtonDown()
3359 rSh.ClearGCAttr(); in MouseButtonDown()
3362 sal_Bool bOverSelect = rSh.ChgCurrPam( aDocPos ), bOverURLGrf = sal_False; in MouseButtonDown()
3364 bOverURLGrf = bOverSelect = 0 != rSh.IsURLGrfAtPos( aDocPos ); in MouseButtonDown()
3371 if( !rSh.IsViewLocked() && bLockView ) in MouseButtonDown()
3372 rSh.LockView( sal_True ); in MouseButtonDown()
3380 MV_KONTEXT( &rSh ); in MouseButtonDown()
3381 nTmpSetCrsr = (rSh.*rSh.fnSetCrsr)(&aDocPos,bOnlyText); in MouseButtonDown()
3391 rSh.LockView( sal_False ); in MouseButtonDown()
3397 const int nSelType = rSh.GetSelectionType(); in MouseButtonDown()
3402 || rSh.IsObjSelectable( aDocPos ) ) in MouseButtonDown()
3404 MV_KONTEXT( &rSh ); in MouseButtonDown()
3405 if( !rSh.IsFrmSelected() ) in MouseButtonDown()
3406 rSh.GotoNextFly(); in MouseButtonDown()
3407 rSh.EnterSelFrmMode(); in MouseButtonDown()
3439 SwWrtShell &rSh = rView.GetWrtShell(); in MouseMove() local
3440 if( rSh.ActionPend() ) in MouseMove()
3448 SET_CURR_SHELL( &rSh ); in MouseMove()
3463 SdrView *pSdrView = rSh.GetDrawView(); in MouseMove()
3474 const Point aOldPt( rSh.VisArea().Pos() ); in MouseMove()
3475 const sal_Bool bInsWin = rSh.VisArea().IsInside( aDocPt ); in MouseMove()
3484 if( rSh.SelectTableRowCol( *pRowColumnSelectionStart, &aPos, bIsRowDrag )) in MouseMove()
3496 StopDDTimer( &rSh, aDocPt ); in MouseMove()
3507 aTmp += rSh.VisArea().Pos() - aOldPt; in MouseMove()
3514 else if(!rSh.IsFrmSelected() && !rSh.IsObjSelected()) in MouseMove()
3516 SfxBindings &rBnd = rSh.GetView().GetViewFrame()->GetBindings(); in MouseMove()
3517 Point aRelPos = rSh.GetRelativePagePosition(aDocPt); in MouseMove()
3536 if( !bIsDocReadOnly && bInsWin && !pApplyTempl && !rSh.IsInSelect() ) in MouseMove()
3538 if ( SW_TABCOL_NONE != (nMouseTabCol = rSh.WhichMouseTabCol( aDocPt ) ) && in MouseMove()
3539 !rSh.IsObjSelectable( aDocPt ) ) in MouseMove()
3579 ( !bChkTblSel || !rSh.IsTableMode() ) ) in MouseMove()
3586 else if (rSh.IsNumLabel(aDocPt, RULER_MOUSE_MARGINWIDTH)) in MouseMove()
3588 SwTxtNode* pNodeAtPos = rSh.GetNumRuleNodeAtPos( aDocPt ); in MouseMove()
3590 rSh.IsVerticalModeAtNdAndPos( *pNodeAtPos, aDocPt ) in MouseMove()
3615 const Point aOld = pAnchorMarker->GetPosForHitTest( *(rSh.GetOut()) ); in MouseMove()
3616 Point aNew = rSh.FindAnchorPos( aDocPt ); in MouseMove()
3660 if ( bFrmDrag && rSh.IsSelFrmMode() ) in MouseMove()
3686 if( 0 != ( pFlyFmt = rSh.GetFlyFrmFmt() ) && in MouseMove()
3715 rSh.ExecMacro( *pMacro, &sRet, &xArgs ); in MouseMove()
3739 (rSh.*rSh.fnDrag)( &aDocPt, rMEvt.IsShift() ); in MouseMove()
3748 aTmp += rSh.VisArea().Pos() - aOldPt; in MouseMove()
3755 if ( !rSh.IsSelFrmMode() && !bDDINetAttr && in MouseMove()
3757 (rSh.IsInSelect() || !rSh.ChgCurrPam( aDocPt )) ) in MouseMove()
3769 aTmp += rSh.VisArea().Pos() - aOldPt; in MouseMove()
3780 rSh.Is_FnDragEQBeginDrag() && !rSh.IsAddMode() )) in MouseMove()
3782 (rSh.*rSh.fnDrag)( &aDocPt,sal_False ); in MouseMove()
3784 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPt,sal_False)); in MouseMove()
3802 if( rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_False, &aFldRect ) ) in MouseMove()
3828 if( rSh.GetContentAtPos( aDocPt, aCntntAtPos ) ) in MouseMove()
3834 0 != ( pTmp = pFmt = rSh.GetFmtFromAnyObj( aDocPt ))) in MouseMove()
3853 rSh.CallEvent( SFX_EVENT_MOUSEOUT_OBJECT, in MouseMove()
3856 if( !rSh.CallEvent( SFX_EVENT_MOUSEOVER_OBJECT, in MouseMove()
3864 rSh.CallEvent( SFX_EVENT_MOUSEOUT_OBJECT, in MouseMove()
3870 !rSh.GetViewOptions()->getBrowseMode() && in MouseMove()
3871 rSh.GetViewOptions()->IsShadowCursor() && in MouseMove()
3873 !rSh.HasSelection() && !GetConnectMetaFile() ) in MouseMove()
3877 SwFillMode eMode = (SwFillMode)rSh.GetViewOptions()->GetShdwCrsrFillMode(); in MouseMove()
3878 if( rSh.GetShadowCrsrPos( aDocPt, eMode, aRect, eOrient )) in MouseMove()
3892 if( rSh.IsBlockMode() && !rMEvt.IsSynthetic() ) in MouseMove()
3894 (rSh.*rSh.fnDrag)( &aDocPt,sal_False ); in MouseMove()
3895 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPt,sal_False)); in MouseMove()
3930 SwWrtShell &rSh = rView.GetWrtShell(); in MouseButtonUp() local
3931 SET_CURR_SHELL( &rSh ); in MouseButtonUp()
3932 SdrView *pSdrView = rSh.GetDrawView(); in MouseButtonUp()
3939 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False); in MouseButtonUp()
3953 StopDDTimer( &rSh, aDocPt ); in MouseButtonUp()
3955 if ( rSh.IsSelFrmMode() ) in MouseButtonUp()
3957 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
3976 rSh.FindAnchorPos( aPnt, sal_True ); in MouseButtonUp()
3995 if ( rSh.IsObjSelected() ) in MouseButtonUp()
3997 rSh.EnterSelFrmMode(); in MouseButtonUp()
4001 else if ( rSh.IsFrmSelected() ) in MouseButtonUp()
4003 rSh.EnterSelFrmMode(); in MouseButtonUp()
4009 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in MouseButtonUp()
4010 rSh.Edit(); in MouseButtonUp()
4013 rView.AttrChangedNotify( &rSh ); in MouseButtonUp()
4015 else if (rMEvt.GetButtons() == MOUSE_RIGHT && rSh.IsDrawCreate()) in MouseButtonUp()
4026 if ( bInsDraw && rSh.IsDrawCreate() ) in MouseButtonUp()
4031 rView.AttrChangedNotify( &rSh ); in MouseButtonUp()
4032 if ( rSh.IsObjSelected() ) in MouseButtonUp()
4033 rSh.EnterSelFrmMode(); in MouseButtonUp()
4043 if ( bFrmDrag && rSh.IsSelFrmMode() ) in MouseButtonUp()
4049 rSh.GetDrawView()->TakeActionRect( aRect ); in MouseButtonUp()
4052 rSh.BreakDrag(); in MouseButtonUp()
4054 if ( rSh.GetSelFrmType() & FRMTYPE_FLY_ATCNT ) in MouseButtonUp()
4057 aSttPt = rSh.GetDrawView()->GetAllMarkedRect().TopLeft(); in MouseButtonUp()
4062 aSttPt = rSh.GetDrawView()->GetAllMarkedRect().Center(); in MouseButtonUp()
4066 rSh.StartUndo( UNDO_UI_DRAG_AND_COPY ); in MouseButtonUp()
4067 rSh.Copy(&rSh, aSttPt, aEndPt, sal_False); in MouseButtonUp()
4068 rSh.EndUndo( UNDO_UI_DRAG_AND_COPY ); in MouseButtonUp()
4072 (rSh.*rSh.fnEndDrag)( &aDocPt,sal_False ); in MouseButtonUp()
4084 if( 0 != ( pFlyFmt = rSh.GetFlyFrmFmt() ) && in MouseButtonUp()
4116 rSh.ExecMacro( *pMacro, 0, &xArgs ); in MouseButtonUp()
4121 (rSh.*rSh.fnEndDrag)( &aDocPt,sal_False ); in MouseButtonUp()
4130 if (rSh.IsSelFrmMode()) in MouseButtonUp()
4133 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
4144 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
4148 if ( !rSh.IsInSelect() && rSh.ChgCurrPam( aDocPt ) ) in MouseButtonUp()
4154 MV_KONTEXT( &rSh ); in MouseButtonUp()
4156 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in MouseButtonUp()
4163 sal_Bool bInSel = rSh.IsInSelect(); in MouseButtonUp()
4164 (rSh.*rSh.fnEndDrag)( &aDocPt, sal_False ); in MouseButtonUp()
4194 if( rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_True ) ) in MouseButtonUp()
4196 sal_Bool bViewLocked = rSh.IsViewLocked(); in MouseButtonUp()
4197 if( !bViewLocked && !rSh.IsReadOnlyAvailable() && in MouseButtonUp()
4199 rSh.LockView( sal_True ); in MouseButtonUp()
4210 rSh.SttSelect(); in MouseButtonUp()
4211 rSh.SelectTxt( *(aCntntAtPos.pFndTxtAttr->GetStart()) + 1, in MouseButtonUp()
4216 rSh.ClickToField( *aCntntAtPos.aFnd.pFld ); in MouseButtonUp()
4236 rSh.InvalidateWindows( rView.GetVisArea() ); in MouseButtonUp()
4240 rSh.InvalidateWindows( rView.GetVisArea() ); in MouseButtonUp()
4249rSh.ClickToINetAttr( *(SwFmtINetFmt*)aCntntAtPos.aFnd.pAttr, nFilter ); in MouseButtonUp()
4252 rSh.LockView( bViewLocked ); in MouseButtonUp()
4258 … if( !rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_True ) && bExecHyperlinks ) in MouseButtonUp()
4273 ::LoadURL( sURL, &rSh, nFilter, &sTarget); in MouseButtonUp()
4281 if( rSh.ClickToINetGrf( aDocPt, nFilter )) in MouseButtonUp()
4288 rSh.GetViewOptions()->IsShadowCursor() && in MouseButtonUp()
4290 !rSh.HasSelection() && in MouseButtonUp()
4292 rSh.VisArea().IsInside( aDocPt )) in MouseButtonUp()
4295 if (rSh.GetLastUndoInfo(0, & nLastUndoId)) in MouseButtonUp()
4299 rSh.Undo(); in MouseButtonUp()
4302 … SwFillMode eMode = (SwFillMode)rSh.GetViewOptions()->GetShdwCrsrFillMode(); in MouseButtonUp()
4303 rSh.SetShadowCrsrPos( aDocPt, eMode ); in MouseButtonUp()
4314 rSh.PopMode(); in MouseButtonUp()
4327 int eSelection = rSh.GetSelectionType(); in MouseButtonUp()
4366 if( rSh.IsSelection() && !rSh.HasReadonlySel() ) in MouseButtonUp()
4373 rSh.SetAttrItem( SvxBrushItem( aColor, nId ) ); in MouseButtonUp()
4376 rSh.SetAttrItem( SvxColorItem(SwEditWin::aTextColor, nId) ); in MouseButtonUp()
4377 rSh.UnSetVisCrsr(); in MouseButtonUp()
4378 rSh.EnterStdMode(); in MouseButtonUp()
4379 rSh.SetVisCrsr(aDocPt); in MouseButtonUp()
4399 & eSelection ) && !rSh.HasReadonlySel() ) in MouseButtonUp()
4401 rSh.SetTxtFmtColl( pApplyTempl->aColl.pTxtColl ); in MouseButtonUp()
4410 & eSelection ) && !rSh.HasReadonlySel() ) in MouseButtonUp()
4412 rSh.SetAttrItem( SwFmtCharFmt(pApplyTempl->aColl.pCharFmt) ); in MouseButtonUp()
4413 rSh.UnSetVisCrsr(); in MouseButtonUp()
4414 rSh.EnterStdMode(); in MouseButtonUp()
4415 rSh.SetVisCrsr(aDocPt); in MouseButtonUp()
4424 const SwFrmFmt* pFmt = rSh.GetFmtFromObj( aDocPt ); in MouseButtonUp()
4427 rSh.SetFrmFmt( pApplyTempl->aColl.pFrmFmt, sal_False, &aDocPt ); in MouseButtonUp()
4437 rSh.ChgCurPageDesc( *pApplyTempl->aColl.pPageDesc ); in MouseButtonUp()
4443 if( !rSh.HasReadonlySel() ) in MouseButtonUp()
4445 rSh.SetCurNumRule( *pApplyTempl->aColl.pNumRule, in MouseButtonUp()
4496 SwWrtShell &rSh = rView.GetWrtShell(); in SetApplyTemplate() local
4502 rSh.NoEdit( sal_False ); in SetApplyTemplate()
4503 bIdle = rSh.GetViewOptions()->IsIdle(); in SetApplyTemplate()
4504 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( sal_False ); in SetApplyTemplate()
4510 rSh.NoEdit( sal_False ); in SetApplyTemplate()
4511 bIdle = rSh.GetViewOptions()->IsIdle(); in SetApplyTemplate()
4512 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( sal_False ); in SetApplyTemplate()
4518 rSh.NoEdit( sal_False ); in SetApplyTemplate()
4519 bIdle = rSh.GetViewOptions()->IsIdle(); in SetApplyTemplate()
4520 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( sal_False ); in SetApplyTemplate()
4525 rSh.UnSetVisCrsr(); in SetApplyTemplate()
4527 ((SwViewOption *)rSh.GetViewOptions())->SetIdle( bIdle ); in SetApplyTemplate()
4528 if ( !rSh.IsSelFrmMode() ) in SetApplyTemplate()
4529 rSh.Edit(); in SetApplyTemplate()
4661 SwWrtShell &rSh = rView.GetWrtShell(); in EnterDrawMode() local
4662 SdrView *pSdrView = rSh.GetDrawView(); in EnterDrawMode()
4666 if (rSh.IsDrawCreate()) in EnterDrawMode()
4670 rView.AttrChangedNotify( &rSh ); in EnterDrawMode()
4676 sal_Bool bUnLockView = !rSh.IsViewLocked(); in EnterDrawMode()
4677 rSh.LockView( sal_True ); in EnterDrawMode()
4679 rSh.EndTextEdit(); // Danebengeklickt, Ende mit Edit in EnterDrawMode()
4680 rSh.SelectObj( aDocPos ); in EnterDrawMode()
4681 if ( !rSh.IsObjSelected() && !rSh.IsFrmSelected() ) in EnterDrawMode()
4682 rSh.LeaveSelFrmMode(); in EnterDrawMode()
4690 rSh.LockView( sal_False ); in EnterDrawMode()
4691 rView.AttrChangedNotify( &rSh ); in EnterDrawMode()
4750 SwWrtShell &rSh = rView.GetWrtShell(); in Command() local
4764 SfxInPlaceClient* pIPClient = rSh.GetSfxViewShell()->GetIPClient(); in Command()
4768 rSh.FinishOLEObj(); in Command()
4786 !rSh.IsDrawCreate() && !IsDrawAction()) in Command()
4788 SET_CURR_SHELL( &rSh ); in Command()
4799 aDocPos = rSh.GetCharRect().Center(); in Command()
4802 SelectMenuPosition(rSh, rCEvt.GetMousePosPixel()); in Command()
4836 rSh.Do(SwWrtShell::UNDO); in Command()
4853 if ( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
4856 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
4899 if ( !rSh.GetNumRuleAtCurrCrsrPos() ) in Command()
4903 if ( rSh.GetNumRuleAtCurrCrsrPos() ) in Command()
4908 rSh.Insert( '\t' ); in Command()
4943 rSh.IsCrsrReadonly(); in Command()
4946 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
4949 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
4953 if( rSh.HasSelection() ) in Command()
4954 rSh.DelRight(); in Command()
4958 rSh.CreateExtTextInput(eInputLanguage); in Command()
4966 rSh.IsCrsrReadonly(); in Command()
4969 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
4972 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
4977 String sRecord = rSh.DeleteExtTextInput(); in Command()
4993 rSh.DelLeft(); in Command()
4994 rSh.AutoCorrect( *pACorr, aCh ); in Command()
5017 rSh.IsCrsrReadonly(); in Command()
5024 pQuickHlpData->Stop( rSh ); in Command()
5027 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
5030 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
5039 rSh.SetExtTextInputData( *pData ); in Command()
5051 rSh.GetPrevAutoCorrWord( *pACorr, sWord ) ) in Command()
5062 rSh.IsCrsrReadonly(); in Command()
5065 if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() ) in Command()
5068 rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt ); in Command()
5072 const SwExtTextInput* pExtInp = rSh.GetDoc()->GetExtTextInput(); in Command()
5077 *rSh.GetCrsr()->End(), *rSh.GetCrsr()->End() ) ) in Command()
5080 if ( rSh.GetCharRectAt( aInputRect, *pExtInp->Start() ) ) in Command()
5117 SwTransferable::PasteData( aDataHelper, rSh, nDropAction, in Command()
5150 rSh.SttCrsrMove(); in Command()
5151 rSh.GoStartSentence(); in Command()
5152rSh.GetCrsr()->GetPoint()->nContent += sal::static_int_cast<sal_uInt16, sal_uLong>(pData->GetStart… in Command()
5153 rSh.SetMark(); in Command()
5154rSh.GetCrsr()->GetMark()->nContent += sal::static_int_cast<sal_uInt16, sal_uLong>(pData->GetEnd() … in Command()
5155 rSh.EndCrsrMove( sal_True ); in Command()
5159 if( rSh.HasSelection() ) in Command()
5161 SwPaM *pCrsr = (SwPaM*)rSh.GetCrsr(); in Command()
5163 if( rSh.IsMultiSelection() ) in Command()
5168 rSh.GoPrevCrsr(); in Command()
5169 pCrsr = (SwPaM*)rSh.GetCrsr(); in Command()
5173 while( rSh.GetCrsr()->GetNext() != rSh.GetCrsr() ) in Command()
5174 delete rSh.GetCrsr()->GetNext(); in Command()
5184 if( !rSh.GetCrsr()->HasMark() ) in Command()
5185 rSh.GetCrsr()->SetMark(); in Command()
5187 rSh.SttCrsrMove(); in Command()
5191 rSh.GetCrsr()->GetPoint()->nNode = nPosNodeIdx; in Command()
5192 rSh.GetCrsr()->GetPoint()->nContent = nPosIdx; in Command()
5193 rSh.GetCrsr()->GetMark()->nNode = nPosNodeIdx; in Command()
5194 rSh.GetCrsr()->GetMark()->nContent = in Command()
5195 rSh.GetCrsr()->GetCntntNode( sal_True )->Len(); in Command()
5199 rSh.GetCrsr()->GetPoint()->nNode = nPosNodeIdx; in Command()
5200 rSh.GetCrsr()->GetPoint()->nContent = nPosIdx; in Command()
5201 rSh.GetCrsr()->GetMark()->nNode = nMarkNodeIdx; in Command()
5202 rSh.GetCrsr()->GetMark()->nContent = nMarkIdx; in Command()
5206 rSh.GetCrsr()->GetMark()->nNode = nMarkNodeIdx; in Command()
5207 rSh.GetCrsr()->GetMark()->nContent = nMarkIdx; in Command()
5208 rSh.GetCrsr()->GetPoint()->nNode = nMarkNodeIdx; in Command()
5209 rSh.GetCrsr()->GetPoint()->nContent = in Command()
5210 rSh.GetCrsr()->GetCntntNode( sal_False )->Len(); in Command()
5213 rSh.EndCrsrMove( sal_True ); in Command()
5230 sal_Bool SwEditWin::SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos ) in SelectMenuPosition() argument
5234 const bool bIsInsideSelectedObj( rSh.IsInsideSelectedObj( aDocPos ) ); in SelectMenuPosition()
5237 SdrView *pSdrView = rSh.GetDrawView(); in SelectMenuPosition()
5255 if(rSh.GetSelectionType() & nsSelectionType::SEL_DRW_TXT) in SelectMenuPosition()
5293 rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False); in SelectMenuPosition()
5297 rSh.ResetCursorStack(); in SelectMenuPosition()
5306 rSh.Edit(); in SelectMenuPosition()
5311 if( !rSh.IsSelFrmMode() && in SelectMenuPosition()
5316 sal_Bool bShould = rSh.ShouldObjectBeSelected(aDocPos); in SelectMenuPosition()
5321 rSh.HideCrsr(); in SelectMenuPosition()
5323 sal_Bool bUnLockView = !rSh.IsViewLocked(); in SelectMenuPosition()
5324 rSh.LockView( sal_True ); in SelectMenuPosition()
5325 sal_Bool bSelObj = rSh.SelectObj( aDocPos, 0); in SelectMenuPosition()
5327 rSh.LockView( sal_False ); in SelectMenuPosition()
5335 if( FRMTYPE_NONE == rSh.GetSelFrmType() ) in SelectMenuPosition()
5336 rSh.ShowCrsr(); in SelectMenuPosition()
5339 if (rSh.IsFrmSelected() && rView.GetDrawFuncPtr()) in SelectMenuPosition()
5344 rView.AttrChangedNotify( &rSh ); in SelectMenuPosition()
5347 rSh.EnterSelFrmMode( &aDocPos ); in SelectMenuPosition()
5355 rSh.ShowCrsr(); in SelectMenuPosition()
5358 else if ( rSh.IsSelFrmMode() && in SelectMenuPosition()
5363 sal_Bool bUnLockView = !rSh.IsViewLocked(); in SelectMenuPosition()
5364 rSh.LockView( sal_True ); in SelectMenuPosition()
5367 if ( rSh.IsSelFrmMode() ) in SelectMenuPosition()
5369 rSh.UnSelectFrm(); in SelectMenuPosition()
5370 rSh.LeaveSelFrmMode(); in SelectMenuPosition()
5371 rView.AttrChangedNotify(&rSh); in SelectMenuPosition()
5375 sal_Bool bSelObj = rSh.SelectObj( aDocPos, nFlag ); in SelectMenuPosition()
5377 rSh.LockView( sal_False ); in SelectMenuPosition()
5384 bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,sal_False)); in SelectMenuPosition()
5385 rSh.LeaveSelFrmMode(); in SelectMenuPosition()
5387 rView.AttrChangedNotify( &rSh ); in SelectMenuPosition()
5392 rSh.HideCrsr(); in SelectMenuPosition()
5393 rSh.EnterSelFrmMode( &aDocPos ); in SelectMenuPosition()
5394 rSh.SelFlyGrabCrsr(); in SelectMenuPosition()
5395 rSh.MakeSelVisible(); in SelectMenuPosition()
5397 if( rSh.IsFrmSelected() && in SelectMenuPosition()
5403 rView.AttrChangedNotify( &rSh ); in SelectMenuPosition()
5409 else if ( rSh.IsSelFrmMode() && bIsInsideSelectedObj ) in SelectMenuPosition()
5415 if ( rSh.IsGCAttr() ) in SelectMenuPosition()
5417 rSh.GCAttr(); in SelectMenuPosition()
5418 rSh.ClearGCAttr(); in SelectMenuPosition()
5421 sal_Bool bOverSelect = rSh.ChgCurrPam( aDocPos ), bOverURLGrf = sal_False; in SelectMenuPosition()
5423 bOverURLGrf = bOverSelect = 0 != rSh.IsURLGrfAtPos( aDocPos ); in SelectMenuPosition()
5429 MV_KONTEXT( &rSh ); in SelectMenuPosition()
5430 (rSh.*rSh.fnSetCrsr)(&aDocPos, sal_False); in SelectMenuPosition()
5436 const int nSelType = rSh.GetSelectionType(); in SelectMenuPosition()
5440 MV_KONTEXT( &rSh ); in SelectMenuPosition()
5441 if( !rSh.IsFrmSelected() ) in SelectMenuPosition()
5442 rSh.GotoNextFly(); in SelectMenuPosition()
5443 rSh.EnterSelFrmMode(); in SelectMenuPosition()
5588 void QuickHelpData::Start( SwWrtShell& rSh, sal_uInt16 nWrdLen ) in Start() argument
5600 Window& rWin = rSh.GetView().GetEditWin(); in Start()
5604 rSh.GetCharRect().Pos() ))); in Start()
5621 rSh.CreateExtTextInput(rWin.GetInputLanguage()); in Start()
5622 rSh.SetExtTextInputData( *pCETID ); in Start()
5626 void QuickHelpData::Stop( SwWrtShell& rSh ) in Stop() argument
5629 rSh.DeleteExtTextInput( 0, sal_False ); in Stop()
5635 void QuickHelpData::FillStrArr( SwWrtShell& rSh, const String& rWord ) in FillStrArr() argument
5645 (*pCalendar)->LoadDefaultCalendar( rSh.GetCurLang() ); in FillStrArr()
5671 const SwAutoCompleteWord& rACLst = rSh.GetAutoCompleteWords(); in FillStrArr()
5692 SwWrtShell& rSh = rView.GetWrtShell(); in ShowAutoTextCorrectQuickHelp() local
5712 pQuickHlpData->FillStrArr( rSh, rWord ); in ShowAutoTextCorrectQuickHelp()
5716 pQuickHlpData->Start( rSh, rWord.Len() ); in ShowAutoTextCorrectQuickHelp()
5740 SwWrtShell& rSh = rView.GetWrtShell(); in GetSurroundingText() local
5741 if( rSh.HasSelection() && !rSh.IsMultiSelection() && rSh.IsSelOnePara() ) in GetSurroundingText()
5742 rSh.GetSelectedText( sReturn, GETSELTXT_PARABRK_TO_ONLYCR ); in GetSurroundingText()
5743 else if( !rSh.HasSelection() ) in GetSurroundingText()
5745 SwPosition *pPos = rSh.GetCrsr()->GetPoint(); in GetSurroundingText()
5749 rSh.HideCrsr(); in GetSurroundingText()
5750 rSh.GoStartSentence(); in GetSurroundingText()
5751 rSh.SetMark(); in GetSurroundingText()
5752 rSh.GoEndSentence(); in GetSurroundingText()
5753 rSh.GetSelectedText( sReturn, GETSELTXT_PARABRK_TO_ONLYCR ); in GetSurroundingText()
5756 rSh.ClearMark(); in GetSurroundingText()
5757 rSh.HideCrsr(); in GetSurroundingText()
5767 SwWrtShell& rSh = rView.GetWrtShell(); in GetSurroundingTextSelection() local
5768 if( rSh.HasSelection() ) in GetSurroundingTextSelection()
5771 rSh.GetSelectedText( sReturn, GETSELTXT_PARABRK_TO_ONLYCR ); in GetSurroundingTextSelection()
5778 SwPosition *pPos = rSh.GetCrsr()->GetPoint(); in GetSurroundingTextSelection()
5781 rSh.HideCrsr(); in GetSurroundingTextSelection()
5782 rSh.GoStartSentence(); in GetSurroundingTextSelection()
5783 xub_StrLen nStartPos = rSh.GetCrsr()->GetPoint()->nContent.GetIndex(); in GetSurroundingTextSelection()
5786 rSh.ClearMark(); in GetSurroundingTextSelection()
5787 rSh.ShowCrsr(); in GetSurroundingTextSelection()