Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quellcode-Bibliothek nsPrinterWin.h   Sprache: C

 

/* 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/. */


#ifndef nsPrinterWin_h_
#define nsPrinterWin_h_

#include "nsPrinterBase.h"
#include "mozilla/DataMutex.h"
#include "nsTArrayForwardDeclare.h"

class nsPrinterWin final : public nsPrinterBase {
 public:
  NS_IMETHOD GetName(nsAString& aName) override;
  NS_IMETHOD GetSystemName(nsAString& aName) override;
  NS_IMETHOD CopyFromWithValidation(nsIPrintSettings*, JSContext*,
                                    Promise**) final;
  bool SupportsDuplex() const final;
  bool SupportsColor() const final;
  bool SupportsMonochrome() const final;
  bool SupportsCollation() const final;
  PrinterInfo CreatePrinterInfo() const final;
  MarginDouble GetMarginsForPaper(nsString aPaperId) const final;

  nsPrinterWin() = delete;
  static already_AddRefed<nsPrinterWin> Create(
      const mozilla::CommonPaperInfoArray* aPaperInfoArray,
      const nsAString& aName, bool aSortAfterLocal);

 private:
  nsPrinterWin(const mozilla::CommonPaperInfoArray* aPaperInfoArray,
               const nsAString& aName, bool aSortAfterLocal);
  ~nsPrinterWin() = default;

  PrintSettingsInitializer GetValidatedSettings(
      PrintSettingsInitializer aSettingsToValidate) const;

  nsTArray<uint8_t> CopyDefaultDevmodeW() const;
  nsTArray<mozilla::PaperInfo> PaperList() const;
  PrintSettingsInitializer DefaultSettings() const;

  const nsString mName;
  mutable mozilla::DataMutex<nsTArray<uint8_t>> mDefaultDevmodeWStorage;
  // Even though some documentation seems to suggest that you should be able to
  // use printer drivers on separate threads if you have separate handles, we
  // see threading issues with multiple drivers. This Mutex is used to lock
  // around all calls to DeviceCapabilitiesW, DocumentPropertiesW and
  // CreateICW/DCW, to hopefully prevent these issues.
  mutable mozilla::Mutex mDriverMutex MOZ_UNANNOTATED{"nsPrinterWin::Driver"};
};

#endif  // nsPrinterWin_h_

Messung V0.5 in Prozent
C=91 H=97 G=93

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.11Bemerkung:  (vorverarbeitet am  2026-09-28) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=1897691