maoyg wrote:
> 1.What is the variable(Point aOffset) used for in class ScPreview?

That's the amount by which the preview is scrolled. (0,0) means the page
starts at the top left position of the window.

> 2. In function ScPreviewShell::UpdateScrollBars(), there are two variables:
> Size aPageSize = ((const SvxSizeItem&) 
> pParamSet->Get(ATTR_PAGE_SIZE)).GetSize() and
> Size aWindowSize = pPreview->GetOutputSize()
> I want to know the difference between them in details.
> Btw, whether aPageSize is the white area when previewing while aWindowSize is 
> the grey area? 

aPageSize is the paper size from the page style (for example, A4).
aWindowSize is the size of what's visible in the preview window.

> 3.In pDocShell->GetOutputFactor(),what is the document output factor used for?

That factor approximates the different relative text widths for pixel
output on the screen and on the printer. It's included in the MapMode
for screen display, so the relation of column widths to text size on the
screen is closer to what you'll see in print output.

> 4.What are TWIPS_PER_PIXEL,HMM_PER_TWIPS and CM_PER_TWIPS used for ScPreview?

HMM_PER_TWIPS is the factor between 1/100th millimeters and twips.
CM_PER_TWIPS is the same for centimeters, but usually isn't used
directly. TWIPS_PER_PIXEL, also a constant, doesn't take any view or
system settings into account and shouldn't be used where an actual view
is involved.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to