1) This adds in a new layout atom for the SequenceFrame

2) Now checks all the SeqFrame's children (PageFrames) instead of just the first one
Bug 71609 r=dcone sr=attinasi a=asa
This commit is contained in:
rods@netscape.com
2002-03-04 12:55:20 +00:00
parent 00514f1589
commit 1676a1f03f
8 changed files with 108 additions and 34 deletions

View File

@@ -53,6 +53,7 @@
#include "nsIPrintContext.h"
#include "nsStyleConsts.h"
#include "nsIRegion.h"
#include "nsLayoutAtoms.h"
#include "nsIPref.h" // for header/footer gap & ExtraMargin for Print Preview
@@ -1086,6 +1087,14 @@ NS_IMETHODIMP nsSimplePageSequenceFrame::SizeTo(nsIPresContext* aPresContext, ns
return nsFrame::SizeTo(aPresContext, aWidth, aHeight);
}
NS_IMETHODIMP
nsSimplePageSequenceFrame::GetFrameType(nsIAtom** aType) const
{
NS_PRECONDITION(nsnull != aType, "null OUT parameter pointer");
*aType = nsLayoutAtoms::sequenceFrame;
NS_ADDREF(*aType);
return NS_OK;
}
//------------------------------------------------------------------------------
void
@@ -1129,3 +1138,4 @@ nsSimplePageSequenceFrame::SetPageSizes(const nsRect& aRect, const nsMargin& aMa
mPageData->mReflowRect = aRect;
mPageData->mReflowMargin = aMarginRect;
}