tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / svx / source / sdr / properties / emptyproperties.cxx
blob6f7b0f6876e50e2f0c79fae3eadae24d1b1eaf12
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <sal/config.h>
22 #include <sdr/properties/emptyproperties.hxx>
23 #include <svl/itemset.hxx>
24 #include <svx/svdobj.hxx>
27 namespace sdr::properties
29 EmptyProperties::EmptyProperties(SdrObject& rObj)
30 : BaseProperties(rObj)
34 std::unique_ptr<BaseProperties> EmptyProperties::Clone(SdrObject& rObj) const
36 return std::unique_ptr<BaseProperties>(new EmptyProperties(rObj));
39 const SfxItemSet& EmptyProperties::GetObjectItemSet() const
41 assert(!"EmptyProperties::GetObjectItemSet() should never be called");
42 abort();
45 SfxItemSet EmptyProperties::CreateObjectSpecificItemSet(SfxItemPool&)
47 assert(!"EmptyProperties::CreateObjectSpecificItemSet() should never be called");
48 abort();
51 void EmptyProperties::SetObjectItem(const SfxPoolItem& /*rItem*/)
53 assert(!"EmptyProperties::SetObjectItem() should never be called");
56 void EmptyProperties::SetObjectItemDirect(const SfxPoolItem& /*rItem*/)
58 assert(!"EmptyProperties::SetObjectItemDirect() should never be called");
61 void EmptyProperties::ClearObjectItem(const sal_uInt16 /*nWhich*/)
63 assert(!"EmptyProperties::ClearObjectItem() should never be called");
66 void EmptyProperties::ClearObjectItemDirect(const sal_uInt16 /*nWhich*/)
68 assert(!"EmptyProperties::ClearObjectItemDirect() should never be called");
71 void EmptyProperties::SetObjectItemSet(const SfxItemSet& /*rSet*/, bool /*bAdjustTextFrameWidthAndHeight*/)
73 assert(!"EmptyProperties::SetObjectItemSet() should never be called");
76 void EmptyProperties::SetStyleSheet(SfxStyleSheet* /*pNewStyleSheet*/, bool /*bDontRemoveHardAttr*/,
77 bool /*bBroadcast*/, bool /*bAdjustTextFrameWidthAndHeight*/)
79 assert(!"EmptyProperties::SetStyleSheet() should never be called");
82 SfxStyleSheet* EmptyProperties::GetStyleSheet() const
84 assert(!"EmptyProperties::GetStyleSheet() should never be called");
85 return nullptr;
87 } // end of namespace
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */