widget/windows/nsPrintSettingsWin.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/windows/nsPrintSettingsWin.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsPrintSettingsWin_h__
    1.11 +#define nsPrintSettingsWin_h__
    1.12 +
    1.13 +#include "nsPrintSettingsImpl.h"  
    1.14 +#include "nsIPrintSettingsWin.h"  
    1.15 +#include <windows.h>  
    1.16 +
    1.17 +
    1.18 +//*****************************************************************************
    1.19 +//***    nsPrintSettingsWin
    1.20 +//*****************************************************************************
    1.21 +class nsPrintSettingsWin : public nsPrintSettings,
    1.22 +                           public nsIPrintSettingsWin
    1.23 +{
    1.24 +public:
    1.25 +  NS_DECL_ISUPPORTS_INHERITED
    1.26 +  NS_DECL_NSIPRINTSETTINGSWIN
    1.27 +
    1.28 +  nsPrintSettingsWin();
    1.29 +  nsPrintSettingsWin(const nsPrintSettingsWin& aPS);
    1.30 +  virtual ~nsPrintSettingsWin();
    1.31 +
    1.32 +  /**
    1.33 +   * Makes a new copy
    1.34 +   */
    1.35 +  virtual nsresult _Clone(nsIPrintSettings **_retval);
    1.36 +
    1.37 +  /**
    1.38 +   * Assigns values
    1.39 +   */
    1.40 +  virtual nsresult _Assign(nsIPrintSettings* aPS);
    1.41 +
    1.42 +  /**
    1.43 +   * Assignment
    1.44 +   */
    1.45 +  nsPrintSettingsWin& operator=(const nsPrintSettingsWin& rhs);
    1.46 +
    1.47 +protected:
    1.48 +  void CopyDevMode(DEVMODEW* aInDevMode, DEVMODEW *& aOutDevMode);
    1.49 +
    1.50 +  wchar_t*      mDeviceName;
    1.51 +  wchar_t*      mDriverName;
    1.52 +  LPDEVMODEW mDevMode;
    1.53 +};
    1.54 +
    1.55 +
    1.56 +
    1.57 +#endif /* nsPrintSettingsWin_h__ */

mercurial