Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Printer model statement

Printer models are defined in terms of 14 attributes. Each model has a name and a UID. A printer model statement has the following syntax:

Model model-label

Name model-name [ RequiresPrinterPort ]

Uid model-UID

Flags model-flags

Resources resources-label

KPixelWidth pixel-width

KPixelHeight pixel-height

PortraitOffset left-offset right-offset

LandscapeOffset left-offset right-offset

MinMarginLeft min-left-margin

MinMarginRight min-right-margin

MinMarginTop min-top-margin

MinMarginBottom min-bottom-margin

DisplayMode display-mode

typeface-section

EndModel

Note that:

[Top]


Typeface section

A typeface-section has the following syntax:

TypefaceFontss

typeface-list

EndTypefaceFontss


Typeface

A typeface item has the following syntax:

typeface-name [ NotInLandscape ] [ NotInPortrait ]

[Top]


Example

Model HPLJ3
              Name "HP LaserJet III" RequiresPrinterPort
          Uid 268435723
              Flags 0
              Resources Pcl5dResources
              KPixelWidth    4800   ! Twips = 300 dots per inch
              KPixelHeight   4800 
          PortraitOffset  75 0  ! Pixels
          LandscapeOffset 60 0  
              MinMarginLeft   50    ! Pixels
              MinMarginRight  50
              MinMarginTop    50
              MinMarginBottom 50
              DisplayMode   Gray2
              TypefaceFontss
                Courier
                LinePrinter 
                CgTimes
                Univers
              EndTypefaceFontss
EndModel