Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5cdfd181
Kaydet (Commit)
5cdfd181
authored
Ara 13, 2002
tarafından
Sarah Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#105112# #105005# old backends not supported
üst
5c6cc7db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
43 deletions
+36
-43
backendaccess.cxx
configmgr/source/backend/backendaccess.cxx
+27
-18
backendaccess.hxx
configmgr/source/backend/backendaccess.hxx
+4
-4
backendfactory.cxx
configmgr/source/backend/backendfactory.cxx
+3
-18
makefile.mk
configmgr/source/backend/makefile.mk
+2
-3
No files found.
configmgr/source/backend/backendaccess.cxx
Dosyayı görüntüle @
5cdfd181
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: backendaccess.cxx,v $
*
* $Revision: 1.
8
$
* $Revision: 1.
9
$
*
* last change: $Author: ssmith $ $Date: 2002-1
0-24 12:59:32
$
* last change: $Author: ssmith $ $Date: 2002-1
2-13 10:14:44
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -123,13 +123,12 @@ static rtl::OUString findBestLocale(
}
//------------------------------------------------------------------------------
static
NodeResult
merge
(
static
void
merge
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>&
aFactory
,
MergedComponentData
&
aData
,
const
uno
::
Sequence
<
uno
::
Reference
<
backenduno
::
XLayer
>
>&
aLayers
,
sal_Int32
aNbLayers
,
const
rtl
::
OUString
&
aLocale
,
const
AbsolutePath
&
aRootPath
)
const
rtl
::
OUString
&
aLocale
)
{
LayerMergeHandler
*
pMerger
=
new
LayerMergeHandler
(
aFactory
,
aData
,
OUString
());
uno
::
Reference
<
backenduno
::
XLayerHandler
>
xLayerMerger
(
pMerger
);
...
...
@@ -155,29 +154,36 @@ static NodeResult merge(
}
}
}
NodeInstance
retCode
(
aData
.
extractSchemaTree
(),
aRootPath
)
;
return
NodeResult
(
retCode
)
;
}
//------------------------------------------------------------------------------
NodeResult
BackendAccess
::
getNodeData
(
const
Node
Request
&
aRequest
,
INodeDataListener
*
aListener
)
ComponentResult
BackendAccess
::
getNodeData
(
const
Component
Request
&
aRequest
,
INodeDataListener
*
aListener
)
CFG_UNO_THROW_ALL
()
{
rtl
::
OUString
component
=
aRequest
.
get
Path
().
getModule
Name
().
toString
()
;
rtl
::
OUString
component
=
aRequest
.
get
Component
Name
().
toString
()
;
SchemaBuilder
*
schemaBuilder
=
new
backend
::
SchemaBuilder
(
component
)
;
uno
::
Reference
<
backenduno
::
XSchemaHandler
>
schemaHandler
=
schemaBuilder
;
uno
::
Sequence
<
uno
::
Reference
<
backenduno
::
XLayer
>
>
layers
;
uno
::
Reference
<
backenduno
::
XSchema
>
schema
;
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"configmgr::backend::BackendAccess"
,
"jb99855"
,
"configmgr: BackendAccess::getNodeData()"
);
RTL_LOGFILE_CONTEXT_TRACE1
(
aLog
,
"request path: %s"
,
RTL_LOGFILE_OU2A
(
aRequest
.
get
Path
().
toString
())
);
RTL_LOGFILE_CONTEXT_TRACE1
(
aLog
,
"request path: %s"
,
RTL_LOGFILE_OU2A
(
aRequest
.
get
ComponentName
().
toString
())
);
getSchemaAndLayers
(
aRequest
,
schema
,
layers
)
;
AbsolutePath
aRequestPath
=
AbsolutePath
::
makeModulePath
(
aRequest
.
getComponentName
(),
AbsolutePath
::
NoValidate
());
NodeRequest
aNodeRequest
(
aRequestPath
,
aRequest
.
getOptions
());
getSchemaAndLayers
(
aNodeRequest
,
schema
,
layers
)
;
schema
->
readSchema
(
schemaHandler
)
;
return
merge
(
mFactory
,
schemaBuilder
->
result
(),
layers
,
layers
.
getLength
(),
aRequest
.
getOptions
().
getLocale
(),
aRequest
.
getPath
())
;
merge
(
mFactory
,
schemaBuilder
->
result
(),
layers
,
layers
.
getLength
(),
aNodeRequest
.
getOptions
().
getLocale
());
ComponentInstance
retCode
(
schemaBuilder
->
result
().
extractSchemaTree
(),
schemaBuilder
->
result
().
extractTemplatesTree
(),
aRequest
.
getComponentName
())
;
return
ComponentResult
(
retCode
)
;
}
//------------------------------------------------------------------------------
...
...
@@ -217,9 +223,12 @@ NodeResult BackendAccess::getDefaultData(const NodeRequest& aRequest)
getSchemaAndLayers
(
aRequest
,
schema
,
layers
)
;
schema
->
readSchema
(
schemaHandler
)
;
return
merge
(
mFactory
,
schemaBuilder
->
result
(),
layers
,
layers
.
getLength
()
-
1
,
aRequest
.
getOptions
().
getLocale
(),
aRequest
.
getPath
())
;
merge
(
mFactory
,
schemaBuilder
->
result
(),
layers
,
layers
.
getLength
()
-
1
,
aRequest
.
getOptions
().
getLocale
());
NodeInstance
retCode
(
schemaBuilder
->
result
().
extractSchemaTree
(),
aRequest
.
getPath
())
;
return
NodeResult
(
retCode
)
;
}
//------------------------------------------------------------------------------
...
...
configmgr/source/backend/backendaccess.hxx
Dosyayı görüntüle @
5cdfd181
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: backendaccess.hxx,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author:
cyrillem $ $Date: 2002-06-13 16:45:3
4 $
* last change: $Author:
ssmith $ $Date: 2002-12-13 10:14:4
4 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -113,8 +113,8 @@ class BackendAccess : public IMergedDataProvider {
~
BackendAccess
(
void
)
;
// IMergedDataProvider
virtual
NodeResult
getNodeData
(
const
Node
Request
&
aRequest
,
INodeDataListener
*
aListener
=
NULL
)
virtual
ComponentResult
getNodeData
(
const
Component
Request
&
aRequest
,
INodeDataListener
*
aListener
=
NULL
)
CFG_UNO_THROW_ALL
()
;
virtual
void
removeRequestListener
(
INodeDataListener
*
aListener
)
CFG_NOTHROW
()
{}
...
...
configmgr/source/backend/backendfactory.cxx
Dosyayı görüntüle @
5cdfd181
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: backendfactory.cxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author:
jb $ $Date: 2002-10-24 15:33:0
5 $
* last change: $Author:
ssmith $ $Date: 2002-12-13 10:14:4
5 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -70,9 +70,7 @@
#ifndef CONFIGMGR_BACKEND_BACKENDACCESS_HXX_
#include "backendaccess.hxx"
#endif
#ifndef CONFIGMGR_BACKENDWRAP_HXX
#include "backendwrap.hxx"
#endif
#ifndef _COM_SUN_STAR_CONFIGURATION_CANNOTLOADCONFIGURATIONEXCEPTION_HPP_
#include <com/sun/star/configuration/CannotLoadConfigurationException.hpp>
...
...
@@ -250,19 +248,6 @@ rtl::Reference<IMergedDataProvider>
}
// -------------------------------------------------------------------------
rtl
::
Reference
<
IMergedDataProvider
>
BackendFactory
::
createSessionBackend
(
IConfigSession
*
_pSession
,
TypeConverterRef
const
&
_xTCV
)
{
rtl
::
Reference
<
IMergedDataProvider
>
xBackend
;
if
(
_pSession
)
xBackend
=
wrapSession
(
*
_pSession
,
_xTCV
);
return
xBackend
;
}
// -------------------------------------------------------------------------
BackendFactory
&
BackendFactory
::
instance
()
{
static
BackendFactory
aStaticFactory
;
...
...
configmgr/source/backend/makefile.mk
Dosyayı görüntüle @
5cdfd181
...
...
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.
9
$
# $Revision: 1.
10
$
#
# last change: $Author:
jb $ $Date: 2002-11-28 09:05:12
$
# last change: $Author:
ssmith $ $Date: 2002-12-13 10:14:47
$
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
...
...
@@ -89,7 +89,6 @@ SLOFILES=\
$(SLO)$/
updatedispatch.obj
\
$(SLO)$/
singlebackendadapter.obj
\
$(SLO)$/
backendaccess.obj
\
$(SLO)$/
backendwrap.obj
\
$(SLO)$/
backendfactory.obj
\
$(SLO)$/
importsvc.obj
\
$(SLO)$/
basicimporthandler.obj
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment