rvtoNoCellsSplit option

General TRichView support forum. Please post your questions here
Post Reply
mediasofts
Posts: 6
Joined: Thu Feb 07, 2008 12:35 pm

rvtoNoCellsSplit option

Post by mediasofts »

Hi Sergey,

I use an old version of TRichViewEdit ( 1.9.48 ).

in RVTable Unit there is TRVTablePrintOption type :

Code: Select all

TRVTablePrintOption = (rvtoHalftoneBorders, rvtoRowsSplit, { rvtoNoCellsSplit, }  rvtoWhiteBackground);
who got "rvtoNoCellsSplit" comented.

i found "rvtoNoCellsSplit" on the same file, line 1326 :

Code: Select all

function TRVTablePrintInfo.CanSplitFirst(Y: Integer;
  const Sad: TRVScreenAndDevice; FirstOnPage,
  PageHasFootnotes, FootnotesChangeHeight: Boolean): Boolean;
var BorderHeight, StartHeight, ExtraCellHeight,
    DeltaBottomHeight, RemainingHeight, c, mr, mc, ColCount,
    HeightAfterFootnotes: Integer;
begin
  if PartsList.Count=0 then begin
    Result := False;
    exit;
  end;
  {
  if [b]rvtoNoCellsSplit in FTable.PrintOptions [/b]then begin
    BorderHeight := Fmt.FHeight-Fmt.RowStarts[Fmt.RowStarts.Count-1]-
      Fmt.RowHeights[Fmt.RowStarts.Count-1];
    dec(y, BorderHeight);
    mr := FTable.GetSplitRowBelow(FHeadingRowCount);
    Result := y>Fmt.RowStarts[mr]+Fmt.RowHeights[mr];
    exit;
  end;
  }
  BorderHeight := RV_YToDevice (FTable.BorderWidth+FTable.BorderVSpacing, Sad);

 [....]
end;

My question is :

How can i activate simply the "rvtoNoCellsSplit" option ?

Thanks,
David
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, this feature is not implemented. It appeared to be more complicated than expected.
To keep the content of cells together, you can use rvpaoKeepWithNext and rvpaoKeepLinesTogether options for paragraphs.
Post Reply