LibreOffice Module sw (master)  1
cellfrm.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_CELLFRM_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_CELLFRM_HXX
22 
23 #include "layfrm.hxx"
24 
25 class SwTableBox;
26 struct SwCursorMoveState;
27 class SwBorderAttrs;
28 
31 {
33 
34  virtual void DestroyImpl() override;
35  virtual ~SwCellFrame() override;
36 
37 protected:
38  virtual void Format( vcl::RenderContext* pRenderContext, const SwBorderAttrs *pAttrs = nullptr ) override;
39  virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ) override;
40 
41 public:
42  SwCellFrame( const SwTableBox &, SwFrame*, bool bInsertContent );
43 
44  virtual bool GetCursorOfst( SwPosition *, Point&, SwCursorMoveState* = nullptr, bool bTestBackground = false ) const override;
45  virtual void PaintSwFrame( vcl::RenderContext& rRenderContext, SwRect const&,
46  SwPrintData const*const pPrintData = nullptr ) const override;
47  virtual void CheckDirection( bool bVert ) override;
48 
49  // #i103961#
50  virtual void Cut() override;
51 
52  const SwTableBox *GetTabBox() const { return m_pTabBox; }
53 
54  // used for breaking table rows:
55  SwCellFrame* GetFollowCell() const;
57 
58  // used for rowspan stuff:
59  const SwCellFrame& FindStartEndOfRowSpanCell( bool bStart ) const;
60  long GetLayoutRowSpan() const;
61 
62  void dumpAsXmlAttributes(xmlTextWriterPtr writer) const override;
63 };
64 
65 #endif
66 
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the Writer layout elements.
Definition: frame.hxx:295
Marks a position in the document model.
Definition: pam.hxx:35
virtual void CheckDirection(bool bVert) override
Definition: wsfrm.cxx:448
const SwCellFrame & FindStartEndOfRowSpanCell(bool bStart) const
Definition: findfrm.cxx:1670
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
virtual void Format(vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr) override
"Formats" the Frame; Frame and PrtArea.
Definition: tabfrm.cxx:4959
SwCellFrame(const SwTableBox &, SwFrame *, bool bInsertContent)
Definition: tabfrm.cxx:4674
const SwTableBox * GetTabBox() const
Definition: cellfrm.hxx:52
SwCellFrame * GetPreviousCell() const
Definition: findfrm.cxx:1629
virtual void Cut() override
Definition: tabfrm.cxx:5321
virtual void DestroyImpl() override
Definition: tabfrm.cxx:4703
struct _xmlTextWriter * xmlTextWriterPtr
void dumpAsXmlAttributes(xmlTextWriterPtr writer) const override
Definition: tabfrm.cxx:5310
virtual void Modify(const SfxPoolItem *, const SfxPoolItem *) override
Definition: tabfrm.cxx:5228
virtual ~SwCellFrame() override
Definition: tabfrm.cxx:4725
SwCellFrame * GetFollowCell() const
Definition: findfrm.cxx:1579
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override
Definition: paintfrm.cxx:3847
virtual bool GetCursorOfst(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override
If this is about a Content-carrying cell the Cursor will be force inserted into one of the ContentFra...
Definition: trvlfrm.cxx:467
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:386
long GetLayoutRowSpan() const
Definition: tabfrm.cxx:5296
const SwTableBox * m_pTabBox
Definition: cellfrm.hxx:32
SwCellFrame is one table cell in the document layout.
Definition: cellfrm.hxx:30