1*f7c60c9cSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*f7c60c9cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*f7c60c9cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*f7c60c9cSAndrew Rist * distributed with this work for additional information 6*f7c60c9cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*f7c60c9cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*f7c60c9cSAndrew Rist * "License"); you may not use this file except in compliance 9*f7c60c9cSAndrew Rist * with the License. You may obtain a copy of the License at 10*f7c60c9cSAndrew Rist * 11*f7c60c9cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*f7c60c9cSAndrew Rist * 13*f7c60c9cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*f7c60c9cSAndrew Rist * software distributed under the License is distributed on an 15*f7c60c9cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*f7c60c9cSAndrew Rist * KIND, either express or implied. See the License for the 17*f7c60c9cSAndrew Rist * specific language governing permissions and limitations 18*f7c60c9cSAndrew Rist * under the License. 19*f7c60c9cSAndrew Rist * 20*f7c60c9cSAndrew Rist *************************************************************/ 21*f7c60c9cSAndrew Rist 22*f7c60c9cSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _RSCLST_HXX 25cdf0e10cSrcweir #define _RSCLST_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _TOOLS_LIST_HXX 28cdf0e10cSrcweir #include <tools/list.hxx> 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir #include <rscall.h> 31cdf0e10cSrcweir 32cdf0e10cSrcweir class REResourceList; 33cdf0e10cSrcweir 34cdf0e10cSrcweir DECLARE_LIST( RESubResourceList, REResourceList * ) 35cdf0e10cSrcweir 36cdf0e10cSrcweir class REResourceList : public RESubResourceList 37cdf0e10cSrcweir { 38cdf0e10cSrcweir protected: 39cdf0e10cSrcweir REResourceList* pParent; 40cdf0e10cSrcweir RscId aRscId; //Id und Name des Resourceobjektes 41cdf0e10cSrcweir ByteString aClassName; 42cdf0e10cSrcweir sal_Bool bVisible; 43cdf0e10cSrcweir 44cdf0e10cSrcweir public: 45cdf0e10cSrcweir REResourceList(); 46cdf0e10cSrcweir REResourceList( REResourceList * pParentList, 47cdf0e10cSrcweir ByteString& rClassName, 48cdf0e10cSrcweir const RscId & rResourceID, 49cdf0e10cSrcweir sal_Bool bVisible = sal_False ); 50cdf0e10cSrcweir ~REResourceList(); 51cdf0e10cSrcweir GetParent()52cdf0e10cSrcweir REResourceList* GetParent() { return pParent; } GetObjName()53cdf0e10cSrcweir ByteString GetObjName() { return aRscId.GetName(); } GetClassName()54cdf0e10cSrcweir ByteString GetClassName() { return aClassName; } GetRscId()55cdf0e10cSrcweir RscId GetRscId() { return aRscId; } SetRscId(const RscId & rId)56cdf0e10cSrcweir void SetRscId( const RscId & rId ){ aRscId = rId; } 57cdf0e10cSrcweir SetVisible(sal_Bool bVis)58cdf0e10cSrcweir void SetVisible( sal_Bool bVis ) 59cdf0e10cSrcweir { bVisible = bVis; } IsVisible()60cdf0e10cSrcweir sal_Bool IsVisible() { return bVisible; } 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir 63cdf0e10cSrcweir #endif // _RSCLST_HXX 64