Lines Matching refs:rSh
166 static void lcl_SetAttr( SwWrtShell &rSh, const SfxPoolItem &rItem ) in lcl_SetAttr() argument
168 SfxItemSet aSet( rSh.GetView().GetPool(), rItem.Which(), rItem.Which(), 0); in lcl_SetAttr()
170 rSh.SetTblAttr( aSet ); in lcl_SetAttr()
176 static SwTableRep* lcl_TableParamToItemSet( SfxItemSet& rSet, SwWrtShell &rSh ) in lcl_TableParamToItemSet() argument
178 SwFrmFmt *pFmt = rSh.GetTableFmt(); in lcl_TableParamToItemSet()
180 rSh.GetTabCols( aCols ); in lcl_TableParamToItemSet()
184 rSet.Put( SfxUInt16Item( FN_PARAM_TABLE_HEADLINE, rSh.GetRowsToRepeat() ) ); in lcl_TableParamToItemSet()
186 rSet.Put(SfxUInt16Item(FN_TABLE_SET_VERT_ALIGN, rSh.GetBoxAlign())); in lcl_TableParamToItemSet()
192 sal_uInt16 nBackgroundDestination = rSh.GetViewOptions()->GetTblDest(); in lcl_TableParamToItemSet()
197 if(rSh.GetRowBackground(aBrush)) in lcl_TableParamToItemSet()
201 rSh.GetTabBackground(aBrush); in lcl_TableParamToItemSet()
206 if(rSh.GetBoxDirection( aBoxDirection )) in lcl_TableParamToItemSet()
209 sal_Bool bTableSel = rSh.IsTableMode(); in lcl_TableParamToItemSet()
212 rSh.StartAllAction(); in lcl_TableParamToItemSet()
213 rSh.Push(); in lcl_TableParamToItemSet()
214 rSh.GetView().GetViewFrame()->GetDispatcher()->Execute( FN_TABLE_SELECT_ALL, sal_False ); in lcl_TableParamToItemSet()
219 rSh.GetCrsr(); //Damit GetCrsrCnt() auch das Richtige liefert in lcl_TableParamToItemSet()
220 aBoxInfo.SetTable ((rSh.IsTableMode() && rSh.GetCrsrCnt() > 1) || in lcl_TableParamToItemSet()
225 aBoxInfo.SetMinDist( !bTableSel || rSh.IsTableMode() || in lcl_TableParamToItemSet()
226 rSh.GetSelectionType() & in lcl_TableParamToItemSet()
231 aBoxInfo.SetValid( VALID_DISABLE, !bTableSel || !rSh.IsTableMode() ); in lcl_TableParamToItemSet()
234 rSh.GetTabBorders( rSet ); in lcl_TableParamToItemSet()
238 rSh.GetRowSplit(pSplit); in lcl_TableParamToItemSet()
247 rSh.ClearMark(); in lcl_TableParamToItemSet()
248 rSh.Pop(sal_False); in lcl_TableParamToItemSet()
249 rSh.EndAllAction(); in lcl_TableParamToItemSet()
253 rSh.GetTabCols( aTabCols ); in lcl_TableParamToItemSet()
258 SwTableRep* pRep = new SwTableRep( aTabCols, rSh.IsTblComplex()); in lcl_TableParamToItemSet()
262 long nWidth = ::GetTableWidth(pFmt, aCols, &nPercent, &rSh ); in lcl_TableParamToItemSet()
298 pRep->SetLineSelected(bTableSel && ! rSh.HasWholeTabSelection()); in lcl_TableParamToItemSet()
307 SwWrtShell &rSh ) in ItemSetToTableParam() argument
309 rSh.StartAllAction(); in ItemSetToTableParam()
310 rSh.StartUndo( UNDO_TABLE_ATTR ); in ItemSetToTableParam()
313 SwViewOption aUsrPref( *rSh.GetViewOptions() ); in ItemSetToTableParam()
319 SW_MOD()->ApplyUsrPref(aUsrPref, &rSh.GetView()); in ItemSetToTableParam()
340 sal_Bool bTableSel = rSh.IsTableMode(); in ItemSetToTableParam()
341 rSh.StartAllAction(); in ItemSetToTableParam()
346 rSh.SetBoxBackground( *(const SvxBrushItem*)pItem ); in ItemSetToTableParam()
351 rSh.SetRowBackground(aBrush); in ItemSetToTableParam()
357 rSh.SetTabBackground( aBrush ); in ItemSetToTableParam()
365 rSh.SetBoxDirection(aDirection); in ItemSetToTableParam()
370 rSh.Push(); in ItemSetToTableParam()
373 rSh.GetView().GetViewFrame()->GetDispatcher()->Execute( FN_TABLE_SELECT_ALL ); in ItemSetToTableParam()
376 rSh.SetTabBorders( rSet ); in ItemSetToTableParam()
380 rSh.SetRowSplit(*static_cast<const SwFmtRowSplit*>(pSplit)); in ItemSetToTableParam()
385 rSh.ClearMark(); in ItemSetToTableParam()
387 rSh.Pop(sal_False); in ItemSetToTableParam()
390 rSh.EndAllAction(); in ItemSetToTableParam()
397 SwFrmFmt *pFmt = rSh.GetTableFmt(); in ItemSetToTableParam()
398 SfxItemSet aSet( rSh.GetAttrPool(), RES_FRMATR_BEGIN, RES_FRMATR_END-1 ); in ItemSetToTableParam()
442 rSh.SetRowsToRepeat( ((SfxUInt16Item*)pItem)->GetValue() ); in ItemSetToTableParam()
445 rSh.SetBoxAlign(((SfxUInt16Item*)(pItem))->GetValue()); in ItemSetToTableParam()
448 rSh.SetTableName( *pFmt, ((const SfxStringItem*)pItem)->GetValue() ); in ItemSetToTableParam()
470 rSh.SetTblAttr( aSet ); in ItemSetToTableParam()
474 rSh.GetTabCols( aTabCols ); in ItemSetToTableParam()
476 rSh.SetTabCols( aTabCols, bSingleLine ); in ItemSetToTableParam()
479 rSh.EndUndo( UNDO_TABLE_ATTR ); in ItemSetToTableParam()
480 rSh.EndAllAction(); in ItemSetToTableParam()
505 SwWrtShell &rSh = GetShell(); in Execute() local
545 rSh.GetTabBorders( aCoreSet ); in Execute()
615 rSh.SetTabBorders( aCoreSet ); in Execute()
642 FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &rSh.GetView())); in Execute()
644 SwTableRep* pTblRep = ::lcl_TableParamToItemSet( aCoreSet, rSh ); in Execute()
651 … pFact->CreateSwTableTabDlg( GetView().GetWindow(), GetPool(), &aCoreSet, &rSh, DLG_FORMAT_TABLE ); in Execute()
655 rSh.GetTblAttr(aCoreSet); in Execute()
658 if(rSh.GetBoxBackground(aBrush)) in Execute()
672 ItemSetToTableParam( *pOutSet, rSh ); in Execute()
687 ItemSetToTableParam(*rReq.GetArgs(), rSh); in Execute()
696 SvNumberFormatter* pFormatter = rSh.GetNumberFormatter(); in Execute()
706 rSh.GetTblBoxFormulaAttrs( aBoxSet ); in Execute()
719 String sCurText( rSh.GetTableBoxText() ); in Execute()
755 rSh.SetTblBoxFormulaAttrs( aBoxFormatSet ); in Execute()
764 rSh.UpdateTable(); in Execute()
770 rSh.SetRowHeight( aSz ); in Execute()
775 if ( rSh.DeleteCol() && rSh.HasSelection() ) in Execute()
776 rSh.EnterStdMode(); in Execute()
780 rSh.MoveTable( fnTableCurr, fnTableEnd ); in Execute()
784 rSh.MoveTable( fnTableCurr, fnTableStart ); in Execute()
793 rSh.GoNextCell( bAppendLine ) ) ); in Execute()
798 rReq.SetReturnValue( SfxBoolItem( nSlot, rSh.GoPrevCell() ) ); in Execute()
802 if ( rSh.DeleteRow() && rSh.HasSelection() ) in Execute()
803 rSh.EnterStdMode(); in Execute()
807 if ( rSh.IsTableMode() ) in Execute()
808 switch ( rSh.MergeTab() ) in Execute()
828 if ( rSh.IsAdjustCellWidthAllowed(bBalance) ) in Execute()
832 UnoActionRemoveContext aRemoveContext(rSh.GetDoc()); in Execute()
834 rSh.AdjustCellWidth(bBalance); in Execute()
840 if ( rSh.BalanceRowHeight(sal_True) ) in Execute()
841 rSh.BalanceRowHeight(sal_False); in Execute()
845 rSh.EnterStdMode(); in Execute()
846 rSh.MoveTable( fnTableCurr, fnTableStart ); in Execute()
847 rSh.SttSelect(); in Execute()
848 rSh.MoveTable( fnTableCurr, fnTableEnd ); in Execute()
849 rSh.EndSelect(); in Execute()
853 rSh.EnterStdMode(); in Execute()
854 rSh.SelectTableCol(); in Execute()
858 rSh.EnterStdMode(); in Execute()
859 rSh.SelectTableRow(); in Execute()
863 rSh.ProtectCells(); in Execute()
864 rSh.ResetSelect( 0, sal_False ); in Execute()
868 rSh.UnProtectCells(); in Execute()
876 …lg = pFact->CreateSwAutoFormatDlg(&GetView().GetViewFrame()->GetWindow(), &rSh , DLG_AUTOFMT_TABLE… in Execute()
887 …VclAbstractDialog* pDlg = pFact->CreateVclAbstractDialog( GetView().GetWindow(), rSh, DLG_ROW_HEIG… in Execute()
918 ::lcl_TableParamToItemSet( aCoreSet, rSh ); in Execute()
925 rSh.StartUndo( UNDO_TABLE_INSCOL ); in Execute()
926 rSh.InsertCol( nCount, bAfter ); in Execute()
930 else if ( !rSh.IsInRepeatedHeadline() ) in Execute()
932 rSh.StartUndo( UNDO_TABLE_INSROW ); in Execute()
933 rSh.InsertRow( nCount, bAfter ); in Execute()
946 ItemSetToTableParam( aSet, rSh ); in Execute()
947 rSh.EndUndo( nUndoId ); in Execute()
962 if ( FN_TABLE_INSERT_ROW_DLG != nSlot || !rSh.IsInRepeatedHeadline()) in Execute()
1000 const long nMaxVert = rSh.GetAnyCurRect( RECT_FRM ).Width() / MINLAY; in Execute()
1001 …leDialog* pDlg = pFact->CreateSvxSplittTableDialog( GetView().GetWindow(), rSh.IsTableVertical(), … in Execute()
1017 rSh.SplitTab(!bHorizontal, static_cast< sal_uInt16 >( nCount-1 ), bProportional ); in Execute()
1037 rSh.SplitTable(pType->GetValue()) ; in Execute()
1046 … AbstractSplitTableDialog* pDlg = pFact->CreateSplitTblDialog( GetView().GetWindow(), rSh ); in Execute()
1058 sal_Bool bPrev = rSh.CanMergeTable( sal_True ); in Execute()
1059 sal_Bool bNext = rSh.CanMergeTable( sal_False ); in Execute()
1073 rSh.MergeTable( bPrev ); in Execute()
1081 rSh.SetTblChgMode( ( FN_TABLE_MODE_FIX == nSlot ? TBLFIX_CHGABS in Execute()
1112 if(0 != rSh.GetRowsToRepeat()) in Execute()
1113 rSh.SetRowsToRepeat( 0 ); in Execute()
1115 rSh.SetRowsToRepeat(rSh.GetRowSelectionFromTop()); in Execute()
1118 rSh.SelectTableCell(); in Execute()
1122 rSh.StartAction(); in Execute()
1123 rSh.StartUndo(); in Execute()
1124 rSh.GetView().GetViewFrame()->GetDispatcher()->Execute(FN_TABLE_SELECT_ALL); in Execute()
1125 rSh.DeleteRow(); in Execute()
1126 rSh.EndUndo(); in Execute()
1127 rSh.EndAction(); in Execute()
1145 SwFrmFmt *pFmt = rSh.GetTableFmt(); in Execute()
1154 ::lcl_SetAttr( rSh, aULSpace ); in Execute()
1171 rSh.SetTblAttr( aSet ); in Execute()
1178 SwTableFUNC aMgr( &rSh, sal_False); in Execute()
1190 rSh.SetBoxAlign(nAlign); in Execute()
1202 rSh.SetTblAttr(aSet); in Execute()
1213 rSh.SetTblAttr(aSet); in Execute()
1222 rSh.GetRowSplit(pSplit); in Execute()
1232 rSh.SetRowSplit( *pSplit ); in Execute()
1251 SwWrtShell &rSh = GetShell(); in GetState() local
1252 SwFrmFmt *pFmt = rSh.GetTableFmt(); in GetState()
1262 if ( !rSh.IsTableMode() ) in GetState()
1266 if ( !rSh.IsAdjustCellWidthAllowed() ) in GetState()
1271 if ( !rSh.IsAdjustCellWidthAllowed(sal_True) ) in GetState()
1276 if ( !rSh.BalanceRowHeight(sal_True) ) in GetState()
1280 if ( !rSh.IsTableMode() && in GetState()
1281 !rSh.IsAdjustCellWidthAllowed() && in GetState()
1282 !rSh.IsAdjustCellWidthAllowed(sal_True) && in GetState()
1283 !rSh.BalanceRowHeight(sal_True) ) in GetState()
1289 if ( !aMOpt.IsMath() || rSh.IsTblComplexForChart() ) in GetState()
1295 if ( rSh.CrsrInsideInputFld() ) in GetState()
1305 rSh.GetRowHeight( pSz ); in GetState()
1317 if ( rSh.IsInRepeatedHeadline() ) in GetState()
1332 sal_uInt16 nAlign = rSh.GetBoxAlign(); in GetState()
1344 TblChgMode nMode = rSh.GetTblChgMode(); in GetState()
1361 if ( rSh.IsInHeadline() ) in GetState()
1368 if( !rSh.CanMergeTable( sal_True, &bAsk )) in GetState()
1376 ::GetTblSel( rSh, aBoxes, nsSwTblSearchType::TBLSEARCH_ROW ); in GetState()
1384 ::GetTblSel( rSh, aBoxes, nsSwTblSearchType::TBLSEARCH_COL ); in GetState()
1392 if( !rSh.CanUnProtectCells() ) in GetState()
1405 rSh.GetRowSplit(pSplit); in GetState()
1415 if(0 != rSh.GetRowsToRepeat()) in GetState()
1417 else if(!rSh.GetRowSelectionFromTop()) in GetState()
1423 if(rSh.HasBoxSelection()) in GetState()
1464 SwWrtShell &rSh = GetShell(); in ExecTableStyle() local
1495 rSh.SetTabLineStyle( 0, sal_True, pBorderLine); in ExecTableStyle()
1501 rSh.SetTabLineStyle( &rNewColorItem.GetValue() ); in ExecTableStyle()
1538 SwWrtShell &rSh = GetShell(); in ExecNumberFormat() local
1547 LanguageType eLang = rSh.GetCurLang(); in ExecNumberFormat()
1548 SvNumberFormatter* pFormatter = rSh.GetNumberFormatter(); in ExecNumberFormat()
1595 rSh.SetTblBoxFormulaAttrs( aBoxSet ); in ExecNumberFormat()