/* -*- 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_SVX_SWFRAMEVALIDATION_HXX #define INCLUDED_SVX_SWFRAMEVALIDATION_HXX #include #include #include /* struct to determine min/max values for fly frame positioning in Writer */ struct SvxSwFrameValidation { sal_Int16 nAnchorType; //com::sun::star::text::TextContentAnchorType sal_Int16 nHoriOrient; //com::sun::star::text::HoriOrientation sal_Int16 nVertOrient; //com::sun::star::text::VertOrientation sal_Int16 nHRelOrient; //com::sun::star::text::RelOrientation sal_Int16 nVRelOrient; //com::sun::star::text::RelOrientation bool bAutoHeight; bool bAutoWidth; bool bMirror; bool bFollowTextFlow; sal_Int32 nHPos; sal_Int32 nMaxHPos; sal_Int32 nMinHPos; sal_Int32 nVPos; sal_Int32 nMaxVPos; sal_Int32 nMinVPos; sal_Int32 nWidth; sal_Int32 nMinWidth; sal_Int32 nMaxWidth; sal_Int32 nHeight; sal_Int32 nMinHeight; sal_Int32 nMaxHeight; Size aPercentSize; // Size for 100% value SvxSwFrameValidation() : nAnchorType(0), nHoriOrient(0), nVertOrient(0), nHRelOrient(0), nVRelOrient(0), bAutoHeight(false), bAutoWidth(false), bMirror(false), bFollowTextFlow( false ), nHPos(0), nMaxHPos(SAL_MAX_INT32), nMinHPos(0), nVPos(0), nMaxVPos(SAL_MAX_INT32), nMinVPos(0), nWidth( 283 * 4 ), //2.0 cm nMinWidth(0), nMaxWidth(SAL_MAX_INT32), nHeight( 283 ), //0.5 cm nMinHeight(0), nMaxHeight(SAL_MAX_INT32) { } }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ abora/co-24.04 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-10ucb: ReacquireableGuard::reacquire() is a no-opMichael Stahl
So remove this junk and use osl::ResettableGuard instead which actually works. Change-Id: Ieb49fab16c94f0a2847ee5a1b95b52f2c141c674 (cherry picked from commit a5a94537d804f20a0d6472ef2e5995cee2d5b2fe) Reviewed-on: https://gerrit.libreoffice.org/32907 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann
Change-Id: I9adb9cce899591380c18fa8a336408ba9b21defd
2016-05-19loplugin:unusedmethods in ucb/ucbhelperNoel Grandin
Change-Id: I2935904e2cbecec6c928f4cbc88979bc2d1a40f8 Reviewed-on: https://gerrit.libreoffice.org/25090 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-25InterfaceContainer2 with vector instead of SequenceNoel Grandin
create an InterfaceContainer2 class to replace InterfaceContainer. It uses a std::vector instead of a Sequence for the mutable listener list, which provides far better performance. Switch all our internal use-sites to the new class. Change-Id: I6b56cfa511ded2395faa22e68fab3b2f16c3cb88
2016-01-13loplugin:unusedmethods unused return value in ucb/Noel Grandin
Change-Id: Ib988c919a21f58b7dc302810ec6c63534a51f382
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I72bf3e008a8941d6e0fdea81b6b3e4a959ff28c5
2015-11-09com::sun::star->css in tools/ and ucb/Noel Grandin
Change-Id: I695ff721efd63b8ca0dd3c61ba5a4fef2c43cde6 Reviewed-on: https://gerrit.libreoffice.org/19854 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2014-04-30ucb: sal_Bool->boolNoel Grandin
Change-Id: If79913653f22387ab6d5a376d9cf26751525168a
2014-04-19fixincludeguards.sh: ucbThomas Arnhold
Change-Id: I6a5994003cef7ed1672002933a5240160cff559d
2014-04-15cppu::OMultiTypeInterfaceContainerHelperVar hashImpl param is unusedStephan Bergmann
...since f059134fab0f91b7a15594ad06536a13fbfae034 "INTEGRATION: CWS cppuhelpshrink: #i72766# save memory in cppuhelper, using a vector instead of a hash_map" (but a dummy "void" default is left in place for backwards compatibility). Change-Id: I3bb0af8158f34737d41c344464f3cf944e2891ed