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 
24 void SwFrame::Format( vcl::RenderContext* /*pRenderContext*/, const SwBorderAttrs * )
25 {
26  OSL_FAIL( "Format() of the base class called." );
27 }
28 
30 {
31  OSL_FAIL( "PaintSwFrame() of the base class called." );
32 }
33 
34 bool SwContentFrame::WouldFit( SwTwips &, bool&, bool )
35 {
36  OSL_FAIL( "WouldFit of ContentFrame called." );
37  return false;
38 }
39 
41 {
42  OSL_FAIL( "Don't call this function at the base class!" );
43  return false;
44 }
45 
47 {
48  OSL_FAIL( "GetCursorOfst of the base class, hi!" );
49  return false;
50 }
51 
52 #ifdef DBG_UTIL
53 
55 {
56  OSL_FAIL( "Cut() of RootFrame called." );
57 }
58 
60 {
61  OSL_FAIL( "Paste() of RootFrame called." );
62 }
63 
65 {
66  OSL_FAIL( "Paste() of FlyFrame called." );
67 }
68 
69 #endif
70 
72  SwCursorMoveState*, bool ) const
73 {
74  OSL_FAIL( "GetCharRect() of the base called." );
75  return false;
76 }
77 
78 /* 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
long SwTwips
Definition: swtypes.hxx:49
This class is used as parameter for creation of a block cursor selection.
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
virtual bool FillSelection(SwSelectionList &rList, const SwRect &rRect) const
Definition: unusedf.cxx:40
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
Definition: unusedf.cxx:64
virtual bool GetCharRect(SwRect &, const SwPosition &, SwCursorMoveState *=nullptr, bool bAllowFarAway=true) const
Definition: unusedf.cxx:71
virtual void Cut() override
Definition: unusedf.cxx:54
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const
Definition: unusedf.cxx:29
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
Definition: unusedf.cxx:59
virtual void Format(vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr)
Definition: unusedf.cxx:24
virtual bool GetCursorOfst(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const
Definition: unusedf.cxx:46
virtual bool WouldFit(SwTwips &nMaxHeight, bool &bSplit, bool bTst)
Definition: unusedf.cxx:34