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
300b39cc
Kaydet (Commit)
300b39cc
authored
Ock 13, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't create lock files for unit tests
special thanks to Stephan for the configuration part
üst
10b10580
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
0 deletions
+50
-0
Common.xcs
officecfg/registry/schema/org/openoffice/Office/Common.xcs
+7
-0
docfile.cxx
sfx2/source/doc/docfile.cxx
+30
-0
modifications.xcd
test/user-template/registry/modifications.xcd
+13
-0
No files found.
officecfg/registry/schema/org/openoffice/Office/Common.xcs
Dosyayı görüntüle @
300b39cc
...
...
@@ -6269,6 +6269,13 @@
</info>
<value>
true
</value>
</prop>
<prop
oor:name=
"UseLocking"
oor:type=
"xs:boolean"
>
<info>
<desc>
Allows to specify whether locking should be used at all.
Use this setting only for debugging purpose.
</desc>
</info>
<value>
true
</value>
</prop>
<prop
oor:name=
"ShowLinkWarningDialog"
oor:type=
"xs:boolean"
>
<info>
<author>
THB
</author>
...
...
sfx2/source/doc/docfile.cxx
Dosyayı görüntüle @
300b39cc
...
...
@@ -202,6 +202,31 @@ sal_Bool IsOOoLockFileUsed()
return
bOOoLockFileUsed
;
}
bool
IsLockingUsed
()
{
bool
bLocking
=
true
;
try
{
uno
::
Reference
<
uno
::
XInterface
>
xCommonConfig
=
::
comphelper
::
ConfigurationHelper
::
openConfig
(
::
comphelper
::
getProcessServiceFactory
(),
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/org.openoffice.Office.Common"
)
),
::
comphelper
::
ConfigurationHelper
::
E_STANDARD
);
if
(
!
xCommonConfig
.
is
()
)
throw
uno
::
RuntimeException
();
::
comphelper
::
ConfigurationHelper
::
readRelativeKey
(
xCommonConfig
,
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Misc/"
)
),
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"UseLocking"
)
)
)
>>=
bLocking
;
}
catch
(
const
uno
::
Exception
&
)
{
}
return
bLocking
;
}
}
// anonymous namespace
//==========================================================
...
...
@@ -996,6 +1021,11 @@ sal_Bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI )
// if user cancel the loading the ERROR_ABORT is set
sal_Bool
bResult
=
sal_False
;
if
(
!
IsLockingUsed
())
{
return
sal_True
;
}
if
(
!
GetURLObject
().
HasError
()
)
try
{
if
(
pImp
->
m_bLocked
&&
bLoading
&&
::
utl
::
LocalFileHelper
::
IsLocalFile
(
GetURLObject
().
GetMainURL
(
INetURLObject
::
NO_DECODE
)
)
)
...
...
test/user-template/registry/modifications.xcd
Dosyayı görüntüle @
300b39cc
...
...
@@ -27,6 +27,19 @@
* instead of those above.
-->
<oor:data
xmlns:oor=
"http://openoffice.org/2001/registry"
>
<oor:component-data
oor:name=
"Common"
oor:package=
"org.openoffice.Office"
>
<node
oor:name=
"Misc"
>
<prop
oor:name=
"UseDocumentSystemFileLocking"
>
<value>
false
</value>
</prop>
<prop
oor:name=
"UseDocumentOOoLockFile"
>
<value>
false
</value>
</prop>
<prop
oor:name=
"UseLocking"
>
<value>
false
</value>
</prop>
</node>
</oor:component-data>
<oor:component-data
oor:name=
"Paths"
oor:package=
"org.openoffice.Office"
>
<node
oor:name=
"Paths"
>
<node
oor:name=
"UIConfig"
oor:op=
"replace"
>
...
...
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