stgcache.hxx (bbfc4cc7) | stgcache.hxx (297a844a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 57 unchanged lines hidden (view full) --- 66 void IncRef() { nRef++; } 67 sal_uInt16 DecRef() { return --nRef; } 68 void SetPhysPageSize( short ); 69 sal_Int32 GetPhysPages() { return nPages; } 70 short GetPhysPageSize() { return nPageSize; } 71 SvStream* GetStrm() { return pStrm; } 72 void SetStrm( SvStream*, sal_Bool ); 73 void SetStrm( UCBStorageStream* ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 57 unchanged lines hidden (view full) --- 66 void IncRef() { nRef++; } 67 sal_uInt16 DecRef() { return --nRef; } 68 void SetPhysPageSize( short ); 69 sal_Int32 GetPhysPages() { return nPages; } 70 short GetPhysPageSize() { return nPageSize; } 71 SvStream* GetStrm() { return pStrm; } 72 void SetStrm( SvStream*, sal_Bool ); 73 void SetStrm( UCBStorageStream* ); |
74 sal_Bool IsWritable() { return pStrm->IsWritable(); } | 74 sal_Bool IsWritable() { return ( pStrm && pStrm->IsWritable() ); } |
75 sal_Bool Good() { return sal_Bool( nError == SVSTREAM_OK ); } 76 sal_Bool Bad() { return sal_Bool( nError != SVSTREAM_OK ); } 77 sal_uLong GetError() { return nError; } 78 void MoveError( StorageBase& ); 79 void SetError( sal_uLong ); 80 void ResetError(); 81 sal_Bool Open( const String& rName, StreamMode ); 82 void Close(); --- 46 unchanged lines hidden --- | 75 sal_Bool Good() { return sal_Bool( nError == SVSTREAM_OK ); } 76 sal_Bool Bad() { return sal_Bool( nError != SVSTREAM_OK ); } 77 sal_uLong GetError() { return nError; } 78 void MoveError( StorageBase& ); 79 void SetError( sal_uLong ); 80 void ResetError(); 81 sal_Bool Open( const String& rName, StreamMode ); 82 void Close(); --- 46 unchanged lines hidden --- |