LibreOffice Module sw (master) 1
unusedf.cxx
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#include <rootfrm.hxx>
21#include <cntfrm.hxx>
22#include <flyfrm.hxx>
23#include <osl/diagnose.h>
24
25void SwFrame::Format( vcl::RenderContext* /*pRenderContext*/, const SwBorderAttrs * )
26{
27 OSL_FAIL( "Format() of the base class called." );
28}
29
31{
32 OSL_FAIL( "PaintSwFrame() of the base class called." );
33}
34
35bool SwContentFrame::WouldFit(SwTwips &, bool&, bool, bool)
36{
37 OSL_FAIL( "WouldFit of ContentFrame called." );
38 return false;
39}
40
42{
43 OSL_FAIL( "Don't call this function at the base class!" );
44 return false;
45}
46
48{
49 OSL_FAIL( "GetModelPositionForViewPoint of the base class, hi!" );
50 return false;
51}
52
53#ifdef DBG_UTIL
54
56{
57 OSL_FAIL( "Cut() of RootFrame called." );
58}
59
61{
62 OSL_FAIL( "Paste() of RootFrame called." );
63}
64
66{
67 OSL_FAIL( "Paste() of FlyFrame called." );
68}
69
70#endif
71
73 SwCursorMoveState*, bool ) const
74{
75 OSL_FAIL( "GetCharRect() of the base called." );
76 return false;
77}
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool WouldFit(SwTwips &nMaxHeight, bool &bSplit, bool bTst, bool)
Definition: unusedf.cxx:35
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
Definition: unusedf.cxx:65
Base class of the Writer layout elements.
Definition: frame.hxx:315
virtual bool FillSelection(SwSelectionList &rList, const SwRect &rRect) const
Definition: unusedf.cxx:41
virtual bool GetModelPositionForViewPoint(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const
Definition: unusedf.cxx:47
virtual void Format(vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr)
Calculates the frame area size and the print area, in case they are invalid.
Definition: unusedf.cxx:25
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const
Definition: unusedf.cxx:30
virtual bool GetCharRect(SwRect &, const SwPosition &, SwCursorMoveState *=nullptr, bool bAllowFarAway=true) const
Definition: unusedf.cxx:72
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
Definition: unusedf.cxx:60
virtual void Cut() override
Definition: unusedf.cxx:55
This class is used as parameter for creation of a block cursor selection.
Marks a position in the document model.
Definition: pam.hxx:38
tools::Long SwTwips
Definition: swtypes.hxx:51