diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2010-11-26 10:52:38 +0100 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2010-11-26 10:52:38 +0100 |
commit | 60bb1b3436e02a78ff39dd08ec0bffc9c9e2c40c (patch) | |
tree | 6ba4b9aa791ac3a912437b29f187b1828a972ba8 /sw/inc/prtopt.hxx | |
parent | cws tl84: merge with DEV300_m93 (diff) | |
download | core-60bb1b3436e02a78ff39dd08ec0bffc9c9e2c40c.tar.gz core-60bb1b3436e02a78ff39dd08ec0bffc9c9e2c40c.zip |
cws tl84: #i115373# getPrintData refactoring
Diffstat (limited to 'sw/inc/prtopt.hxx')
-rw-r--r-- | sw/inc/prtopt.hxx | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sw/inc/prtopt.hxx b/sw/inc/prtopt.hxx new file mode 100644 index 000000000000..75f0520e35e8 --- /dev/null +++ b/sw/inc/prtopt.hxx @@ -0,0 +1,55 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _PRTOPT_HXX +#define _PRTOPT_HXX + +#include <unotools/configitem.hxx> +#include <printdata.hxx> + +class SwPrintOptions : public SwPrintData, public utl::ConfigItem +{ + sal_Bool bIsWeb; + + com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); +public: + SwPrintOptions(sal_Bool bWeb); + virtual ~SwPrintOptions(); + + virtual void Commit(); + virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); + virtual void doSetModified( ) { bModified = sal_True; SetModified();} + + SwPrintOptions& operator=(const SwPrintData& rData) + { + SwPrintData::operator=( rData ); + SetModified(); + return *this; + } +}; + +#endif + |