]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/corefoundation/stdpaths.h
added wxWindow::GetWindowBorderSize()
[wxWidgets.git] / include / wx / mac / corefoundation / stdpaths.h
CommitLineData
726b98e9
DE
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/mac/corefoundation/stdpaths.h
3// Purpose: wxStandardPaths for CoreFoundation systems
4// Author: David Elliott
5// Modified by:
6// Created: 2004-10-27
7// RCS-ID: $Id$
8// Copyright: (c) 2004 David Elliott
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MAC_STDPATHS_H_
13#define _WX_MAC_STDPATHS_H_
14
15struct __CFBundle;
3af9f2de
VZ
16struct __CFURL;
17
18typedef const __CFURL * wxCFURLRef;
19typedef __CFBundle * wxCFBundleRef;
726b98e9
DE
20
21// ----------------------------------------------------------------------------
22// wxStandardPaths
23// ----------------------------------------------------------------------------
24
25class WXDLLIMPEXP_BASE wxStandardPathsCF : public wxStandardPathsBase
26{
27public:
28 wxStandardPathsCF();
d3c7fc99 29 virtual ~wxStandardPathsCF();
726b98e9 30
726b98e9 31 // wxMac specific: allow user to specify a different bundle
3af9f2de
VZ
32 wxStandardPathsCF(wxCFBundleRef bundle);
33 void SetBundle(wxCFBundleRef bundle);
726b98e9
DE
34
35 // implement base class pure virtuals
ac7ad70d 36 virtual wxString GetExecutablePath() const;
726b98e9
DE
37 virtual wxString GetConfigDir() const;
38 virtual wxString GetUserConfigDir() const;
39 virtual wxString GetDataDir() const;
40 virtual wxString GetLocalDataDir() const;
41 virtual wxString GetUserDataDir() const;
42 virtual wxString GetPluginsDir() const;
3af9f2de
VZ
43 virtual wxString GetResourcesDir() const;
44 virtual wxString GetLocalizedResourcesDir(const wxChar *lang,
45 ResourceCat category) const;
17af82fb 46 virtual wxString GetDocumentsDir() const;
3af9f2de 47
726b98e9 48protected:
3af9f2de
VZ
49 // this function can be called with any of CFBundleCopyXXXURL function
50 // pointer as parameter
51 wxString GetFromFunc(wxCFURLRef (*func)(wxCFBundleRef)) const;
52
53 wxCFBundleRef m_bundle;
726b98e9
DE
54};
55
fc480dc1
DE
56// If using UNIX (i.e. darwin) then use UNIX standard paths
57#if defined(__UNIX__)
726b98e9 58#include "wx/unix/stdpaths.h"
fc480dc1
DE
59#else
60// If compiling wxMac for CarbonLib then we are wxStandardPaths
61class WXDLLIMPEXP_BASE wxStandardPaths: public wxStandardPathsCF
62{
63};
726b98e9
DE
64#endif
65
66#endif // _WX_MAC_STDPATHS_H_