2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* 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/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2009-06-12 16:34:50 +00:00
|
|
|
|
2014-05-15 12:06:32 +02:00
|
|
|
#ifndef INCLUDED_VCL_OLDPRINTADAPTOR_HXX
|
|
|
|
#define INCLUDED_VCL_OLDPRINTADAPTOR_HXX
|
2009-06-12 16:34:50 +00:00
|
|
|
|
2013-11-09 15:31:59 -06:00
|
|
|
#include <vcl/print.hxx>
|
2009-06-12 16:34:50 +00:00
|
|
|
|
|
|
|
namespace vcl
|
|
|
|
{
|
|
|
|
struct ImplOldStyleAdaptorData;
|
2009-07-06 10:54:21 +00:00
|
|
|
class VCL_DLLPUBLIC OldStylePrintAdaptor : public PrinterController
|
2009-06-12 16:34:50 +00:00
|
|
|
{
|
|
|
|
ImplOldStyleAdaptorData* mpData;
|
|
|
|
public:
|
2015-03-16 15:24:04 +00:00
|
|
|
OldStylePrintAdaptor( const VclPtr< Printer >& );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~OldStylePrintAdaptor() override;
|
2009-06-12 16:34:50 +00:00
|
|
|
|
|
|
|
void StartPage();
|
|
|
|
void EndPage();
|
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual int getPageCount() const override;
|
2015-10-23 10:32:47 +02:00
|
|
|
virtual css::uno::Sequence< css::beans::PropertyValue > getPageParameters( int i_nPage ) const override;
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void printPage( int i_nPage ) const override;
|
2009-06-12 16:34:50 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|