/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SW_INC_FRMATR_HXX #define INCLUDED_SW_INC_FRMATR_HXX #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // Inlines // Implementation of FrameAttribute methods of SwAttrSet. inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(bool bInP) const { return static_cast(Get( RES_PAPER_BIN,bInP)); } inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(bool bInP) const { return static_cast(Get( RES_LR_SPACE,bInP)); } inline const SvxULSpaceItem &SwAttrSet::GetULSpace(bool bInP) const { return static_cast(Get( RES_UL_SPACE,bInP)); } inline const SvxPrintItem &SwAttrSet::GetPrint(bool bInP) const { return static_cast(Get( RES_PRINT,bInP)); } inline const SvxOpaqueItem &SwAttrSet::GetOpaque(bool bInP) const { return static_cast(Get( RES_OPAQUE,bInP)); } inline const SvxProtectItem &SwAttrSet::GetProtect(bool bInP) const { return static_cast(Get( RES_PROTECT,bInP)); } inline const SvxBoxItem &SwAttrSet::GetBox(bool bInP) const { return static_cast(Get( RES_BOX,bInP)); } inline const SvxFmtKeepItem &SwAttrSet::GetKeep(bool bInP) const { return static_cast(Get( RES_KEEP,bInP)); } inline const SvxBrushItem &SwAttrSet::GetBackground(bool bInP) const { return static_cast(Get( RES_BACKGROUND,bInP)); } inline const SvxShadowItem &SwAttrSet::GetShadow(bool bInP) const { return static_cast(Get( RES_SHADOW,bInP)); } inline const SvxFmtBreakItem &SwAttrSet::GetBreak(bool bInP) const { return static_cast(Get( RES_BREAK,bInP)); } inline const SvxMacroItem &SwAttrSet::GetMacro(bool bInP) const { return static_cast(Get( RES_FRMMACRO,bInP)); } inline const SvxFrameDirectionItem &SwAttrSet::GetFrmDir(bool bInP) const { return static_cast(Get( RES_FRAMEDIR,bInP)); } inline const SdrTextVertAdjustItem &SwAttrSet::GetTextVertAdjust(bool bInP) const { return static_cast(Get( RES_TEXT_VERT_ADJUST,bInP)); } // Implementation of FrameAttribute methods of SwFmt. inline const SvxPaperBinItem &SwFmt::GetPaperBin(bool bInP) const { return aSet.GetPaperBin(bInP); } inline const SvxLRSpaceItem &SwFmt::GetLRSpace(bool bInP) const { return aSet.GetLRSpace(bInP); } inline const SvxULSpaceItem &SwFmt::GetULSpace(bool bInP) const { return aSet.GetULSpace(bInP); } inline const SvxPrintItem &SwFmt::GetPrint(bool bInP) const { return aSet.GetPrint(bInP); } inline const SvxOpaqueItem &SwFmt::GetOpaque(bool bInP) const { return aSet.GetOpaque(bInP); } inline const SvxProtectItem &SwFmt::GetProtect(bool bInP) const { return aSet.GetProtect(bInP); } inline const SvxBoxItem &SwFmt::GetBox(bool bInP) const { return aSet.GetBox(bInP); } inline const SvxFmtKeepItem &SwFmt::GetKeep(bool bInP) const { return aSet.GetKeep(bInP); } inline const SvxShadowItem &SwFmt::GetShadow(bool bInP) const { return aSet.GetShadow(bInP); } inline const SvxFmtBreakItem &SwFmt::GetBreak(bool bInP) const { return aSet.GetBreak(bInP); } inline const SvxMacroItem &SwFmt::GetMacro(bool bInP) const { return aSet.GetMacro(bInP); } inline const SvxFrameDirectionItem &SwFmt::GetFrmDir(bool bInP) const { return aSet.GetFrmDir(bInP); } inline const SdrTextVertAdjustItem &SwFmt::GetTextVertAdjust(bool bInP) const { return aSet.GetTextVertAdjust(bInP); } #endif // INCLUDED_SW_INC_FRMATR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */