/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef SC_NAVSETT_HXX #define SC_NAVSETT_HXX #include #include /** Contains settings of the navigator listbox. This includes the expand state of each listbox entry and the index of the selected entry and sub entry. */ class ScNavigatorSettings { private: ::std::vector< BOOL > maExpandedVec; /// Array of Booleans for expand state. USHORT mnRootSelected; /// Index of selected root entry. ULONG mnChildSelected; /// Index of selected child entry. public: ScNavigatorSettings(); inline void SetExpanded( USHORT nIndex, BOOL bExpand ) { maExpandedVec[ nIndex ] = bExpand; } inline BOOL IsExpanded( USHORT nIndex ) const { return maExpandedVec[ nIndex ]; } inline void SetRootSelected( USHORT nIndex ) { mnRootSelected = nIndex; } inline USHORT GetRootSelected() const { return mnRootSelected; } inline void SetChildSelected( ULONG nIndex ) { mnChildSelected = nIndex; } inline ULONG GetChildSelected() const { return mnChildSelected; } }; #endif // SC_NAVSETT_HXX abora/cd-5.3-3.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-02-09Formatting changes across all modulesChris Sherlock
+ Removed comment cruft + Tab formatting in number of files + Some commented out code removed + Tab characters replaced with spaces + Newline cleanup in quite a few files + Tweak header guard #endifs Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc Reviewed-on: https://gerrit.libreoffice.org/22221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-07-17com::sun::uno->css in avmedia and animationsNoel Grandin
Change-Id: Ie4365a488728c39fedacae7650b4b90260e7e44a Reviewed-on: https://gerrit.libreoffice.org/17153 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-06tdf#88206 Change uses of cppu::WeakImplHelper* etc.Takeshi Abe
to the variadic variants, in avmedia. Change-Id: I7fe65771ea5e0d30c7906d0d33acdcbe9e8aa3ff Reviewed-on: https://gerrit.libreoffice.org/16647 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-09Remove unused create member functionsStephan Bergmann
Change-Id: I65c77f32e076a0bc5eae2c0cf4626eebfd141972