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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef FPICKER_WIN32_VISTA_TYPES_HXX
25 #define FPICKER_WIN32_VISTA_TYPES_HXX
26 
27 //-----------------------------------------------------------------------------
28 // includes
29 //-----------------------------------------------------------------------------
30 
31 #include "comptr.hxx"
32 #include <shobjidl.h>
33 
34 //-----------------------------------------------------------------------------
35 // namespace
36 //-----------------------------------------------------------------------------
37 
38 #ifdef css
39     #error "Clash on using CSS as namespace define."
40 #else
41     #define css ::com::sun::star
42 #endif
43 
44 namespace fpicker{
45 namespace win32{
46 namespace vista{
47 
48 //-----------------------------------------------------------------------------
49 // types, const etcpp.
50 //-----------------------------------------------------------------------------
51 
52 typedef ComPtr< IFileDialog         , IID_IFileDialog                             > TFileDialog;
53 typedef ComPtr< IFileOpenDialog     , IID_IFileOpenDialog  , CLSID_FileOpenDialog > TFileOpenDialog;
54 typedef ComPtr< IFileSaveDialog     , IID_IFileSaveDialog  , CLSID_FileSaveDialog > TFileSaveDialog;
55 typedef ComPtr< IFileDialogEvents   , IID_IFileDialogEvents                       > TFileDialogEvents;
56 typedef ComPtr< IFileDialogCustomize, IID_IFileDialogCustomize                    > TFileDialogCustomize;
57 
58 } // namespace vista
59 } // namespace win32
60 } // namespace fpicker
61 
62 #undef css
63 
64 #endif // FPICKER_WIN32_VISTA_TYPES_HXX
65