mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
--HG-- extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
This commit is contained in:
parent
2fa9469adc
commit
51864c09d8
@ -76,7 +76,6 @@
|
||||
#include "nsReadableUtils.h"
|
||||
|
||||
#include "nsColor.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsGfxCIID.h"
|
||||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsIDocShell.h"
|
||||
|
@ -86,7 +86,6 @@
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsISelection.h"
|
||||
#include "nsFrameSelection.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIPrivateDOMEvent.h"
|
||||
#include "nsIDOMWindowInternal.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include "nsIDOMEventTarget.h"
|
||||
#include "nsGenericHTMLElement.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsMappedAttributes.h"
|
||||
|
@ -57,7 +57,6 @@
|
||||
#include "nsITextScroll.h"
|
||||
#include "nsIDocShellTreeOwner.h"
|
||||
#include "nsIContentViewerContainer.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
|
||||
#include "nsDocLoader.h"
|
||||
#include "nsIURILoader.h"
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include "nscore.h"
|
||||
#include "nsScreen.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsDOMClassInfo.h"
|
||||
|
@ -76,7 +76,6 @@
|
||||
#include "gfxContext.h"
|
||||
|
||||
// for painting the background window
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIRegion.h"
|
||||
#include "nsILookAndFeel.h"
|
||||
|
||||
|
@ -84,7 +84,6 @@
|
||||
#include "nsIWindowProvider.h"
|
||||
#include "nsIMutableArray.h"
|
||||
#include "nsISupportsArray.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIDOMStorageObsolete.h"
|
||||
#include "nsIDOMStorage.h"
|
||||
#include "nsPIDOMStorage.h"
|
||||
|
@ -41,7 +41,6 @@
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsCoord.h"
|
||||
#include "nsRect.h"
|
||||
#include "gfxTypes.h"
|
||||
#include "nsStringFwd.h"
|
||||
|
||||
@ -50,124 +49,11 @@ class nsFontMetrics;
|
||||
class nsIWidget;
|
||||
class nsIDeviceContextSpec;
|
||||
class nsIAtom;
|
||||
class nsRect;
|
||||
class gfxUserFontSet;
|
||||
class nsRenderingContext;
|
||||
|
||||
struct nsFont;
|
||||
|
||||
//a cross platform way of specifying a native device context
|
||||
typedef void * nsNativeDeviceContext;
|
||||
|
||||
/* error codes for printer device contexts */
|
||||
#define NS_ERROR_GFX_PRINTER_BASE (1) /* adjustable :-) */
|
||||
/* Unix: print command (lp/lpr) not found */
|
||||
#define NS_ERROR_GFX_PRINTER_CMD_NOT_FOUND \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+1)
|
||||
/* Unix: print command returned an error */
|
||||
#define NS_ERROR_GFX_PRINTER_CMD_FAILURE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+2)
|
||||
/* no printer available (e.g. cannot find _any_ printer) */
|
||||
#define NS_ERROR_GFX_PRINTER_NO_PRINTER_AVAILABLE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+3)
|
||||
/* _specified_ (by name) printer not found */
|
||||
#define NS_ERROR_GFX_PRINTER_NAME_NOT_FOUND \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+4)
|
||||
/* access to printer denied */
|
||||
#define NS_ERROR_GFX_PRINTER_ACCESS_DENIED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+5)
|
||||
/* invalid printer attribute (for example: unsupported paper size etc.) */
|
||||
#define NS_ERROR_GFX_PRINTER_INVALID_ATTRIBUTE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+6)
|
||||
/* printer not "ready" (offline ?) */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINTER_NOT_READY \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+8)
|
||||
/* printer out of paper */
|
||||
#define NS_ERROR_GFX_PRINTER_OUT_OF_PAPER \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+9)
|
||||
/* generic printer I/O error */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINTER_IO_ERROR \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+10)
|
||||
/* print-to-file: could not open output file */
|
||||
#define NS_ERROR_GFX_PRINTER_COULD_NOT_OPEN_FILE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+11)
|
||||
/* print-to-file: I/O error while printing to file */
|
||||
#define NS_ERROR_GFX_PRINTER_FILE_IO_ERROR \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+12)
|
||||
/* print preview: needs at least one printer */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINTPREVIEW \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+13)
|
||||
/* print: starting document */
|
||||
#define NS_ERROR_GFX_PRINTER_STARTDOC \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+14)
|
||||
/* print: ending document */
|
||||
#define NS_ERROR_GFX_PRINTER_ENDDOC \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+15)
|
||||
/* print: starting page */
|
||||
#define NS_ERROR_GFX_PRINTER_STARTPAGE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+16)
|
||||
/* print: ending page */
|
||||
#define NS_ERROR_GFX_PRINTER_ENDPAGE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+17)
|
||||
/* print: print while in print preview */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINT_WHILE_PREVIEW \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+18)
|
||||
/* requested page size not supported by printer */
|
||||
#define NS_ERROR_GFX_PRINTER_PAPER_SIZE_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+19)
|
||||
/* requested page orientation not supported */
|
||||
#define NS_ERROR_GFX_PRINTER_ORIENTATION_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+20)
|
||||
/* requested colorspace not supported (like printing "color" on a "grayscale"-only printer) */
|
||||
#define NS_ERROR_GFX_PRINTER_COLORSPACE_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+21)
|
||||
/* too many copies requested */
|
||||
#define NS_ERROR_GFX_PRINTER_TOO_MANY_COPIES \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+22)
|
||||
/* driver configuration error */
|
||||
#define NS_ERROR_GFX_PRINTER_DRIVER_CONFIGURATION_ERROR \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+23)
|
||||
/* The document is still being loaded, can't Print Preview */
|
||||
#define NS_ERROR_GFX_PRINTER_DOC_IS_BUSY_PP \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+24)
|
||||
/* The document was asked to be destroyed while we were preparing printing */
|
||||
#define NS_ERROR_GFX_PRINTER_DOC_WAS_DESTORYED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+25)
|
||||
/* Cannot Print or Print Preview XUL Documents */
|
||||
#define NS_ERROR_GFX_PRINTER_NO_XUL \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+26)
|
||||
/* The toolkit no longer supports the Print Dialog (for embedders) */
|
||||
#define NS_ERROR_GFX_NO_PRINTDIALOG_IN_TOOLKIT \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+27)
|
||||
/* The was wasn't any Print Prompt service registered (this shouldn't happen) */
|
||||
#define NS_ERROR_GFX_NO_PRINTROMPTSERVICE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+28)
|
||||
/* requested plex mode not supported by printer */
|
||||
#define NS_ERROR_GFX_PRINTER_PLEX_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+29)
|
||||
/* The document is still being loaded */
|
||||
#define NS_ERROR_GFX_PRINTER_DOC_IS_BUSY \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+30)
|
||||
/* Printing is not implemented */
|
||||
#define NS_ERROR_GFX_PRINTING_NOT_IMPLEMENTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+31)
|
||||
/* Cannot load the matching print module */
|
||||
#define NS_ERROR_GFX_COULD_NOT_LOAD_PRINT_MODULE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+32)
|
||||
/* requested resolution/quality mode not supported by printer */
|
||||
#define NS_ERROR_GFX_PRINTER_RESOLUTION_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+33)
|
||||
|
||||
/**
|
||||
* Conts need for Print Preview
|
||||
*/
|
||||
#ifdef NS_PRINT_PREVIEW
|
||||
const PRUint8 kUseAltDCFor_NONE = 0x00; // Do not use the AltDC for anything
|
||||
const PRUint8 kUseAltDCFor_FONTMETRICS = 0x01; // Use it for only getting the font metrics
|
||||
const PRUint8 kUseAltDCFor_CREATERC_REFLOW = 0x02; // Use when creating RenderingContexts for Reflow
|
||||
const PRUint8 kUseAltDCFor_CREATERC_PAINT = 0x04; // Use when creating RenderingContexts for Painting
|
||||
const PRUint8 kUseAltDCFor_SURFACE_DIM = 0x08; // Use it for getting the Surface Dimensions
|
||||
#endif
|
||||
|
||||
#define NS_IDEVICE_CONTEXT_IID \
|
||||
{ 0x30a9d22f, 0x8e51, 0x40af, \
|
||||
{ 0xa1, 0xf5, 0x48, 0xe3, 0x00, 0xaa, 0xa9, 0x27 } }
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include "nsCoord.h"
|
||||
#include "gfxContext.h"
|
||||
|
||||
struct nsPoint;
|
||||
class nsIntRegion;
|
||||
|
||||
typedef enum {
|
||||
|
@ -84,7 +84,6 @@
|
||||
#include "nsStyleChangeList.h"
|
||||
#include "nsIFormControl.h"
|
||||
#include "nsCSSAnonBoxes.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsTextFragment.h"
|
||||
#include "nsIAnonymousContentCreator.h"
|
||||
#include "nsFrameManager.h"
|
||||
|
@ -57,7 +57,6 @@
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsCSSAnonBoxes.h"
|
||||
#include "nsTransform2D.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
|
@ -48,7 +48,6 @@
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsCSSAnonBoxes.h"
|
||||
#include "nsTransform2D.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
|
@ -57,7 +57,6 @@
|
||||
#include "nsIContent.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsILookAndFeel.h"
|
||||
#include "nsBlockFrame.h"
|
||||
|
@ -80,7 +80,6 @@
|
||||
#include "nsLayoutStylesheetCache.h"
|
||||
|
||||
#include "nsViewsCID.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIDeviceContextSpec.h"
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsIView.h"
|
||||
|
@ -84,7 +84,6 @@
|
||||
#include "nsHashtable.h"
|
||||
#include "nsIViewObserver.h"
|
||||
#include "nsContainerFrame.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsEventStateManager.h"
|
||||
#include "nsDOMEvent.h"
|
||||
#include "nsGUIEvent.h"
|
||||
@ -8081,7 +8080,6 @@ nsIPresShell::RemoveRefreshObserverExternal(nsARefreshObserver* aObserver,
|
||||
#ifdef NS_DEBUG
|
||||
#include "nsViewsCID.h"
|
||||
#include "nsWidgetsCID.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsILinkHandler.h"
|
||||
|
||||
|
@ -56,7 +56,6 @@
|
||||
#include "nsIDOMNSHTMLOptionCollectn.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIView.h"
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsEventDispatcher.h"
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "nsCSSRendering.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsFormControlFrame.h"
|
||||
#include "nsGUIEvent.h"
|
||||
|
@ -45,13 +45,12 @@
|
||||
#include "nsFormControlFrame.h" // for COMPARE macro
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIFormControl.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMHTMLCollection.h"
|
||||
#include "nsIDOMHTMLOptionsCollection.h"
|
||||
#include "nsIDOMHTMLCollection.h"
|
||||
#include "nsIDOMHTMLOptionsCollection.h"
|
||||
#include "nsIDOMNSHTMLOptionCollectn.h"
|
||||
#include "nsIDOMHTMLSelectElement.h"
|
||||
#include "nsIDOMHTMLOptionElement.h"
|
||||
#include "nsIDOMHTMLOptionElement.h"
|
||||
#include "nsComboboxControlFrame.h"
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsIDOMHTMLOptGroupElement.h"
|
||||
|
@ -63,7 +63,6 @@
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsINodeInfo.h"
|
||||
#include "nsFormControlFrame.h" //for registering accesskeys
|
||||
#include "nsIDeviceContext.h" // to measure fonts
|
||||
|
||||
#include "nsIContent.h"
|
||||
#include "nsIAtom.h"
|
||||
|
@ -49,7 +49,6 @@
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIEventStateManager.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIScrollPositionListener.h"
|
||||
#include "nsDisplayList.h"
|
||||
|
@ -79,7 +79,6 @@
|
||||
#include "nsIDOMHTMLImageElement.h"
|
||||
#include "nsIDOMHTMLHRElement.h"
|
||||
#include "nsIDOMHTMLInputElement.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIEditorDocShell.h"
|
||||
#include "nsIEventStateManager.h"
|
||||
#include "nsISelection.h"
|
||||
|
@ -60,7 +60,6 @@
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsWidgetsCID.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "gfxFont.h"
|
||||
#include "nsCSSFrameConstructor.h"
|
||||
#include "nsDisplayList.h"
|
||||
|
@ -42,7 +42,6 @@
|
||||
|
||||
#include "nsContainerFrame.h"
|
||||
#include "gfxPoint.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
|
||||
class nsString;
|
||||
class nsAbsoluteFrame;
|
||||
@ -55,8 +54,11 @@ class nsLineBox;
|
||||
|
||||
// Some macros for container classes to do sanity checking on
|
||||
// width/height/x/y values computed during reflow.
|
||||
// NOTE: AppUnitsPerCSSPixel value hardwired here to remove the
|
||||
// dependency on nsIDeviceContext.h. It doesn't matter if it's a
|
||||
// little off.
|
||||
#ifdef DEBUG
|
||||
#define CRAZY_W (1000000*nsIDeviceContext::AppUnitsPerCSSPixel())
|
||||
#define CRAZY_W (1000000*60)
|
||||
#define CRAZY_H CRAZY_W
|
||||
|
||||
#define CRAZY_WIDTH(_x) (((_x) < -CRAZY_W) || ((_x) > CRAZY_W))
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsFontMetrics.h"
|
||||
#include "nsBlockFrame.h"
|
||||
#include "nsLineBox.h"
|
||||
|
@ -71,7 +71,6 @@
|
||||
#include "nsILink.h"
|
||||
#include "nsIDOMHTMLAnchorElement.h"
|
||||
#include "nsIDOMHTMLImageElement.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsTextFragment.h"
|
||||
#include "nsIDOMHTMLMapElement.h"
|
||||
|
@ -44,7 +44,6 @@
|
||||
#include "nsPresContext.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsSimplePageSequence.h"
|
||||
#include "nsDisplayList.h"
|
||||
|
@ -42,7 +42,6 @@
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsCSSFrameConstructor.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsPageContentFrame.h"
|
||||
#include "nsDisplayList.h"
|
||||
|
@ -94,7 +94,6 @@ static NS_DEFINE_CID(kFrameTraversalCID, NS_FRAMETRAVERSAL_CID);
|
||||
#include "nsCaret.h"
|
||||
|
||||
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsFrameManager.h"
|
||||
|
@ -41,7 +41,6 @@
|
||||
#include "gfxContext.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIPrintSettings.h"
|
||||
#include "nsPageFrame.h"
|
||||
|
@ -69,7 +69,6 @@
|
||||
#include "nsTArray.h"
|
||||
#include "nsIDOMText.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsCSSFrameConstructor.h"
|
||||
#include "nsCompatibility.h"
|
||||
|
@ -60,7 +60,6 @@
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
#include "nsILookAndFeel.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsCSSRendering.h"
|
||||
#include "prprf.h" // For PR_snprintf()
|
||||
|
||||
|
@ -126,7 +126,6 @@ static const char kPrintingPromptService[] = "@mozilla.org/embedcomp/printingpro
|
||||
|
||||
#include "nsViewsCID.h"
|
||||
#include "nsWidgetsCID.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIDeviceContextSpec.h"
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsIView.h"
|
||||
|
@ -51,7 +51,6 @@
|
||||
#include "mozilla/css/Loader.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsString.h"
|
||||
|
@ -42,7 +42,6 @@
|
||||
#include "nsCSSKeywords.h"
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsCSSValue.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
|
@ -52,7 +52,6 @@
|
||||
#include "nsRuleNode.h"
|
||||
#include "nscore.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "nsILookAndFeel.h"
|
||||
#include "nsIPresShell.h"
|
||||
|
@ -51,7 +51,6 @@
|
||||
#include "nsThemeConstants.h"
|
||||
#include "nsString.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "nsIStyleRule.h"
|
||||
#include "nsCRT.h"
|
||||
|
@ -51,7 +51,6 @@
|
||||
#include "nsIDOMNamedNodeMap.h"
|
||||
#include "nsIDOMAttr.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsITheme.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIBoxLayout.h"
|
||||
|
@ -44,7 +44,6 @@
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsIEventStateManager.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsBoxFrame.h"
|
||||
#include "nsStackLayout.h"
|
||||
|
@ -43,7 +43,6 @@
|
||||
//
|
||||
|
||||
#include "nsImageBoxFrame.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsStyleContext.h"
|
||||
#include "nsStyleConsts.h"
|
||||
@ -66,7 +65,6 @@
|
||||
#include "prprf.h"
|
||||
#include "nsCSSRendering.h"
|
||||
#include "nsIDOMHTMLImageElement.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsTextFragment.h"
|
||||
#include "nsIDOMHTMLMapElement.h"
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include "nsLeafBoxFrame.h"
|
||||
#include "nsBoxFrame.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsStyleContext.h"
|
||||
|
@ -58,7 +58,6 @@
|
||||
#include "nsIView.h"
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsStyleContext.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsFontMetrics.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsAutoPtr.h"
|
||||
|
@ -60,7 +60,6 @@
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsFrameManager.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsRect.h"
|
||||
#include "nsILookAndFeel.h"
|
||||
#include "nsIComponentManager.h"
|
||||
|
@ -48,7 +48,6 @@
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsTextBoxFrame.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsRenderingContext.h"
|
||||
|
@ -76,7 +76,6 @@
|
||||
#include "nsIContent.h"
|
||||
#include "mozilla/css/StyleRule.h"
|
||||
#include "nsCSSRendering.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIXULTemplateBuilder.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsHTMLContainerFrame.h"
|
||||
|
@ -40,7 +40,6 @@
|
||||
#include "nsWidgetsCID.h"
|
||||
#include "nsViewManager.h"
|
||||
#include "nsGUIEvent.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIComponentManager.h"
|
||||
#include "nsGfxCIID.h"
|
||||
#include "nsIRegion.h"
|
||||
|
@ -38,12 +38,10 @@
|
||||
#ifndef nsIDeviceContextSpec_h___
|
||||
#define nsIDeviceContextSpec_h___
|
||||
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "prtypes.h"
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsIWidget;
|
||||
class nsIPrintSettings;
|
||||
|
||||
class gfxASurface;
|
||||
|
||||
#define NS_IDEVICE_CONTEXT_SPEC_IID \
|
||||
@ -70,7 +68,7 @@ public:
|
||||
|
||||
NS_IMETHOD BeginDocument(PRUnichar* aTitle,
|
||||
PRUnichar* aPrintToFileName,
|
||||
PRInt32 aStartPage,
|
||||
PRInt32 aStartPage,
|
||||
PRInt32 aEndPage) = 0;
|
||||
|
||||
NS_IMETHOD EndDocument() = 0;
|
||||
@ -81,4 +79,104 @@ public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDeviceContextSpec,
|
||||
NS_IDEVICE_CONTEXT_SPEC_IID)
|
||||
|
||||
/* error codes for printer device contexts */
|
||||
#define NS_ERROR_GFX_PRINTER_BASE (1) /* adjustable :-) */
|
||||
/* Unix: print command (lp/lpr) not found */
|
||||
#define NS_ERROR_GFX_PRINTER_CMD_NOT_FOUND \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+1)
|
||||
/* Unix: print command returned an error */
|
||||
#define NS_ERROR_GFX_PRINTER_CMD_FAILURE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+2)
|
||||
/* no printer available (e.g. cannot find _any_ printer) */
|
||||
#define NS_ERROR_GFX_PRINTER_NO_PRINTER_AVAILABLE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+3)
|
||||
/* _specified_ (by name) printer not found */
|
||||
#define NS_ERROR_GFX_PRINTER_NAME_NOT_FOUND \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+4)
|
||||
/* access to printer denied */
|
||||
#define NS_ERROR_GFX_PRINTER_ACCESS_DENIED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+5)
|
||||
/* invalid printer attribute (for example: unsupported paper size etc.) */
|
||||
#define NS_ERROR_GFX_PRINTER_INVALID_ATTRIBUTE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+6)
|
||||
/* printer not "ready" (offline ?) */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINTER_NOT_READY \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+8)
|
||||
/* printer out of paper */
|
||||
#define NS_ERROR_GFX_PRINTER_OUT_OF_PAPER \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+9)
|
||||
/* generic printer I/O error */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINTER_IO_ERROR \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+10)
|
||||
/* print-to-file: could not open output file */
|
||||
#define NS_ERROR_GFX_PRINTER_COULD_NOT_OPEN_FILE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+11)
|
||||
/* print-to-file: I/O error while printing to file */
|
||||
#define NS_ERROR_GFX_PRINTER_FILE_IO_ERROR \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+12)
|
||||
/* print preview: needs at least one printer */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINTPREVIEW \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+13)
|
||||
/* print: starting document */
|
||||
#define NS_ERROR_GFX_PRINTER_STARTDOC \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+14)
|
||||
/* print: ending document */
|
||||
#define NS_ERROR_GFX_PRINTER_ENDDOC \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+15)
|
||||
/* print: starting page */
|
||||
#define NS_ERROR_GFX_PRINTER_STARTPAGE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+16)
|
||||
/* print: ending page */
|
||||
#define NS_ERROR_GFX_PRINTER_ENDPAGE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+17)
|
||||
/* print: print while in print preview */
|
||||
#define NS_ERROR_GFX_PRINTER_PRINT_WHILE_PREVIEW \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+18)
|
||||
/* requested page size not supported by printer */
|
||||
#define NS_ERROR_GFX_PRINTER_PAPER_SIZE_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+19)
|
||||
/* requested page orientation not supported */
|
||||
#define NS_ERROR_GFX_PRINTER_ORIENTATION_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+20)
|
||||
/* requested colorspace not supported (like printing "color" on a
|
||||
"grayscale"-only printer) */
|
||||
#define NS_ERROR_GFX_PRINTER_COLORSPACE_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+21)
|
||||
/* too many copies requested */
|
||||
#define NS_ERROR_GFX_PRINTER_TOO_MANY_COPIES \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+22)
|
||||
/* driver configuration error */
|
||||
#define NS_ERROR_GFX_PRINTER_DRIVER_CONFIGURATION_ERROR \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+23)
|
||||
/* The document is still being loaded, can't Print Preview */
|
||||
#define NS_ERROR_GFX_PRINTER_DOC_IS_BUSY_PP \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+24)
|
||||
/* The document was asked to be destroyed while we were preparing printing */
|
||||
#define NS_ERROR_GFX_PRINTER_DOC_WAS_DESTORYED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+25)
|
||||
/* Cannot Print or Print Preview XUL Documents */
|
||||
#define NS_ERROR_GFX_PRINTER_NO_XUL \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+26)
|
||||
/* The toolkit no longer supports the Print Dialog (for embedders) */
|
||||
#define NS_ERROR_GFX_NO_PRINTDIALOG_IN_TOOLKIT \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+27)
|
||||
/* The was wasn't any Print Prompt service registered (this shouldn't happen) */
|
||||
#define NS_ERROR_GFX_NO_PRINTROMPTSERVICE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+28)
|
||||
/* requested plex mode not supported by printer */
|
||||
#define NS_ERROR_GFX_PRINTER_PLEX_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+29)
|
||||
/* The document is still being loaded */
|
||||
#define NS_ERROR_GFX_PRINTER_DOC_IS_BUSY \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+30)
|
||||
/* Printing is not implemented */
|
||||
#define NS_ERROR_GFX_PRINTING_NOT_IMPLEMENTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+31)
|
||||
/* Cannot load the matching print module */
|
||||
#define NS_ERROR_GFX_COULD_NOT_LOAD_PRINT_MODULE \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+32)
|
||||
/* requested resolution/quality mode not supported by printer */
|
||||
#define NS_ERROR_GFX_PRINTER_RESOLUTION_NOT_SUPPORTED \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GFX,NS_ERROR_GFX_PRINTER_BASE+33)
|
||||
|
||||
#endif
|
||||
|
@ -53,7 +53,6 @@ using mozilla::unused;
|
||||
#include "nsWindow.h"
|
||||
#include "nsIObserverService.h"
|
||||
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsIDOMSimpleGestureEvent.h"
|
||||
|
||||
|
@ -59,7 +59,6 @@
|
||||
#include "nsIPrefBranch.h"
|
||||
|
||||
#include "nsFontMetrics.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIRegion.h"
|
||||
#include "nsIRollupListener.h"
|
||||
#include "nsIViewManager.h"
|
||||
|
@ -45,12 +45,11 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsILookAndFeel.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsNativeTheme.h"
|
||||
|
||||
#include "gfxASurface.h"
|
||||
|
||||
@class CellDrawView;
|
||||
class nsIDeviceContext;
|
||||
|
||||
class nsNativeThemeCocoa : private nsNativeTheme,
|
||||
public nsITheme
|
||||
@ -95,7 +94,6 @@ public:
|
||||
protected:
|
||||
|
||||
nsresult GetSystemColor(PRUint8 aWidgetType, nsILookAndFeel::nsColorID& aColorID);
|
||||
nsresult GetSystemFont(PRUint8 aWidgetType, nsSystemFontID& aFont);
|
||||
nsIntMargin RTLAwareMargin(const nsIntMargin& aMargin, nsIFrame* aFrame);
|
||||
|
||||
// HITheme drawing routines
|
||||
|
@ -53,7 +53,6 @@
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsILookAndFeel.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsGfxCIID.h"
|
||||
#include "nsTransform2D.h"
|
||||
#include "nsIMenuFrame.h"
|
||||
|
@ -38,7 +38,6 @@
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsCUPSShim.h"
|
||||
#include "nsIDeviceContext.h" // GFX error codes
|
||||
#include "nsIPrefBranch.h"
|
||||
#include "nsIPrefService.h"
|
||||
#include "nsIServiceManager.h"
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "prlink.h"
|
||||
#include "nsWindow.h"
|
||||
#include "nsGTKToolkit.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIRollupListener.h"
|
||||
#include "nsIMenuRollup.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
@ -74,7 +74,6 @@
|
||||
#include "nsDragService.h"
|
||||
#include "nsGfxCIID.h"
|
||||
#include "nsHashKeys.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIMenuRollup.h"
|
||||
#include "nsIPrefService.h"
|
||||
#include "nsIRollupListener.h"
|
||||
@ -364,32 +363,9 @@ NS_METHOD nsWindow::Create(nsIWidget* aParent,
|
||||
}
|
||||
}
|
||||
|
||||
// Save the event callback function.
|
||||
mEventCallback = aHandleEventFunction;
|
||||
BaseCreate(aParent, aRect, aHandleEventFunction,
|
||||
aContext, aAppShell, aToolkit, aInitData);
|
||||
|
||||
// Make sure a device context exists.
|
||||
if (aContext) {
|
||||
mContext = aContext;
|
||||
NS_ADDREF(mContext);
|
||||
} else {
|
||||
static NS_DEFINE_IID(kDeviceContextCID, NS_DEVICE_CONTEXT_CID);
|
||||
nsresult rv = CallCreateInstance(kDeviceContextCID, &mContext);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
mContext->Init(nsnull);
|
||||
}
|
||||
|
||||
// XXX Toolkit is obsolete & will be removed.
|
||||
if (!mToolkit) {
|
||||
if (aToolkit) {
|
||||
mToolkit = aToolkit;
|
||||
} else if (pParent) {
|
||||
mToolkit = pParent->GetToolkit();
|
||||
} else {
|
||||
mToolkit = new nsToolkit;
|
||||
mToolkit->Init(PR_GetCurrentThread());
|
||||
}
|
||||
NS_ADDREF(mToolkit);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_FOCUS
|
||||
mWindowIdentifier = currentWindowIdentifier;
|
||||
@ -398,9 +374,6 @@ NS_METHOD nsWindow::Create(nsIWidget* aParent,
|
||||
|
||||
// Some basic initialization.
|
||||
if (aInitData) {
|
||||
mWindowType = aInitData->mWindowType;
|
||||
mBorderStyle = aInitData->mBorderStyle;
|
||||
|
||||
// Suppress creation of a Thebes surface for windows that will never
|
||||
// be painted because they're always covered by another window.
|
||||
if (mWindowType == eWindowType_toplevel ||
|
||||
|
@ -53,7 +53,6 @@
|
||||
|
||||
#include "nsCoord.h"
|
||||
#include "nsNativeThemeQt.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsPresContext.h"
|
||||
|
||||
#include "nsRect.h"
|
||||
@ -347,7 +346,7 @@ nsNativeThemeQt::DrawWidgetBackground(QPainter *qPainter,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsNativeThemeQt::GetWidgetBorder(nsIDeviceContext* aContext,
|
||||
nsNativeThemeQt::GetWidgetBorder(nsIDeviceContext* ,
|
||||
nsIFrame* aFrame,
|
||||
PRUint8 aWidgetType,
|
||||
nsIntMargin* aResult)
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsNativeTheme.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
|
||||
class QComboBox;
|
||||
class QStyleOptionButton;
|
||||
@ -54,6 +53,7 @@ class QStyleOptionFrameV2;
|
||||
class QStyleOptionComboBox;
|
||||
class QRect;
|
||||
class nsIFrame;
|
||||
class nsIDeviceContext;
|
||||
|
||||
class nsNativeThemeQt : private nsNativeTheme,
|
||||
public nsITheme
|
||||
|
@ -94,7 +94,6 @@ using namespace QtMobility;
|
||||
#endif
|
||||
|
||||
#include "nsToolkit.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsIdleService.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsIRegion.h"
|
||||
|
@ -42,7 +42,6 @@
|
||||
#include <windows.h>
|
||||
#include "nsNativeThemeWin.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsRect.h"
|
||||
#include "nsSize.h"
|
||||
#include "nsTransform2D.h"
|
||||
|
@ -138,7 +138,6 @@
|
||||
#include "nsILocalFile.h"
|
||||
#include "nsFontMetrics.h"
|
||||
#include "nsIFontEnumerator.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "nsILookAndFeel.h"
|
||||
#include "nsGUIEvent.h"
|
||||
#include "nsFont.h"
|
||||
|
@ -65,7 +65,6 @@ using mozilla::plugins::PluginInstanceParent;
|
||||
#include "nsGfxCIID.h"
|
||||
#include "gfxContext.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsIDeviceContext.h"
|
||||
#include "prmem.h"
|
||||
|
||||
#include "LayerManagerOGL.h"
|
||||
|
Loading…
Reference in New Issue
Block a user