#include <PrintContext.h>
|
WEBCORE_EXPORT | PrintContext (Frame *) |
|
WEBCORE_EXPORT | ~PrintContext () |
|
Frame * | frame () const |
|
WEBCORE_EXPORT void | computePageRects (const FloatRect &printRect, float headerHeight, float footerHeight, float userScaleFactor, float &outPageHeight, bool allowHorizontalTiling=false) |
|
WEBCORE_EXPORT void | computePageRectsWithPageSize (const FloatSize &pageSizeInPixels, bool allowHorizontalTiling) |
|
size_t | pageCount () const |
|
const IntRect & | pageRect (size_t pageNumber) const |
|
const Vector< IntRect > & | pageRects () const |
|
WEBCORE_EXPORT float | computeAutomaticScaleFactor (const FloatSize &availablePaperSize) |
|
WEBCORE_EXPORT void | begin (float width, float height=0) |
|
WEBCORE_EXPORT void | spoolPage (GraphicsContext &ctx, int pageNumber, float width) |
|
WEBCORE_EXPORT void | spoolRect (GraphicsContext &ctx, const IntRect &) |
|
WEBCORE_EXPORT void | end () |
|
WEBCORE_EXPORT | PrintContext (Frame *) |
|
WEBCORE_EXPORT | ~PrintContext () |
|
Frame * | frame () const |
|
WEBCORE_EXPORT void | computePageRects (const FloatRect &printRect, float headerHeight, float footerHeight, float userScaleFactor, float &outPageHeight, bool allowHorizontalTiling=false) |
|
WEBCORE_EXPORT void | computePageRectsWithPageSize (const FloatSize &pageSizeInPixels, bool allowHorizontalTiling) |
|
size_t | pageCount () const |
|
const IntRect & | pageRect (size_t pageNumber) const |
|
const Vector< IntRect > & | pageRects () const |
|
WEBCORE_EXPORT float | computeAutomaticScaleFactor (const FloatSize &availablePaperSize) |
|
WEBCORE_EXPORT void | begin (float width, float height=0) |
|
WEBCORE_EXPORT void | spoolPage (GraphicsContext &ctx, int pageNumber, float width) |
|
WEBCORE_EXPORT void | spoolRect (GraphicsContext &ctx, const IntRect &) |
|
WEBCORE_EXPORT void | end () |
|
|
static WEBCORE_EXPORT int | pageNumberForElement (Element *, const FloatSize &pageSizeInPixels) |
|
static WEBCORE_EXPORT String | pageProperty (Frame *, const char *propertyName, int pageNumber) |
|
static WEBCORE_EXPORT bool | isPageBoxVisible (Frame *, int pageNumber) |
|
static WEBCORE_EXPORT String | pageSizeAndMarginsInPixels (Frame *, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft) |
|
static WEBCORE_EXPORT int | numberOfPages (Frame &, const FloatSize &pageSizeInPixels) |
|
static WEBCORE_EXPORT void | spoolAllPagesWithBoundaries (Frame &, GraphicsContext &, const FloatSize &pageSizeInPixels) |
|
static constexpr float | minimumShrinkFactor () |
|
static constexpr float | maximumShrinkFactor () |
|
static WEBCORE_EXPORT int | pageNumberForElement (Element *, const FloatSize &pageSizeInPixels) |
|
static WEBCORE_EXPORT String | pageProperty (Frame *, const char *propertyName, int pageNumber) |
|
static WEBCORE_EXPORT bool | isPageBoxVisible (Frame *, int pageNumber) |
|
static WEBCORE_EXPORT String | pageSizeAndMarginsInPixels (Frame *, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft) |
|
static WEBCORE_EXPORT int | numberOfPages (Frame &, const FloatSize &pageSizeInPixels) |
|
static WEBCORE_EXPORT void | spoolAllPagesWithBoundaries (Frame &, GraphicsContext &, const FloatSize &pageSizeInPixels) |
|
static constexpr float | minimumShrinkFactor () |
|
static constexpr float | maximumShrinkFactor () |
|
◆ PrintContext() [1/2]
WebCore::PrintContext::PrintContext |
( |
Frame * |
frame | ) |
|
|
explicit |
◆ ~PrintContext() [1/2]
WebCore::PrintContext::~PrintContext |
( |
| ) |
|
◆ PrintContext() [2/2]
◆ ~PrintContext() [2/2]
◆ begin() [1/2]
void WebCore::PrintContext::begin |
( |
float |
width, |
|
|
float |
height = 0 |
|
) |
| |
◆ begin() [2/2]
◆ computeAutomaticScaleFactor() [1/2]
float WebCore::PrintContext::computeAutomaticScaleFactor |
( |
const FloatSize & |
availablePaperSize | ) |
|
◆ computeAutomaticScaleFactor() [2/2]
◆ computePageRects() [1/2]
WEBCORE_EXPORT void WebCore::PrintContext::computePageRects |
( |
const FloatRect & |
printRect, |
|
|
float |
headerHeight, |
|
|
float |
footerHeight, |
|
|
float |
userScaleFactor, |
|
|
float & |
outPageHeight, |
|
|
bool |
allowHorizontalTiling = false |
|
) |
| |
◆ computePageRects() [2/2]
void WebCore::PrintContext::computePageRects |
( |
const FloatRect & |
printRect, |
|
|
float |
headerHeight, |
|
|
float |
footerHeight, |
|
|
float |
userScaleFactor, |
|
|
float & |
outPageHeight, |
|
|
bool |
allowHorizontalTiling = false |
|
) |
| |
◆ computePageRectsWithPageSize() [1/2]
WEBCORE_EXPORT void WebCore::PrintContext::computePageRectsWithPageSize |
( |
const FloatSize & |
pageSizeInPixels, |
|
|
bool |
allowHorizontalTiling |
|
) |
| |
◆ computePageRectsWithPageSize() [2/2]
void WebCore::PrintContext::computePageRectsWithPageSize |
( |
const FloatSize & |
pageSizeInPixels, |
|
|
bool |
allowHorizontalTiling |
|
) |
| |
◆ end() [1/2]
void WebCore::PrintContext::end |
( |
| ) |
|
◆ end() [2/2]
◆ frame() [1/2]
Frame* WebCore::PrintContext::frame |
( |
| ) |
const |
|
inline |
◆ frame() [2/2]
Frame* WebCore::PrintContext::frame |
( |
| ) |
const |
|
inline |
◆ isPageBoxVisible() [1/2]
static WEBCORE_EXPORT bool WebCore::PrintContext::isPageBoxVisible |
( |
Frame * |
, |
|
|
int |
pageNumber |
|
) |
| |
|
static |
◆ isPageBoxVisible() [2/2]
bool WebCore::PrintContext::isPageBoxVisible |
( |
Frame * |
frame, |
|
|
int |
pageNumber |
|
) |
| |
|
static |
◆ maximumShrinkFactor() [1/2]
static constexpr float WebCore::PrintContext::maximumShrinkFactor |
( |
| ) |
|
|
inlinestatic |
◆ maximumShrinkFactor() [2/2]
static constexpr float WebCore::PrintContext::maximumShrinkFactor |
( |
| ) |
|
|
inlinestatic |
◆ minimumShrinkFactor() [1/2]
static constexpr float WebCore::PrintContext::minimumShrinkFactor |
( |
| ) |
|
|
inlinestatic |
◆ minimumShrinkFactor() [2/2]
static constexpr float WebCore::PrintContext::minimumShrinkFactor |
( |
| ) |
|
|
inlinestatic |
◆ numberOfPages() [1/2]
int WebCore::PrintContext::numberOfPages |
( |
Frame & |
frame, |
|
|
const FloatSize & |
pageSizeInPixels |
|
) |
| |
|
static |
◆ numberOfPages() [2/2]
◆ pageCount() [1/2]
size_t WebCore::PrintContext::pageCount |
( |
| ) |
const |
|
inline |
◆ pageCount() [2/2]
size_t WebCore::PrintContext::pageCount |
( |
| ) |
const |
|
inline |
◆ pageNumberForElement() [1/2]
int WebCore::PrintContext::pageNumberForElement |
( |
Element * |
element, |
|
|
const FloatSize & |
pageSizeInPixels |
|
) |
| |
|
static |
◆ pageNumberForElement() [2/2]
◆ pageProperty() [1/2]
String WebCore::PrintContext::pageProperty |
( |
Frame * |
frame, |
|
|
const char * |
propertyName, |
|
|
int |
pageNumber |
|
) |
| |
|
static |
◆ pageProperty() [2/2]
◆ pageRect() [1/2]
const IntRect& WebCore::PrintContext::pageRect |
( |
size_t |
pageNumber | ) |
const |
|
inline |
◆ pageRect() [2/2]
const IntRect& WebCore::PrintContext::pageRect |
( |
size_t |
pageNumber | ) |
const |
|
inline |
◆ pageRects() [1/2]
const Vector<IntRect>& WebCore::PrintContext::pageRects |
( |
| ) |
const |
|
inline |
◆ pageRects() [2/2]
const Vector<IntRect>& WebCore::PrintContext::pageRects |
( |
| ) |
const |
|
inline |
◆ pageSizeAndMarginsInPixels() [1/2]
static WEBCORE_EXPORT String WebCore::PrintContext::pageSizeAndMarginsInPixels |
( |
Frame * |
, |
|
|
int |
pageNumber, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
marginTop, |
|
|
int |
marginRight, |
|
|
int |
marginBottom, |
|
|
int |
marginLeft |
|
) |
| |
|
static |
◆ pageSizeAndMarginsInPixels() [2/2]
String WebCore::PrintContext::pageSizeAndMarginsInPixels |
( |
Frame * |
frame, |
|
|
int |
pageNumber, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
marginTop, |
|
|
int |
marginRight, |
|
|
int |
marginBottom, |
|
|
int |
marginLeft |
|
) |
| |
|
static |
◆ spoolAllPagesWithBoundaries() [1/2]
◆ spoolAllPagesWithBoundaries() [2/2]
◆ spoolPage() [1/2]
◆ spoolPage() [2/2]
◆ spoolRect() [1/2]
◆ spoolRect() [2/2]
◆ m_frame
Frame * WebCore::PrintContext::m_frame |
|
protected |
◆ m_pageRects
The documentation for this class was generated from the following files: