/* -*- 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_FMTSRND_HXX #define INCLUDED_SW_INC_FMTSRND_HXX #include "swdllapi.h" #include #include #include #include class IntlWrapper; // SwFormatSurround: How document content under the frame shall behave. class SW_DLLPUBLIC SwFormatSurround: public SfxEnumItem { bool bAnchorOnly :1; bool bContour :1; bool bOutside :1; public: SwFormatSurround( SwSurround eNew = SURROUND_PARALLEL ); SwFormatSurround( const SwFormatSurround & ); inline SwFormatSurround &operator=( const SwFormatSurround &rCpy ); // "Pure virtual Methods" of SfxPoolItem. virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE; virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE; virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE; virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE; SwSurround GetSurround()const { return SwSurround( GetValue() ); } bool IsAnchorOnly() const { return bAnchorOnly; } bool IsContour() const { return bContour; } bool IsOutside() const { return bOutside; } void SetSurround ( SwSurround eNew ){ SfxEnumItem::SetValue( sal_uInt16( eNew ) ); } void SetAnchorOnly( bool bNew ) { bAnchorOnly = bNew; } void SetContour( bool bNew ) { bContour = bNew; } void SetOutside( bool bNew ) { bOutside = bNew; } void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; inline SwFormatSurround &SwFormatSurround::operator=( const SwFormatSurround &rCpy ) { bAnchorOnly = rCpy.IsAnchorOnly(); bContour = rCpy.IsContour(); bOutside = rCpy.IsOutside(); SfxEnumItem::SetValue( rCpy.GetValue() ); return *this; } inline const SwFormatSurround &SwAttrSet::GetSurround(bool bInP) const { return static_cast(Get( RES_SURROUND,bInP)); } inline const SwFormatSurround &SwFormat::GetSurround(bool bInP) const { return m_aSet.GetSurround(bInP); } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ .9'>distro/collabora/co-24.04.9 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-04-04tdf#97499 Fixed containers parameters clearing #3tymyjan
2016-03-30Improve wordingTor Lillqvist
2016-03-08tdf#98407 PathSubstitution: Add substitution for $(username)Samuel Mehrbrodt
2016-02-17use consistent #define checks for the Windows platformNoel Grandin
2016-02-09Remove excess newlinesChris Sherlock
2016-02-05vcl: Remove unneeded exception constantsChris Sherlock
2016-01-29sal: replace boost::unordered_set with std::unordered_setMichael Stahl
2016-01-12typosMichael Stahl
2016-01-10Fix typosAndrea Gelmini
2016-01-06tdf#39631 - branch hints: comment, and tweak variously, also use.Michael Meeks
2015-12-02use compiler intrinsic for osl_atomic_increment on WindowsNoel Grandin
2015-11-10Missing includes (for NULL)Stephan Bergmann
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-11move extracting assets to Java & use AssetManager to access assetsChristian Lohmaier
2015-10-05Emscripten: First steps of porting to EmscriptenSamuel Mehrbrodt
2015-09-30Fix typosAndrea Gelmini
2015-08-18tdf#84323: Make osl::Condition::wait more readableStephan Bergmann
2015-08-17tdf#84323: Make osl::Thread::wait more readableStephan Bergmann
2015-07-29endian.h: avoid some Wconversion warningsMatteo Casalin
2015-07-19Fix typosAndrea Gelmini
2015-07-15Clarify documentation of (mis)features of osl_getExecutableFile()Tor Lillqvist
2015-07-13Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug buildsStephan Bergmann
2015-07-03Fix typosAndrea Gelmini
2015-06-30Fix typosAndrea Gelmini
2015-06-18Fix typosAndrea Gelmini
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
2015-04-02Move osl::LibreOfficeKit stuff to comphelper for nowTor Lillqvist
2015-04-01Add API to check whether being used through LibreOfficeKitTor Lillqvist
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
2015-03-12sal: PVS-Studio V611 memory was allocated using 'new T[]' operatorMichael Stahl
2015-03-01mismatched new[]/deleteDavid Tardon