xref: /trunk/main/fpicker/source/unx/gnome/SalGtkFolderPicker.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
110ce8018SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
310ce8018SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
410ce8018SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
510ce8018SAndrew Rist  * distributed with this work for additional information
610ce8018SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
710ce8018SAndrew Rist  * to you under the Apache License, Version 2.0 (the
810ce8018SAndrew Rist  * "License"); you may not use this file except in compliance
910ce8018SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
1110ce8018SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
1310ce8018SAndrew Rist  * Unless required by applicable law or agreed to in writing,
1410ce8018SAndrew Rist  * software distributed under the License is distributed on an
1510ce8018SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1610ce8018SAndrew Rist  * KIND, either express or implied.  See the License for the
1710ce8018SAndrew Rist  * specific language governing permissions and limitations
1810ce8018SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
2010ce8018SAndrew Rist  *************************************************************/
2110ce8018SAndrew Rist 
2210ce8018SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SALGTKFOLDERPICKER_HXX_
25cdf0e10cSrcweir #define _SALGTKFOLDERPICKER_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir //_______________________________________________________________________________________________________________________
28cdf0e10cSrcweir //  includes of other projects
29cdf0e10cSrcweir //_______________________________________________________________________________________________________________________
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #ifndef _CPPUHELPER_COMPBASE3_HXX_
32cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx>
33cdf0e10cSrcweir #endif
34cdf0e10cSrcweir 
35cdf0e10cSrcweir #ifndef _SALGTKPICKER_HXX_
36cdf0e10cSrcweir #include "SalGtkPicker.hxx"
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir 
39cdf0e10cSrcweir #include <memory>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir #ifndef _RTL_USTRING_H_
42cdf0e10cSrcweir #include <rtl/ustring.hxx>
43cdf0e10cSrcweir #endif
44cdf0e10cSrcweir 
45cdf0e10cSrcweir #include <list>
46cdf0e10cSrcweir 
47cdf0e10cSrcweir //----------------------------------------------------------
48cdf0e10cSrcweir // class declaration
49cdf0e10cSrcweir //----------------------------------------------------------
50cdf0e10cSrcweir 
51cdf0e10cSrcweir class SalGtkFolderPicker :
52cdf0e10cSrcweir         public SalGtkPicker,
53cdf0e10cSrcweir     public cppu::WeakImplHelper3<
54cdf0e10cSrcweir     ::com::sun::star::ui::dialogs::XFolderPicker,
55cdf0e10cSrcweir     ::com::sun::star::lang::XServiceInfo,
56cdf0e10cSrcweir         ::com::sun::star::util::XCancellable >
57cdf0e10cSrcweir {
58cdf0e10cSrcweir     public:
59cdf0e10cSrcweir 
60cdf0e10cSrcweir         // constructor
61cdf0e10cSrcweir         SalGtkFolderPicker( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceMgr );
62cdf0e10cSrcweir 
63cdf0e10cSrcweir         //------------------------------------------------------------------------------------
64cdf0e10cSrcweir         // XExecutableDialog functions
65cdf0e10cSrcweir         //------------------------------------------------------------------------------------
66cdf0e10cSrcweir 
67cdf0e10cSrcweir         virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle )
68cdf0e10cSrcweir             throw( ::com::sun::star::uno::RuntimeException );
69cdf0e10cSrcweir 
70cdf0e10cSrcweir         virtual sal_Int16 SAL_CALL execute(  )
71cdf0e10cSrcweir             throw( ::com::sun::star::uno::RuntimeException );
72cdf0e10cSrcweir 
73cdf0e10cSrcweir         //------------------------------------------------------------------------------------
74cdf0e10cSrcweir         // XFolderPicker functions
75cdf0e10cSrcweir         //------------------------------------------------------------------------------------
76cdf0e10cSrcweir 
77cdf0e10cSrcweir         virtual void SAL_CALL setDisplayDirectory( const rtl::OUString& rDirectory )
78cdf0e10cSrcweir             throw( com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException );
79cdf0e10cSrcweir 
80cdf0e10cSrcweir         virtual rtl::OUString SAL_CALL getDisplayDirectory(  )
81cdf0e10cSrcweir             throw( com::sun::star::uno::RuntimeException );
82cdf0e10cSrcweir 
83cdf0e10cSrcweir         virtual rtl::OUString SAL_CALL getDirectory( )
84cdf0e10cSrcweir             throw( com::sun::star::uno::RuntimeException );
85cdf0e10cSrcweir 
86cdf0e10cSrcweir         virtual void SAL_CALL setDescription( const rtl::OUString& rDescription )
87cdf0e10cSrcweir             throw( com::sun::star::uno::RuntimeException );
88cdf0e10cSrcweir 
89cdf0e10cSrcweir 
90cdf0e10cSrcweir         //------------------------------------------------
91cdf0e10cSrcweir         // XServiceInfo
92cdf0e10cSrcweir         //------------------------------------------------
93cdf0e10cSrcweir 
94cdf0e10cSrcweir         virtual ::rtl::OUString SAL_CALL getImplementationName(  )
95cdf0e10cSrcweir             throw(::com::sun::star::uno::RuntimeException);
96cdf0e10cSrcweir 
97cdf0e10cSrcweir         virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
98cdf0e10cSrcweir             throw(::com::sun::star::uno::RuntimeException);
99cdf0e10cSrcweir 
100cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  )
101cdf0e10cSrcweir             throw(::com::sun::star::uno::RuntimeException);
102cdf0e10cSrcweir 
103cdf0e10cSrcweir         //------------------------------------------------
104cdf0e10cSrcweir         // XCancellable
105cdf0e10cSrcweir         //------------------------------------------------
106cdf0e10cSrcweir 
107cdf0e10cSrcweir         virtual void SAL_CALL cancel( )
108cdf0e10cSrcweir             throw( ::com::sun::star::uno::RuntimeException );
109cdf0e10cSrcweir 
110cdf0e10cSrcweir         //------------------------------------------------
111cdf0e10cSrcweir         // XEventListener
112cdf0e10cSrcweir         //------------------------------------------------
113cdf0e10cSrcweir 
114cdf0e10cSrcweir         virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent )
115cdf0e10cSrcweir             throw(::com::sun::star::uno::RuntimeException);
116cdf0e10cSrcweir 
117cdf0e10cSrcweir     private:
118cdf0e10cSrcweir         // prevent copy and assignment
119cdf0e10cSrcweir         SalGtkFolderPicker( const SalGtkFolderPicker& );
120cdf0e10cSrcweir         SalGtkFolderPicker& operator=( const SalGtkFolderPicker& );
121cdf0e10cSrcweir     private:
122*5e7dbebbSJohn Bampton         // to instantiate own services
123cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceMgr;
124cdf0e10cSrcweir 
125cdf0e10cSrcweir #if 0
126cdf0e10cSrcweir     public:
127cdf0e10cSrcweir          virtual ~SalGtkFolderPicker();
128cdf0e10cSrcweir #endif
129cdf0e10cSrcweir };
130cdf0e10cSrcweir 
131cdf0e10cSrcweir #endif // _SALGTKFOLDERPICKER_HXX_
132