2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 19:10:15 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:10:15 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:10:15 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:10:15 +00:00
|
|
|
* 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.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:10:15 +00:00
|
|
|
* 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).
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:10:15 +00:00
|
|
|
* 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.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _LABIMG_HXX
|
|
|
|
#define _LABIMG_HXX
|
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/poolitem.hxx>
|
2000-09-26 10:55:45 +00:00
|
|
|
#include <unotools/configitem.hxx>
|
2004-08-23 08:00:04 +00:00
|
|
|
#include "swdllapi.h"
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
// class SwLabItem ----------------------------------------------------------
|
2000-09-26 10:55:45 +00:00
|
|
|
class SwLabCfgItem;
|
2010-10-13 10:32:10 +05:30
|
|
|
|
2004-08-23 08:00:04 +00:00
|
|
|
class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2000-09-26 10:55:45 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
SwLabItem();
|
|
|
|
SwLabItem(const SwLabItem& rItem);
|
|
|
|
|
|
|
|
SwLabItem& operator =(const SwLabItem& rItem);
|
|
|
|
|
|
|
|
virtual int operator ==(const SfxPoolItem& rItem) const;
|
|
|
|
|
|
|
|
virtual SfxPoolItem* Clone(SfxItemPool* = 0) const;
|
|
|
|
|
2011-04-21 18:12:29 +02:00
|
|
|
rtl::OUString aLstMake; // remember last selection
|
2000-09-26 10:55:45 +00:00
|
|
|
rtl::OUString aLstType;
|
2011-04-21 18:12:29 +02:00
|
|
|
rtl::OUString sDBName; // used database
|
2000-09-26 10:55:45 +00:00
|
|
|
|
2011-04-21 18:12:29 +02:00
|
|
|
rtl::OUString aWriting; // label
|
|
|
|
rtl::OUString aMake; // label mark
|
|
|
|
rtl::OUString aType; // label type
|
|
|
|
rtl::OUString aBin; // printer shaft
|
|
|
|
sal_Int32 lHDist; // horizontal distance (user)
|
|
|
|
sal_Int32 lVDist; // vertical distance (user)
|
|
|
|
sal_Int32 lWidth; // width (user)
|
|
|
|
sal_Int32 lHeight; // height (user)
|
|
|
|
sal_Int32 lLeft; // left border (user)
|
|
|
|
sal_Int32 lUpper; // upper border (user)
|
|
|
|
sal_Int32 nCols; // number of columns (user)
|
|
|
|
sal_Int32 nRows; // number of rows (user)
|
|
|
|
sal_Int32 nCol; // column for single print
|
|
|
|
sal_Int32 nRow; // row for single print
|
2011-11-28 10:21:57 +07:00
|
|
|
sal_Bool bAddr;// address as label?
|
2011-04-21 18:12:29 +02:00
|
|
|
sal_Bool bCont;// continuous paper?
|
|
|
|
sal_Bool bPage;// whole page or single labels?
|
|
|
|
sal_Bool bSynchron;// synchronise all labels
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//parts of the business card
|
2000-09-26 10:55:45 +00:00
|
|
|
rtl::OUString aPrivFirstName;
|
|
|
|
rtl::OUString aPrivName;
|
|
|
|
rtl::OUString aPrivShortCut;
|
|
|
|
rtl::OUString aPrivFirstName2;
|
|
|
|
rtl::OUString aPrivName2;
|
|
|
|
rtl::OUString aPrivShortCut2;
|
|
|
|
rtl::OUString aPrivStreet;
|
|
|
|
rtl::OUString aPrivZip;
|
|
|
|
rtl::OUString aPrivCity;
|
|
|
|
rtl::OUString aPrivCountry;
|
|
|
|
rtl::OUString aPrivState;
|
|
|
|
rtl::OUString aPrivTitle;
|
|
|
|
rtl::OUString aPrivProfession;
|
|
|
|
rtl::OUString aPrivPhone;
|
|
|
|
rtl::OUString aPrivMobile;
|
|
|
|
rtl::OUString aPrivFax;
|
|
|
|
rtl::OUString aPrivWWW;
|
|
|
|
rtl::OUString aPrivMail;
|
|
|
|
rtl::OUString aCompCompany;
|
|
|
|
rtl::OUString aCompCompanyExt;
|
|
|
|
rtl::OUString aCompSlogan;
|
|
|
|
rtl::OUString aCompStreet;
|
|
|
|
rtl::OUString aCompZip;
|
|
|
|
rtl::OUString aCompCity;
|
|
|
|
rtl::OUString aCompCountry;
|
|
|
|
rtl::OUString aCompState;
|
|
|
|
rtl::OUString aCompPosition;
|
|
|
|
rtl::OUString aCompPhone;
|
|
|
|
rtl::OUString aCompMobile;
|
|
|
|
rtl::OUString aCompFax;
|
|
|
|
rtl::OUString aCompWWW;
|
|
|
|
rtl::OUString aCompMail;
|
|
|
|
|
|
|
|
rtl::OUString sGlossaryGroup;
|
|
|
|
rtl::OUString sGlossaryBlockName;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// class SwLabCfgItem -------------------------------------------------------
|
2000-09-26 10:55:45 +00:00
|
|
|
class SwLabCfgItem : public utl::ConfigItem
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2000-09-26 10:55:45 +00:00
|
|
|
SwLabItem aItem;
|
|
|
|
sal_Bool bIsLabel;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2000-09-26 10:55:45 +00:00
|
|
|
com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
|
2000-09-18 16:15:01 +00:00
|
|
|
public:
|
2000-09-26 10:55:45 +00:00
|
|
|
SwLabCfgItem(sal_Bool bLabel);
|
|
|
|
|
|
|
|
SwLabItem& GetItem() {return aItem;}
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
virtual void Commit();
|
|
|
|
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|