layout/printing/nsPrintObject.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5 #ifndef nsPrintObject_h___
michael@0 6 #define nsPrintObject_h___
michael@0 7
michael@0 8 #include "mozilla/Attributes.h"
michael@0 9
michael@0 10 // Interfaces
michael@0 11 #include "nsCOMPtr.h"
michael@0 12 #include "nsIPresShell.h"
michael@0 13 #include "nsStyleSet.h"
michael@0 14 #include "nsViewManager.h"
michael@0 15 #include "nsIDocShell.h"
michael@0 16 #include "nsIDocShellTreeOwner.h"
michael@0 17
michael@0 18 class nsIContent;
michael@0 19 class nsIDocument;
michael@0 20 class nsPresContext;
michael@0 21
michael@0 22 // nsPrintObject Document Type
michael@0 23 enum PrintObjectType {eDoc = 0, eFrame = 1, eIFrame = 2, eFrameSet = 3};
michael@0 24
michael@0 25 //---------------------------------------------------
michael@0 26 //-- nsPrintObject Class
michael@0 27 //---------------------------------------------------
michael@0 28 class nsPrintObject
michael@0 29 {
michael@0 30
michael@0 31 public:
michael@0 32 nsPrintObject();
michael@0 33 ~nsPrintObject(); // non-virtual
michael@0 34
michael@0 35 // Methods
michael@0 36 nsresult Init(nsIDocShell* aDocShell, nsIDOMDocument* aDoc,
michael@0 37 bool aPrintPreview);
michael@0 38
michael@0 39 bool IsPrintable() { return !mDontPrint; }
michael@0 40 void DestroyPresentation();
michael@0 41
michael@0 42 // Data Members
michael@0 43 nsCOMPtr<nsIDocShell> mDocShell;
michael@0 44 nsCOMPtr<nsIDocShellTreeOwner> mTreeOwner;
michael@0 45 nsCOMPtr<nsIDocument> mDocument;
michael@0 46
michael@0 47 nsRefPtr<nsPresContext> mPresContext;
michael@0 48 nsCOMPtr<nsIPresShell> mPresShell;
michael@0 49 nsRefPtr<nsViewManager> mViewManager;
michael@0 50
michael@0 51 nsCOMPtr<nsIContent> mContent;
michael@0 52 PrintObjectType mFrameType;
michael@0 53
michael@0 54 nsTArray<nsPrintObject*> mKids;
michael@0 55 nsPrintObject* mParent;
michael@0 56 bool mHasBeenPrinted;
michael@0 57 bool mDontPrint;
michael@0 58 bool mPrintAsIs;
michael@0 59 bool mInvisible; // Indicates PO is set to not visible by CSS
michael@0 60 bool mPrintPreview;
michael@0 61 bool mDidCreateDocShell;
michael@0 62 float mShrinkRatio;
michael@0 63 float mZoomRatio;
michael@0 64
michael@0 65 private:
michael@0 66 nsPrintObject& operator=(const nsPrintObject& aOther) MOZ_DELETE;
michael@0 67 };
michael@0 68
michael@0 69
michael@0 70
michael@0 71 #endif /* nsPrintObject_h___ */
michael@0 72

mercurial