summaryrefslogtreecommitdiffstats
path: root/mailnews/base/public/nsIMsgPrintEngine.idl
blob: 725471eed334f23af46ec053c7f1827232b0899e (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
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsrootidl.idl"
#include "nsIMsgStatusFeedback.idl"

interface mozIDOMWindowProxy;
interface nsIPrintSettings;
interface nsIObserver;

[scriptable, uuid(9bdd0812-dd48-4f04-87a9-74dcfc3abadc)]
interface nsIMsgPrintEngine : nsISupports {
    /**
     * Print/PrintPreview Msg Type
     */
    const short MNAB_START                 = 0;
    const short MNAB_PRINT_MSG             = 0;
    const short MNAB_PRINTPREVIEW_MSG      = 1;
    const short MNAB_PRINT_AB_CARD         = 2;
    const short MNAB_PRINTPREVIEW_AB_CARD  = 3;
    const short MNAB_PRINT_ADDRBOOK        = 4;
    const short MNAB_PRINTPREVIEW_ADDRBOOK = 5;
    const short MNAB_END                   = 6;

    void setWindow(in mozIDOMWindowProxy ptr);
    void setParentWindow(in mozIDOMWindowProxy ptr);
    void showWindow(in boolean aShow);
    void setStatusFeedback(in nsIMsgStatusFeedback feedback);
    void setPrintURICount(in int32_t aCount);
    void addPrintURI(in wstring aURI);
    void startPrintOperation(in nsIPrintSettings aPS);
    void setStartupPPObserver(in nsIObserver startupPPObs);
    void setMsgType(in long aMsgType);

    attribute boolean doPrintPreview;

};