summaryrefslogtreecommitdiff
path: root/print/XPSDrvSmpl/src/common/pgscdata.h
blob: 7a06ce24d9823924065a85a72fb1a2fb59ea5209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*++

Copyright (c) 2005 Microsoft Corporation

All rights reserved.

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

File Name:

   pgscdata.h

Abstract:

   PageScaling data structure definition. This provides a convenient
   description of the PrintSchema PageScaling feature.

--*/

#pragma once

#include "pgscschema.h"

namespace XDPrintSchema
{
    namespace PageScaling
    {
        struct PageScalingData
        {
            PageScalingData() :
                pgscOption(None),
                offWidth(0),
                offHeight(0),
                scaleWidth(100),
                scaleHeight(100),
                offsetOption(OffsetAlignment::Center)
            {
            }

            EScaleOption                        pgscOption;
            INT                                 offWidth;
            INT                                 offHeight;
            INT                                 scaleWidth;
            INT                                 scaleHeight;
            OffsetAlignment::EScaleOffsetOption offsetOption;
        };
    }
}