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 _UIITEMS_HXX
|
|
|
|
#define _UIITEMS_HXX
|
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/intitem.hxx>
|
2004-08-23 08:03:22 +00:00
|
|
|
#include "swdllapi.h"
|
|
|
|
#include "cmdid.h"
|
|
|
|
#include "pagedesc.hxx"
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwNumRule;
|
2001-05-13 02:33:31 +00:00
|
|
|
class IntlWrapper;
|
2013-06-09 10:20:17 +02:00
|
|
|
class SwPaM;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
/*--------------------------------------------------------------------
|
2011-04-21 21:52:58 +02:00
|
|
|
Description: container for FootNote
|
2000-09-18 16:15:01 +00:00
|
|
|
--------------------------------------------------------------------*/
|
2004-08-23 08:03:22 +00:00
|
|
|
class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
SwPageFtnInfo aFtnInfo;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SwPageFtnInfoItem(const sal_uInt16 nId, SwPageFtnInfo& rInfo);
|
2000-09-18 16:15:01 +00:00
|
|
|
SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem );
|
|
|
|
~SwPageFtnInfoItem();
|
|
|
|
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
|
|
|
|
virtual int operator==( const SfxPoolItem& ) const;
|
|
|
|
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
|
|
|
|
SfxMapUnit eCoreMetric,
|
|
|
|
SfxMapUnit ePresMetric,
|
2013-01-23 12:41:52 +01:00
|
|
|
OUString &rText,
|
2001-05-13 02:33:31 +00:00
|
|
|
const IntlWrapper* pIntl = 0 ) const;
|
2001-04-27 11:04:46 +00:00
|
|
|
|
2011-03-14 16:51:14 +00:00
|
|
|
virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
|
|
|
|
virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
|
2001-04-27 11:04:46 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
SwPageFtnInfo& GetPageFtnInfo() { return aFtnInfo; }
|
|
|
|
const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; }
|
|
|
|
void SetPageFtnInfo(SwPageFtnInfo& rInf) { aFtnInfo = rInf; }
|
|
|
|
};
|
|
|
|
|
2004-08-23 08:03:22 +00:00
|
|
|
class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
void* pMisc;
|
|
|
|
|
|
|
|
public:
|
2011-01-17 15:06:54 +01:00
|
|
|
SwPtrItem( const sal_uInt16 nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0);
|
2000-09-18 16:15:01 +00:00
|
|
|
SwPtrItem( const SwPtrItem& rItem );
|
|
|
|
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
|
|
|
|
virtual int operator==( const SfxPoolItem& ) const;
|
|
|
|
|
|
|
|
void SetValue(void * pPtr) { pMisc= pPtr; }
|
|
|
|
void* GetValue() const { return pMisc; }
|
|
|
|
};
|
|
|
|
|
2004-08-23 08:03:22 +00:00
|
|
|
class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
SwNumRule* pRule;
|
|
|
|
|
|
|
|
public:
|
2011-01-17 15:06:54 +01:00
|
|
|
SwUINumRuleItem( const SwNumRule& rRule, const sal_uInt16 = FN_PARAM_ACT_NUMBER);
|
2000-09-18 16:15:01 +00:00
|
|
|
SwUINumRuleItem( const SwUINumRuleItem& rItem );
|
|
|
|
virtual ~SwUINumRuleItem();
|
|
|
|
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
|
|
|
|
virtual int operator==( const SfxPoolItem& ) const;
|
|
|
|
|
2011-03-14 16:51:14 +00:00
|
|
|
virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
|
|
|
|
virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
const SwNumRule* GetNumRule() const { return pRule; }
|
|
|
|
SwNumRule* GetNumRule() { return pRule; }
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwBackgroundDestinationItem : public SfxUInt16Item
|
|
|
|
{
|
|
|
|
public:
|
2011-01-17 15:06:54 +01:00
|
|
|
SwBackgroundDestinationItem(sal_uInt16 nWhich, sal_uInt16 nValue);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
|
|
|
|
};
|
|
|
|
|
2011-10-07 16:55:03 +02:00
|
|
|
class SW_DLLPUBLIC SwPaMItem : public SfxPoolItem
|
|
|
|
{
|
|
|
|
SwPaM* m_pPaM;
|
|
|
|
|
|
|
|
public:
|
|
|
|
SwPaMItem( const sal_uInt16 nId = FN_PARAM_PAM, SwPaM* pPaM = NULL);
|
|
|
|
SwPaMItem( const SwPaMItem& rItem );
|
|
|
|
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
|
|
|
|
virtual int operator==( const SfxPoolItem& ) const;
|
|
|
|
|
|
|
|
void SetValue(SwPaM * pPaM) { m_pPaM= pPaM; }
|
|
|
|
SwPaM* GetValue() const { return m_pPaM; }
|
|
|
|
};
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
#endif // _UIITEMS_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|