summaryrefslogtreecommitdiff
path: root/framework/source/inc
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-16 13:53:27 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-16 13:53:27 +0000
commit9e79ba4701dfe637f57f1a44ac338cff01710783 (patch)
tree86a2697f13d24a957c8f779656af13a0f2f03d23 /framework/source/inc
parentcafaab8edc3974cdc2584202923a9d9cc5248b3d (diff)
INTEGRATION: CWS docking4 (1.2.14); FILE MERGED
2004/11/04 15:26:04 cd 1.2.14.2: #i32100# Use preset handler to retrieve storages 2004/10/27 12:56:24 as 1.2.14.1: #i35699# handle missing configurations more gracefully
Diffstat (limited to 'framework/source/inc')
-rw-r--r--framework/source/inc/accelerators/presethandler.hxx59
1 files changed, 57 insertions, 2 deletions
diff --git a/framework/source/inc/accelerators/presethandler.hxx b/framework/source/inc/accelerators/presethandler.hxx
index e847e25459ec..3b06417cc62a 100644
--- a/framework/source/inc/accelerators/presethandler.hxx
+++ b/framework/source/inc/accelerators/presethandler.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: presethandler.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-09-20 10:08:05 $
+ * last change: $Author: obo $ $Date: 2004-11-16 14:53:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -142,6 +142,7 @@ class PresetHandler : private ThreadHelpBase // attention! Must be the first bas
static ::rtl::OUString RESOURCETYPE_MENUBAR();
static ::rtl::OUString RESOURCETYPE_TOOLBAR();
static ::rtl::OUString RESOURCETYPE_ACCELERATOR();
+ static ::rtl::OUString RESOURCETYPE_STATUSBAR();
//-------------------------------------------
// types
@@ -515,6 +516,60 @@ class PresetHandler : private ThreadHelpBase // attention! Must be the first bas
/** TODO */
void addStorageListener(IStorageListener* pListener);
void removeStorageListener(IStorageListener* pListener);
+
+ //-------------------------------------------
+ // helper
+
+ private:
+
+ //---------------------------------------
+ /** @short open a config path ignoring errors (catching exceptions).
+
+ @descr We catch only normal exceptions here - no runtime exceptions.
+
+ @param sPath
+ the configuration path, which should be opened.
+
+ @param eMode
+ the open mode (READ/READWRITE)
+
+ @param bShare
+ force using of the share layer instead of the user layer.
+
+ @return An opened storage in case method was successfully - null otherwise.
+ */
+ css::uno::Reference< css::embed::XStorage > impl_openPathIgnoringErrors(const ::rtl::OUString& sPath ,
+ sal_Int32 eMode ,
+ sal_Bool bShare);
+
+ //---------------------------------------
+ /** @short open a config path ignoring errors (catching exceptions).
+
+ @descr We catch only normal exceptions here - no runtime exceptions.
+ Further the path itself is tries in different versions (using locale
+ specific attributes).
+ e.g. "path/e-US" => "path/en" => "path/de"
+
+ @param sPath
+ the configuration path, which should be opened.
+ Its further used as out parameter too, so we can return the localized
+ path to the calli!
+
+ @param eMode
+ the open mode (READ/READWRITE)
+
+ @param bShare
+ force using of the share layer instead of the user layer.
+
+ @param aLocale
+ the start locale ...
+
+ @return An opened storage in case method was successfully - null otherwise.
+ */
+ css::uno::Reference< css::embed::XStorage > impl_openLocalizedPathIgnoringErrors( ::rtl::OUString& sPath ,
+ sal_Int32 eMode ,
+ sal_Bool bShare ,
+ const ::comphelper::Locale& aLocale);
};
} // namespace framework