/************************************************************************* * * $RCSfile: rscmgr.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: pl $ $Date: 2001-10-10 11:51:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses * * - GNU Lesser General Public License Version 2.1 * - Sun Industry Standards Source License Version 1.1 * * Sun Microsystems Inc., October, 2000 * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2000 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library 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 for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * * Sun Industry Standards Source License Version 1.1 * ================================================= * The contents of this file are subject to the Sun Industry Standards * Source License Version 1.1 (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.openoffice.org/license.html. * * Software provided under this License is provided on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. * See the License for the specific provisions governing your rights and * obligations concerning the Software. * * The Initial Developer of the Original Code is: Sun Microsystems, Inc. * * Copyright: 2000 by Sun Microsystems, Inc. * * All Rights Reserved. * * Contributor(s): _______________________________________ * * ************************************************************************/ #ifndef _RSCMGR_HXX #define _RSCMGR_HXX #ifndef _RSCALL_H #include #endif #ifndef _RSCERROR_H #include #endif #ifndef _RSCHASH_HXX #include #endif #ifndef _RSCTOP_HXX #include #endif #ifndef _RSCCLASS_HXX #include #endif /******************* R s c M g r *****************************************/ class RscMgr : public RscClass { struct RscMgrInst { RscId aRefId; // nRefId = Referenz Identifier BOOL bDflt; // Ist Default void Create(){ aRefId.Create(); bDflt = TRUE; } void Destroy(){ aRefId.Destroy(); } }; ERRTYPE IsToDeep( const RSCINST & rInst, USHORT nDeep = 0 ); public: RscMgr( HASHID nId, USHORT nTypId, RscTop * pSuperCl ); void SetToDefault( const RSCINST & rInst ); BOOL IsDefault( const RSCINST & rInst ); BOOL IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ); RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, BOOL ); void Destroy( const RSCINST & rInst ); USHORT Size(); void WriteSrcHeader( const RSCINST & aInst, FILE * fOutput, RscTypCont * pTC, USHORT nTab, const RscId & rId, const char * ); void WriteSrc( const RSCINST & rInst, FILE * fOutput, RscTypCont * pTC, USHORT nTab, const char * ); ERRTYPE WriteRcHeader( const RSCINST & rInst, RscWriteRc & aMem, RscTypCont * pTC, const RscId & rId, USHORT, BOOL bExtra ); ERRTYPE WriteRc( const RSCINST & rInst, RscWriteRc & aMem, RscTypCont * pTC, USHORT, BOOL bExtra ); ERRTYPE WriteHxxHeader( const RSCINST & rInst, FILE * fOutput, RscTypCont * pTC, const RscId & rId ); ERRTYPE WriteHxx( const RSCINST & rInst, FILE * fOutput, RscTypCont * pTC, const RscId & rId ); ERRTYPE WriteCxxHeader( const RSCINST & rInst, FILE * fOutput, RscTypCont * pTC, const RscId & rId ); ERRTYPE WriteCxx( const RSCINST & rInst, FILE * fOutput, RscTypCont * pTC, const RscId & rId ); BOOL IsConsistent( const RSCINST & rInst, RscInconsList * pList = NULL ); ERRTYPE GetRef( const RSCINST & rInst, RscId * ); ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId ); }; #endif //_RSCMGR_HXX o/collabora/lof-4.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-11-07Revert "Reverts a commit series that cripple windows ci."Caolán McNamara
2016-11-05Reverts a commit series that cripple windows ci.Norbert Thiebaud
2016-11-04unify color selectorsCaolán McNamara
2016-10-05Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-07-11sw: prefix members of SwColumnPageMiklos Vajna
2016-06-06Convert DeactivePage return code to scoped enumNoel Grandin
2016-05-23loplugin:unusedmethods in swNoel Grandin
2015-11-25bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-pointRobinson Tryon
2015-10-16convert Link<> to typedNoel Grandin
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-10-12convert Link<> to typedNoel Grandin
2015-09-08convert Link<> to typedNoel Grandin
2015-08-26Convert vcl Button Link<> click handler to typed Link<Button*,void>Noel Grandin
2015-07-22loplugin:unusedmethods sw(part2)Noel Grandin
2015-05-12sw: Rename some variables.Jan Holesovsky
2015-04-28Merge remote-tracking branch 'origin/feature/vclptr'Michael Meeks
2015-04-28SfxTabPage::DeactivatePage wants to return SfxTabPage::sfxpgStephan Bergmann
2015-04-17Fix SfxTabPage creation to use VclPtr.Michael Meeks
2015-04-17sw: convert new to ::Create.Noel Grandin
2015-04-10vclwidget: change all vcl::window fields to be wrapped in VclPtrNoel Grandin
2015-04-09vcl: VclPtr conversion in swNoel Grandin
2015-03-23loplugin:constantfunction: swNoel Grandin
2015-01-07Resolves: fdo#87612 don't overwrite users input if the value is unchangedCaolán McNamara
2014-09-23fdo#82577: Handle WindowNoel Grandin
2014-06-11Change SfxTabPage ctor SfxItemSet param from ref to pointerStephan Bergmann
2014-06-11Change SfxTabPage::Reset param from ref to pointerStephan Bergmann
2014-06-10Change SfxTabPage::FillItemSet param from ref to pointerStephan Bergmann
2014-06-03sw: fix include guardsThomas Arnhold
2014-05-27sw: move sw/source/core/uibase to sw/source/uibaseMichael Stahl