/* -*- 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_SVL_ITEMITER_HXX #define INCLUDED_SVL_ITEMITER_HXX #include #include class SfxPoolItem; class SfxItemSet; class SfxItemPool; class SVL_DLLPUBLIC SfxItemIter { const SfxItemSet& m_rSet; sal_uInt16 m_nStart; sal_uInt16 m_nEnd; sal_uInt16 m_nCurrent; public: SfxItemIter( const SfxItemSet& rSet ); ~SfxItemIter(); /// get item, or null if no items const SfxPoolItem* FirstItem() { m_nCurrent = m_nStart; return m_rSet.m_nCount ? *(m_rSet.m_pItems.get() + m_nCurrent) : nullptr; } const SfxPoolItem* GetCurItem() const { return m_rSet.m_nCount ? *(m_rSet.m_pItems.get() + m_nCurrent) : nullptr; } const SfxPoolItem* NextItem(); bool IsAtEnd() const { return m_nCurrent == m_nEnd; } sal_uInt16 GetCurPos() const { return m_nCurrent; } sal_uInt16 GetFirstPos() const { return m_nStart; } sal_uInt16 GetLastPos() const { return m_nEnd; } }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ lue='distro/collabora/cd-5.3'>distro/collabora/cd-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2014-12-10java: improve use of WrappedTargetException to set cause properlyNoel Grandin
2014-12-10Typo: nuber=>numberJulien Nabet
2014-12-09Uno bridge: Apply debug info setting to noopt codeDavid Ostrovsky
2014-12-09Fix base+offset pointer calculations when synthesizing exception dataStephan Bergmann
2014-12-09Fix mscx_filterCppException base+offset pointer calculationsStephan Bergmann
2014-12-09rhbz#1036877: Join Java AsynchronousFinalizer thread well before exitStephan Bergmann
2014-12-08Mark classes as noncopyableStephan Bergmann
2014-12-03Fold URE: WindowsStephan Bergmann
2014-12-02except.cxx: Fix pTypeDescr is unknown in this context errorDavid Ostrovsky
2014-12-02MSVC 2013: Compute uno bridge exception offset for X64David Ostrovsky
2014-11-28Fold URE: Linux ure/share/java/* -> program/classes/Stephan Bergmann
2014-11-28Fold URE: Linux ure/lib/* -> program/Stephan Bergmann
2014-11-23gcc3_linux_powerpc64 bridges: assert -> static_assert to fix buildRene Engelhard
2014-11-23aarch63 bridges: add missing #include <osl/mutex.hxx>Rene Engelhard
2014-11-21bridges: oops some semicolons got lostMichael Stahl
2014-11-21bridges: oops, static_assert requires 2nd string parameterMichael Stahl
2014-11-21bridges: forgot to remove some include diagnose.hMichael Stahl
2014-11-21ibridges: convert all legacy osl/diagnose.h assertions in source/cppu_unoMichael Stahl
2014-11-20Include <osl/diagnose.h>Tor Lillqvist
2014-11-18cppu: clean up public headers with include-what-you-useMichael Stahl
2014-11-18java: fix some raw types warningsNoel Grandin
2014-11-18java: make fields final where possibleNoel Grandin
2014-11-17Blind fix attempt: include <osl/diagnose.h>Tor Lillqvist
2014-11-17missing includeMatúš Kukan
2014-11-17bridges: get at least the x86 bridge to buildMichael Stahl
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-11-17bridges, vcl: turns out there is sal/alloca.h; replace #ifdeferyMichael Stahl
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
2014-11-12java: convert fields to local variables where possibleNoel Grandin
2014-11-12java: last statement in finalize() method should be call to super.finalize()Noel Grandin
2014-11-11Avoid -fsanitize=signed-integer-overflowStephan Bergmann
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin
2014-11-05markup with event type not checker typeCaolán McNamara
2014-11-03some coverity false positive markup effortsCaolán McNamara
2014-11-03fix sparc buildNoel Grandin
2014-10-30Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini
2014-10-30coverity#704134 silence Resource leak in objectCaolán McNamara
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin