/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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 .
*/ #ifndef INCLUDED_SW_SOURCE_CORE_INC_LAYFRM_HXX #define INCLUDED_SW_SOURCE_CORE_INC_LAYFRM_HXX
#include"frame.hxx" #include <swdllapi.h>
class SwAnchoredObject; class SwContentFrame; class SwFormatCol; struct SwCursorMoveState; class SwFrameFormat; class SwBorderAttrs; class SwFormatFrameSize; class SwCellFrame;
/// A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame. class SAL_DLLPUBLIC_RTTI SwLayoutFrame: public SwFrame
{ // The SwFrame in disguise friendclass SwFlowFrame; friendclass SwFrame;
/** * Finds the closest Content for the SPoint * Is used for Pages, Flys and Cells if GetModelPositionForViewPoint failed
*/ const SwContentFrame* GetContentPos( Point &rPoint, constbool bDontLeave, constbool bBodyOnly = false,
SwCursorMoveState *pCMS = nullptr, constbool bDefaultExpand = true ) const;
/** * Moving the Footnotes of all Lowers - starting from StartContent * * @returns true if at least one Footnote was moved * Calls the page number update if bFootnoteNums is set
*/ bool MoveLowerFootnotes( SwContentFrame *pStart, SwFootnoteBossFrame *pOldBoss,
SwFootnoteBossFrame *pNewBoss, constbool bFootnoteNums );
// --> #i28701# - change purpose of method and its name // --> #i44016# - add parameter <_bUnlockPosOfObjs> to /// force an unlockposition call for the lower objects. void NotifyLowerObjs( constbool _bUnlockPosOfObjs = false );
/** * Invalidates the inner Frames, whose width and/or height are * calculated using percentages. * Frames that are anchored to this or inner Frames, are also invalidated.
*/ void InvaPercentLowers( SwTwips nDiff = 0 );
/// Called by Format for Frames and Areas with columns void FormatWidthCols( const SwBorderAttrs &, const SwTwips nBorder, const SwTwips nMinHeight );
/** * InnerHeight returns the height of the content and may be bigger or * less than the PrtArea-Height of the layoutframe himself
*/
SwTwips InnerHeight() const;
/** method to check relative position of layout frame to a given layout frame.
refactoring of pseudo-local method <lcl_Apres(..)> in <txtftn.cxx> for #104840#.
@param _aCheckRefLayFrame constant reference of an instance of class <SwLayoutFrame> which is used as the reference for the relative position check.
@return true, if <this> is positioned before the layout frame <p>
*/ bool IsBefore( const SwLayoutFrame* _pCheckRefLayFrame ) const;
/** * In order to save us from duplicating implementations, we cast here * a little.
*/ inline SwContentFrame* SwLayoutFrame::ContainsContent()
{ returnconst_cast<SwContentFrame*>(static_cast<const SwLayoutFrame*>(this)->ContainsContent());
}
/** * These SwFrame inlines are here, so that frame.hxx does not need to include layfrm.hxx
*/ inlinebool SwFrame::IsColBodyFrame() const
{ return mnFrameType == SwFrameType::Body && GetUpper()->IsColumnFrame();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.