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 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_desktop.hxx"
26 
27 #include "rtl/string.h"
28 #include "cppuhelper/exc_hlp.hxx"
29 #include "com/sun/star/uno/XComponentContext.hpp"
30 #include "com/sun/star/xml/dom/XDocument.hpp"
31 #include "com/sun/star/xml/xpath/XXPathAPI.hpp"
32 #include "dp_misc.h"
33 #include "dp_scriptbackenddb.hxx"
34 
35 
36 namespace css = ::com::sun::star;
37 using namespace ::com::sun::star::uno;
38 using ::rtl::OUString;
39 
40 #define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/script-registry/2010"
41 #define NS_PREFIX "script"
42 #define ROOT_ELEMENT_NAME "script-backend-db"
43 #define KEY_ELEMENT_NAME "script"
44 
45 namespace dp_registry {
46 namespace backend {
47 namespace script {
48 
ScriptBackendDb(Reference<XComponentContext> const & xContext,::rtl::OUString const & url)49 ScriptBackendDb::ScriptBackendDb(
50     Reference<XComponentContext> const &  xContext,
51     ::rtl::OUString const & url):RegisteredDb(xContext, url)
52 {
53 
54 }
55 
getDbNSName()56 OUString ScriptBackendDb::getDbNSName()
57 {
58     return OUSTR(EXTENSION_REG_NS);
59 }
60 
getNSPrefix()61 OUString ScriptBackendDb::getNSPrefix()
62 {
63     return OUSTR(NS_PREFIX);
64 }
65 
getRootElementName()66 OUString ScriptBackendDb::getRootElementName()
67 {
68     return OUSTR(ROOT_ELEMENT_NAME);
69 }
70 
getKeyElementName()71 OUString ScriptBackendDb::getKeyElementName()
72 {
73     return OUSTR(KEY_ELEMENT_NAME);
74 }
75 
76 
77 
78 } // namespace executable
79 } // namespace backend
80 } // namespace dp_registry
81 
82