summaryrefslogtreecommitdiff
path: root/print/XPSDrvSmpl/src/common/wmdata.h
blob: effe32a53924c59336782c0284770cccc237628b (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*++

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:

   wmdata.h

Abstract:

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

--*/

#pragma once

#include "wmschema.h"

namespace XDPrintSchema
{
    namespace PageWatermark
    {
        struct WMTextData
        {
            WMTextData() :
                bstrFontColor(L"#FFFFFF"),
                fontSize(12),
                bstrText(L"Undefined")
            {
            }

            CComBSTR bstrFontColor;
            INT      fontSize;
            CComBSTR bstrText;
        };

        struct WatermarkData
        {
            WatermarkData() :
                type(TextWatermark),
                widthOrigin(0),
                heightOrigin(0),
                widthExtent(215900),
                heightExtent(279400),
                transparency(0),
                angle(0),
                layering(Layering::Overlay)
            {
            }

            EWatermarkOption          type;
            INT                       widthOrigin;
            INT                       heightOrigin;
            INT                       widthExtent;
            INT                       heightExtent;
            INT                       transparency;
            INT                       angle;
            WMTextData                txtData;
            Layering::ELayeringOption layering;
        };
    }
}