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 #ifndef _SFX2_OPENGRF_HXX 24 #define _SFX2_OPENGRF_HXX 25 26 #include <memory> // auto_ptr 27 #include <svtools/filter.hxx> 28 #include <sfx2/dllapi.h> 29 30 struct SvxOpenGrf_Impl; 31 32 class SFX2_DLLPUBLIC SvxOpenGraphicDialog 33 { 34 public: 35 SvxOpenGraphicDialog ( const String& rTitle ); 36 ~SvxOpenGraphicDialog (); 37 38 short Execute(); 39 40 void SetPath( const String& rPath ); 41 void SetPath( const String& rPath, sal_Bool bLinkState ); 42 String GetPath() const; 43 44 int GetGraphic(Graphic&) const; 45 46 void EnableLink(sal_Bool); 47 void AsLink(sal_Bool); 48 sal_Bool IsAsLink() const; 49 50 String GetCurrentFilter() const; 51 void SetCurrentFilter(const String&); 52 53 void SetControlHelpIds( const sal_Int16* _pControlId, const char** _pHelpId ); 54 private: 55 // disable copy and assignment 56 SFX2_DLLPRIVATE SvxOpenGraphicDialog (const SvxOpenGraphicDialog&); 57 SFX2_DLLPRIVATE SvxOpenGraphicDialog& operator = ( const SvxOpenGraphicDialog & ); 58 59 const std::auto_ptr< SvxOpenGrf_Impl > mpImpl; 60 }; 61 62 #endif // _SVX_OPENGRF_HXX 63 64