/* -*- 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 _EDGLBLDC_HXX #define _EDGLBLDC_HXX #include class SwSection; class SwTOXBase; class SwTOXBaseSection; enum GlobalDocContentType { GLBLDOC_UNKNOWN, GLBLDOC_TOXBASE, GLBLDOC_SECTION }; class SwGlblDocContent { GlobalDocContentType eType; sal_uLong nDocPos; union { const SwTOXBase* pTOX; const SwSection* pSect; } PTR; public: SwGlblDocContent( sal_uLong nPos ); SwGlblDocContent( const SwTOXBaseSection* pTOX ); SwGlblDocContent( const SwSection* pSect ); /// Query contents. GlobalDocContentType GetType() const { return eType; } const SwSection* GetSection() const { return GLBLDOC_SECTION == eType ? PTR.pSect : 0; } const SwTOXBase* GetTOX() const { return GLBLDOC_TOXBASE == eType ? PTR.pTOX : 0; } sal_uLong GetDocPos() const { return nDocPos; } /// For sorting. inline int operator==( const SwGlblDocContent& rCmp ) const { return GetDocPos() == rCmp.GetDocPos(); } inline int operator<( const SwGlblDocContent& rCmp ) const { return GetDocPos() < rCmp.GetDocPos(); } }; class SwGlblDocContents : public o3tl::sorted_vector > { public: ~SwGlblDocContents() { DeleteAndDestroyAll(); } }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /collabora/co-2021'>distro/collabora/co-2021 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2014-03-25update creditsChristian Lohmaier
2014-03-25fdo#76568 remove BerkeleyDB from license textAndras Timar
2014-02-23Update readme.xrmDouglas Mencken
2014-01-03Update copyright in NOTICE to 2014Caolán McNamara
2014-01-03Update of LICENSE documentAndras Timar
2013-12-13Targetted text updates, with seasonable changes before l10n freeze.Michael Meeks
2013-11-17bugs.freedesktop.org -> bugs.libreoffice.orgAndras Timar
2013-11-08instsetoo_native: shouldn't need instdir in include pathMichael Stahl
2013-10-31readlicense_oo: stop delivering files to OUTDIRMichael Stahl
2013-10-28gbuild: set Package default target to INSTDIRMichael Stahl
2013-10-16Resolves: #i123481# - Paragraph should have a language to mark it localizableAriel Constenla-Haile
2013-09-11tweak README for Linux a bitMichael Stahl
2013-09-11Bin outdated and overly specific "requirements" for OS X and WindowsTor Lillqvist
2013-09-10use $(PRODUCTNAME) variable for READMEMichael Stahl
2013-09-09install whole sdk using filelistsMatúš Kukan
2013-09-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar
2013-07-19fdo#67061 bring install readme in sync with changed realityLionel Elie Mamane
2013-06-28credits: add back "developers not committing code since 2010-09-28"Christian Lohmaier
2013-06-23update creditsChristian Lohmaier
2013-06-20remove last uses of config 'GUI' variableMatúš Kukan
2013-06-05Update LICENSE documentAndras Timar
2013-05-04nuke MathMLDTDDavid Tardon
2013-04-29fdo#33370 Readme file could be easier to followJan Bobisud
2013-03-25Remove unneeded project and projectroot parametersZolnai Tamás
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks
2013-02-28remove all d.lstMichael Stahl
2013-02-16Readme tweaksAndras Timar
2013-02-05scp2: copy the install script to the tarball on LinuxMiklos Vajna
2013-02-02Fix mixed unix/dos endnlines.Tomas Chvatal
2013-01-31fdo#46706 Windows 2000 is not supported any moreAndras Timar
2013-01-26gbuild: fix silly "expandtabs" in makefile VIM modelinesMichael Stahl
2013-01-26update LICENSE documentAndras Timar
2012-12-30add runtime deps for custom targetsDavid Tardon
2012-12-29rethink external executable setupDavid Tardon
2012-12-25Get rid of (most uses of) GUITor Lillqvist
2012-12-25convert external to gbuildPeter Foley
2012-12-05Bye bye ODMA (LICENSE.odt)Andras Timar
2012-12-05Bye bye ODMATor Lillqvist
2012-12-02move setting up of ext. executables out of gbuild.mkDavid Tardon
2012-12-02Make qtz work in UIZolnai Tamás
2012-11-20fix readlicense_oo makefile, po file movedAndras Timar
2012-11-20Merge branch 'feature/killsdf'Andras Timar
2012-11-20Reardme.xrm move up one directoryZolnai Tamás