LibreOffice Module svx (master) 1
emptyproperties.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 <sal/config.h>
21
23#include <svl/itemset.hxx>
24#include <svx/svdobj.hxx>
25
26
27namespace sdr::properties
28{
30 : BaseProperties(rObj)
31 {
32 }
33
34 std::unique_ptr<BaseProperties> EmptyProperties::Clone(SdrObject& rObj) const
35 {
36 return std::unique_ptr<BaseProperties>(new EmptyProperties(rObj));
37 }
38
40 {
41 assert(!"EmptyProperties::GetObjectItemSet() should never be called");
42 abort();
43 }
44
46 {
47 assert(!"EmptyProperties::CreateObjectSpecificItemSet() should never be called");
48 abort();
49 }
50
52 {
53 assert(!"EmptyProperties::SetObjectItem() should never be called");
54 }
55
57 {
58 assert(!"EmptyProperties::SetObjectItemDirect() should never be called");
59 }
60
61 void EmptyProperties::ClearObjectItem(const sal_uInt16 /*nWhich*/)
62 {
63 assert(!"EmptyProperties::ClearObjectItem() should never be called");
64 }
65
66 void EmptyProperties::ClearObjectItemDirect(const sal_uInt16 /*nWhich*/)
67 {
68 assert(!"EmptyProperties::ClearObjectItemDirect() should never be called");
69 }
70
72 {
73 assert(!"EmptyProperties::SetObjectItemSet() should never be called");
74 }
75
76 void EmptyProperties::SetStyleSheet(SfxStyleSheet* /*pNewStyleSheet*/, bool /*bDontRemoveHardAttr*/,
77 bool /*bBroadcast*/)
78 {
79 assert(!"EmptyProperties::SetStyleSheet() should never be called");
80 }
81
83 {
84 assert(!"EmptyProperties::GetStyleSheet() should never be called");
85 return nullptr;
86 }
87} // end of namespace
88
89/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Abstract DrawObject.
Definition: svdobj.hxx:261
virtual SfxItemSet CreateObjectSpecificItemSet(SfxItemPool &pPool) override
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast) override
virtual void SetObjectItem(const SfxPoolItem &rItem) override
virtual void SetObjectItemSet(const SfxItemSet &rSet) override
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override
virtual void ClearObjectItem(const sal_uInt16 nWhich=0) override
virtual const SfxItemSet & GetObjectItemSet() const override
virtual SfxStyleSheet * GetStyleSheet() const override
virtual void SetObjectItemDirect(const SfxPoolItem &rItem) override