You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB

  1. /*
  2. * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
  3. * Copyright (C) 2018 CERN
  4. * Author: Maciej Suminski <maciej.suminski@cern.ch>
  5. *
  6. * This program is free software: you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation, either version 3 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef GERBVIEW_PRINTOUT_H
  20. #define GERBVIEW_PRINTOUT_H
  21. #include <board_printout.h>
  22. class GBR_LAYOUT;
  23. class LSET;
  24. class GERBVIEW_PRINTOUT : public BOARD_PRINTOUT
  25. {
  26. public:
  27. GERBVIEW_PRINTOUT( GBR_LAYOUT* aLayout, const BOARD_PRINTOUT_SETTINGS& aParams,
  28. const KIGFX::VIEW* aView, const wxString& aTitle );
  29. bool OnPrintPage( int aPage ) override;
  30. protected:
  31. int milsToIU( double aMils ) const override;
  32. void setupViewLayers( KIGFX::VIEW& aView, const LSET& aLayerSet ) override;
  33. void setupGal( KIGFX::GAL* aGal ) override;
  34. BOX2I getBoundingBox() override;
  35. std::unique_ptr<KIGFX::PAINTER> getPainter( KIGFX::GAL* aGal ) override;
  36. private:
  37. GBR_LAYOUT* m_layout;
  38. };
  39. #endif /* GERBVIEW_PRINTOUT_H */