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 10:07:23 +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 10:07:23 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 10:07:23 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 10:07:23 +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 10:07:23 +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 10:07:23 +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 _FLYPOS_HXX
|
|
|
|
#define _FLYPOS_HXX
|
|
|
|
|
|
|
|
|
2009-01-05 14:06:42 +00:00
|
|
|
#include <swdllapi.h>
|
2012-05-16 10:58:34 +02:00
|
|
|
#include <set>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
class SwFrmFmt;
|
|
|
|
class SwNodeIndex;
|
|
|
|
|
2011-01-26 10:38:06 +01:00
|
|
|
|
|
|
|
// For querying current flys in document.
|
2009-01-05 14:06:42 +00:00
|
|
|
class SW_DLLPUBLIC SwPosFlyFrm
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2011-01-26 10:38:06 +01:00
|
|
|
const SwFrmFmt* pFrmFmt; // FlyFrmFmt
|
|
|
|
SwNodeIndex* pNdIdx; // Index for node is sufficient.
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt32 nOrdNum;
|
2000-09-18 16:15:01 +00:00
|
|
|
public:
|
2011-01-17 15:06:54 +01:00
|
|
|
SwPosFlyFrm( const SwNodeIndex& , const SwFrmFmt*, sal_uInt16 nArrPos );
|
2011-01-26 10:38:06 +01:00
|
|
|
virtual ~SwPosFlyFrm(); // Virtual for Writer (DLL !!)
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-01-26 10:38:06 +01:00
|
|
|
// Operators for sort array.
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool operator==( const SwPosFlyFrm& );
|
|
|
|
sal_Bool operator<( const SwPosFlyFrm& );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
const SwFrmFmt& GetFmt() const { return *pFrmFmt; }
|
|
|
|
const SwNodeIndex& GetNdIndex() const { return *pNdIdx; }
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt32 GetOrdNum() const { return nOrdNum; }
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2012-07-31 19:21:43 +02:00
|
|
|
class SwPosFlyFrms : public std::multiset<SwPosFlyFrm*> {};
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2003-10-06 13:31:00 +00:00
|
|
|
#endif // _FLYPOS_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|