1*ed2f6d3bSAndrew Rist /************************************************************** 2*ed2f6d3bSAndrew Rist * 3*ed2f6d3bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ed2f6d3bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ed2f6d3bSAndrew Rist * distributed with this work for additional information 6*ed2f6d3bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ed2f6d3bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ed2f6d3bSAndrew Rist * "License"); you may not use this file except in compliance 9*ed2f6d3bSAndrew Rist * with the License. You may obtain a copy of the License at 10*ed2f6d3bSAndrew Rist * 11*ed2f6d3bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ed2f6d3bSAndrew Rist * 13*ed2f6d3bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ed2f6d3bSAndrew Rist * software distributed under the License is distributed on an 15*ed2f6d3bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ed2f6d3bSAndrew Rist * KIND, either express or implied. See the License for the 17*ed2f6d3bSAndrew Rist * specific language governing permissions and limitations 18*ed2f6d3bSAndrew Rist * under the License. 19*ed2f6d3bSAndrew Rist * 20*ed2f6d3bSAndrew Rist *************************************************************/ 21*ed2f6d3bSAndrew Rist 22*ed2f6d3bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef INCLUDED_SHELL_SOURCE_BACKENDS_GCONFBE_GCONFACCESS_HXX 25cdf0e10cSrcweir #define INCLUDED_SHELL_SOURCE_BACKENDS_GCONFBE_GCONFACCESS_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "sal/config.h" 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include <cstddef> 30cdf0e10cSrcweir 31cdf0e10cSrcweir #include "com/sun/star/beans/Optional.hpp" 32cdf0e10cSrcweir #include "gconf/gconf-client.h" 33cdf0e10cSrcweir #include "sal/types.h" 34cdf0e10cSrcweir 35cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace uno { 36cdf0e10cSrcweir class Any; 37cdf0e10cSrcweir } } } } 38cdf0e10cSrcweir 39cdf0e10cSrcweir namespace gconfaccess { 40cdf0e10cSrcweir 41cdf0e10cSrcweir enum ConfigurationSetting 42cdf0e10cSrcweir { 43cdf0e10cSrcweir SETTING_PROXY_MODE, 44cdf0e10cSrcweir SETTING_PROXY_HTTP_HOST, 45cdf0e10cSrcweir SETTING_PROXY_HTTP_PORT, 46cdf0e10cSrcweir SETTING_PROXY_HTTPS_HOST, 47cdf0e10cSrcweir SETTING_PROXY_HTTPS_PORT, 48cdf0e10cSrcweir SETTING_PROXY_FTP_HOST, 49cdf0e10cSrcweir SETTING_PROXY_FTP_PORT, 50cdf0e10cSrcweir SETTING_NO_PROXY_FOR, 51cdf0e10cSrcweir SETTING_ENABLE_ACCESSIBILITY, 52cdf0e10cSrcweir SETTING_MAILER_PROGRAM, 53cdf0e10cSrcweir SETTING_WORK_DIRECTORY, 54cdf0e10cSrcweir SETTING_SOURCEVIEWFONT_NAME, 55cdf0e10cSrcweir SETTING_SOURCEVIEWFONT_HEIGHT, 56cdf0e10cSrcweir SETTING_USER_GIVENNAME, 57cdf0e10cSrcweir SETTING_USER_SURNAME, 58cdf0e10cSrcweir 59cdf0e10cSrcweir #ifdef ENABLE_LOCKDOWN 60cdf0e10cSrcweir 61cdf0e10cSrcweir SETTING_DISABLE_PRINTING, 62cdf0e10cSrcweir SETTING_USE_SYSTEM_FILE_DIALOG, 63cdf0e10cSrcweir SETTING_PRINTING_MODIFIES_DOCUMENT, 64cdf0e10cSrcweir SETTING_SHOW_ICONS_IN_MENUS, 65cdf0e10cSrcweir SETTING_SHOW_INACTIVE_MENUITEMS, 66cdf0e10cSrcweir SETTING_SHOW_FONT_PREVIEW, 67cdf0e10cSrcweir SETTING_SHOW_FONT_HISTORY, 68cdf0e10cSrcweir SETTING_ENABLE_OPENGL, 69cdf0e10cSrcweir SETTING_OPTIMIZE_OPENGL, 70cdf0e10cSrcweir SETTING_SAVE_DOCUMENT_WINDOWS, 71cdf0e10cSrcweir SETTING_SAVE_DOCUMENT_VIEW_INFO, 72cdf0e10cSrcweir SETTING_USE_SYSTEM_FONT, 73cdf0e10cSrcweir SETTING_USE_FONT_ANTI_ALIASING, 74cdf0e10cSrcweir SETTING_FONT_ANTI_ALIASING_MIN_PIXEL, 75cdf0e10cSrcweir SETTING_WARN_CREATE_PDF, 76cdf0e10cSrcweir SETTING_WARN_PRINT_DOC, 77cdf0e10cSrcweir SETTING_WARN_SAVEORSEND_DOC, 78cdf0e10cSrcweir SETTING_WARN_SIGN_DOC, 79cdf0e10cSrcweir SETTING_REMOVE_PERSONAL_INFO, 80cdf0e10cSrcweir SETTING_RECOMMEND_PASSWORD, 81cdf0e10cSrcweir SETTING_UNDO_STEPS, 82cdf0e10cSrcweir SETTING_SYMBOL_SET, 83cdf0e10cSrcweir SETTING_MACRO_SECURITY_LEVEL, 84cdf0e10cSrcweir SETTING_CREATE_BACKUP, 85cdf0e10cSrcweir SETTING_WARN_ALIEN_FORMAT, 86cdf0e10cSrcweir SETTING_AUTO_SAVE, 87cdf0e10cSrcweir SETTING_AUTO_SAVE_INTERVAL, 88cdf0e10cSrcweir SETTING_WRITER_DEFAULT_DOC_FORMAT, 89cdf0e10cSrcweir SETTING_IMPRESS_DEFAULT_DOC_FORMAT, 90cdf0e10cSrcweir SETTING_CALC_DEFAULT_DOC_FORMAT, 91cdf0e10cSrcweir 92cdf0e10cSrcweir #endif // ENABLE_LOCKDOWN 93cdf0e10cSrcweir 94cdf0e10cSrcweir SETTINGS_LAST 95cdf0e10cSrcweir }; 96cdf0e10cSrcweir 97cdf0e10cSrcweir struct ConfigurationValue 98cdf0e10cSrcweir { 99cdf0e10cSrcweir const ConfigurationSetting nSettingId; 100cdf0e10cSrcweir const gchar *GconfItem; 101cdf0e10cSrcweir const char *OOoConfItem; 102cdf0e10cSrcweir const sal_Bool bNeedsTranslation; 103cdf0e10cSrcweir const ConfigurationSetting nDependsOn; 104cdf0e10cSrcweir }; 105cdf0e10cSrcweir 106cdf0e10cSrcweir extern ConfigurationValue const ConfigurationValues[]; 107cdf0e10cSrcweir 108cdf0e10cSrcweir extern std::size_t const nConfigurationValues; 109cdf0e10cSrcweir 110cdf0e10cSrcweir com::sun::star::beans::Optional< com::sun::star::uno::Any > getValue( 111cdf0e10cSrcweir ConfigurationValue const & data); 112cdf0e10cSrcweir 113cdf0e10cSrcweir } 114cdf0e10cSrcweir 115cdf0e10cSrcweir #endif 116