2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02: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 .
|
|
|
|
*/
|
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
|
2012-02-08 19:16:52 +01:00
|
|
|
sal_Int32 lPHeight; // paper height
|
|
|
|
sal_Int32 lPWidth; // paper width
|
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: */
|