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 .
|
|
|
|
*/
|
2012-06-02 19:45:46 +02:00
|
|
|
|
2000-09-18 23:08:29 +00:00
|
|
|
#ifndef _HFFRM_HXX
|
|
|
|
#define _HFFRM_HXX
|
|
|
|
|
|
|
|
#include <tools/mempool.hxx>
|
|
|
|
#include "layfrm.hxx"
|
|
|
|
|
2002-08-27 07:24:39 +00:00
|
|
|
class SwHeadFootFrm : public SwLayoutFrm
|
2000-09-18 23:08:29 +00:00
|
|
|
{
|
2002-08-27 07:24:39 +00:00
|
|
|
protected:
|
|
|
|
void FormatSize(SwTwips nUL, const SwBorderAttrs * pAttrs);
|
|
|
|
void FormatPrt(SwTwips & nUL, const SwBorderAttrs * pAttrs);
|
2011-01-17 15:06:54 +01:00
|
|
|
inline sal_Bool GetEatSpacing() const; // in hffrm.cxx
|
2012-06-02 19:45:46 +02:00
|
|
|
|
2000-09-18 23:08:29 +00:00
|
|
|
public:
|
2011-02-09 15:55:27 +01:00
|
|
|
SwHeadFootFrm(SwFrmFmt * pFrm, SwFrm*, sal_uInt16 aType);
|
2002-08-27 07:24:39 +00:00
|
|
|
virtual void Format( const SwBorderAttrs *pAttrs = 0 );
|
|
|
|
virtual SwTwips GrowFrm( SwTwips,
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False );
|
2002-08-27 07:24:39 +00:00
|
|
|
virtual SwTwips ShrinkFrm( SwTwips,
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False );
|
2011-09-06 11:16:01 +02:00
|
|
|
virtual void PaintSubsidiaryLines( const SwPageFrm*, const SwRect& ) const;
|
2002-08-27 07:24:39 +00:00
|
|
|
};
|
|
|
|
|
2012-02-15 11:36:56 +01:00
|
|
|
/// Header in the document layout, inside a page.
|
2002-08-27 07:24:39 +00:00
|
|
|
class SwHeaderFrm: public SwHeadFootFrm
|
|
|
|
{
|
|
|
|
public:
|
2010-06-13 15:22:56 +02:00
|
|
|
SwHeaderFrm( SwFrmFmt* pFrm, SwFrm* pSib ) : SwHeadFootFrm(pFrm, pSib, FRMC_HEADER) {};
|
2000-09-18 23:08:29 +00:00
|
|
|
|
|
|
|
DECL_FIXEDMEMPOOL_NEWDEL(SwHeaderFrm)
|
|
|
|
};
|
|
|
|
|
2012-02-15 11:36:56 +01:00
|
|
|
/// Footer in the document layout, inside a page.
|
2002-08-27 07:24:39 +00:00
|
|
|
class SwFooterFrm: public SwHeadFootFrm
|
2000-09-18 23:08:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2010-06-13 15:22:56 +02:00
|
|
|
SwFooterFrm( SwFrmFmt* pFrm, SwFrm* pSib ) : SwHeadFootFrm(pFrm, pSib, FRMC_FOOTER) {};
|
2000-09-18 23:08:29 +00:00
|
|
|
|
|
|
|
DECL_FIXEDMEMPOOL_NEWDEL(SwFooterFrm)
|
|
|
|
};
|
|
|
|
|
2012-06-02 19:45:46 +02:00
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|