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
c8c062e2
Kaydet (Commit)
c8c062e2
authored
Kas 27, 2000
tarafından
Andreas Bille
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#80792#
üst
9b6f92dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
8 deletions
+39
-8
prov.cxx
ucb/source/ucp/file/prov.cxx
+39
-8
No files found.
ucb/source/ucp/file/prov.cxx
Dosyayı görüntüle @
c8c062e2
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: prov.cxx,v $
* $RCSfile: prov.cxx,v $
*
*
* $Revision: 1.
8
$
* $Revision: 1.
9
$
*
*
* last change: $Author:
hro $ $Date: 2000-11-22 12:26:41
$
* last change: $Author:
abi $ $Date: 2000-11-27 12:49:34
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -85,6 +85,9 @@
...
@@ -85,6 +85,9 @@
#ifndef _COM_SUN_STAR_UCB_FILESYSTEMNOTATION_HPP_
#ifndef _COM_SUN_STAR_UCB_FILESYSTEMNOTATION_HPP_
#include <com/sun/star/ucb/FileSystemNotation.hpp>
#include <com/sun/star/ucb/FileSystemNotation.hpp>
#endif
#endif
#ifndef _COM_SUN_STAR_BEANS_PROPERTYSTATE_HPP_
#include <com/sun/star/beans/PropertyState.hpp>
#endif
#ifndef _FILID_HXX_
#ifndef _FILID_HXX_
#include "filid.hxx"
#include "filid.hxx"
#endif
#endif
...
@@ -220,11 +223,33 @@ FileProvider::FileProvider( const uno::Reference< lang::XMultiServiceFactory >&
...
@@ -220,11 +223,33 @@ FileProvider::FileProvider( const uno::Reference< lang::XMultiServiceFactory >&
rtl
::
OUString
sProviderService
=
rtl
::
OUString
sProviderService
=
rtl
::
OUString
::
createFromAscii
(
"com.sun.star.configuration.ConfigurationProvider"
);
rtl
::
OUString
::
createFromAscii
(
"com.sun.star.configuration.ConfigurationProvider"
);
// New access to configuration with locally cached components
rtl
::
OUString
plugin
=
rtl
::
OUString
::
createFromAscii
(
"plugin"
);
uno
::
Any
aAny
;
aAny
<<=
plugin
;
beans
::
PropertyValue
aProp
(
rtl
::
OUString
::
createFromAscii
(
"servertype"
),
-
1
,
aAny
,
beans
::
PropertyState_DIRECT_VALUE
);
uno
::
Sequence
<
uno
::
Any
>
seq
(
1
);
seq
[
0
]
<<=
aProp
;
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
sProvider
(
sProvider
(
m_xMultiServiceFactory
->
createInstance
(
sProviderService
),
m_xMultiServiceFactory
->
createInstance
WithArguments
(
sProviderService
,
seq
),
uno
::
UNO_QUERY
);
uno
::
UNO_QUERY
);
/*
// Old access to configuration without locally cached components
uno::Reference< lang::XMultiServiceFactory >
sProvider(
m_xMultiServiceFactory->createInstance( sProviderService ),
uno::UNO_QUERY );
*/
rtl
::
OUString
sReaderService
=
rtl
::
OUString
sReaderService
=
rtl
::
OUString
::
createFromAscii
(
"com.sun.star.configuration.ConfigurationAccess"
);
rtl
::
OUString
::
createFromAscii
(
"com.sun.star.configuration.ConfigurationAccess"
);
...
@@ -286,18 +311,25 @@ FileProvider::FileProvider( const uno::Reference< lang::XMultiServiceFactory >&
...
@@ -286,18 +311,25 @@ FileProvider::FileProvider( const uno::Reference< lang::XMultiServiceFactory >&
rtl
::
OUString
aDir
rtl
::
OUString
aDir
=
xCfgMgr
->
substituteVariables
(
aDirectory
);
=
xCfgMgr
->
substituteVariables
(
aDirectory
);
osl
::
FileBase
::
getNormalizedPathFromFileURL
(
aDir
,
aUnqDir
);
// old,assuming URL: osl::FileBase::getNormalizedPathFromFileURL( aDir, aUnqDir );
// new, assuming system path:
osl
::
FileBase
::
normalizePath
(
aDir
,
aUnqDir
);
rtl
::
OUString
aAlias
rtl
::
OUString
aAlias
=
xCfgMgr
->
substituteVariables
(
aAliasName
);
=
xCfgMgr
->
substituteVariables
(
aAliasName
);
osl
::
FileBase
::
getNormalizedPathFromFileURL
(
aAlias
,
aUnqAl
);
// old, assuming URL: osl::FileBase::getNormalizedPathFromFileURL( aAlias, aUnqAl );
// new, assuming system path:
osl
::
FileBase
::
normalizePath
(
aAlias
,
aUnqAl
);
}
}
if
(
!
aUnqDir
.
getLength
()
)
if
(
!
aUnqDir
.
getLength
()
)
m_pMyShell
->
getUnqFromUrl
(
aDirectory
,
aUnqDir
);
osl
::
FileBase
::
normalizePath
(
aDirectory
,
aUnqDir
);
// m_pMyShell->getUnqFromUrl( aDirectory,aUnqDir );
if
(
!
aUnqAl
.
getLength
()
)
if
(
!
aUnqAl
.
getLength
()
)
m_pMyShell
->
getUnqFromUrl
(
aAliasName
,
aUnqAl
);
osl
::
FileBase
::
normalizePath
(
aAliasName
,
aUnqAl
);
// m_pMyShell->getUnqFromUrl( aAliasName,aUnqAl );
#ifdef UNX
#ifdef UNX
rtl
::
OUString
aRealUnqDir
;
rtl
::
OUString
aRealUnqDir
;
...
@@ -322,7 +354,6 @@ FileProvider::FileProvider( const uno::Reference< lang::XMultiServiceFactory >&
...
@@ -322,7 +354,6 @@ FileProvider::FileProvider( const uno::Reference< lang::XMultiServiceFactory >&
shell
::
MountPoint
(
aUnqAl
,
aUnqDir
)
);
shell
::
MountPoint
(
aUnqAl
,
aUnqDir
)
);
m_pMyShell
->
m_bFaked
=
true
;
m_pMyShell
->
m_bFaked
=
true
;
}
}
#endif
#endif
}
}
...
...
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