merge the formfield patch from ooo-build
[ooovba.git] / sal / osl / unx / file_impl.hxx
bloba1b0da6f962ae46594282ed2dc31f43a715bc91f
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: $
10 * $Revision: $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_FILE_IMPL_HXX
32 #define INCLUDED_FILE_IMPL_HXX
34 #include "osl/file.h"
35 #include <stddef.h>
37 struct DirectoryItem_Impl
39 sal_Int32 m_RefCount;
41 rtl_uString * m_ustrFilePath; /* holds native file name */
42 unsigned char m_DType;
44 explicit DirectoryItem_Impl(
45 rtl_uString * ustrFilePath, unsigned char DType = 0);
46 ~DirectoryItem_Impl();
48 static void * operator new(size_t n);
49 static void operator delete (void * p, size_t);
51 void acquire(); /* @see osl_acquireDirectoryItem() */
52 void release(); /* @see osl_releaseDirectoryItem() */
54 oslFileType getFileType() const;
57 #endif /* INCLUDED_FILE_IMPL_HXX */