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
95692662
Kaydet (Commit)
95692662
authored
Ock 30, 2008
tarafından
Mikhail Voitenko
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
store checkbox state in configuration
üst
19e7dac1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
32 deletions
+39
-32
Helper.java
swext/mediawiki/src/com/sun/star/wiki/Helper.java
+33
-29
WikiEditSettingDialog.java
...ediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
+6
-3
No files found.
swext/mediawiki/src/com/sun/star/wiki/Helper.java
Dosyayı görüntüle @
95692662
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: Helper.java,v $
*
* $Revision: 1.
8
$
* $Revision: 1.
9
$
*
* last change: $Author: mav $ $Date: 2008-01-
29 11:01:28
$
* last change: $Author: mav $ $Date: 2008-01-
30 09:24:49
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -67,6 +67,7 @@ import com.sun.star.task.XPasswordContainer;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.UnoRuntime
;
import
com.sun.star.uno.XComponentContext
;
import
com.sun.star.util.XChangesBatch
;
import
java.net.*
;
import
java.io.*
;
import
java.util.Hashtable
;
...
...
@@ -242,22 +243,20 @@ public class Helper
}
}
return
(
m_bShowInBrowser
!=
Boolean
.
FALSE
);
return
m_bShowInBrowser
.
booleanValue
(
);
}
synchronized
protected
static
void
SetShowInBrowserByDefault
(
XComponentContext
xContext
,
boolean
bValue
)
{
try
{
Boolean
bShowInBrowser
=
new
Boolean
(
bValue
);
m_
bShowInBrowser
=
new
Boolean
(
bValue
);
XNameContainer
xContainer
=
Helper
.
GetConfigNameContainer
(
xContext
,
"org.openoffice.Office.Custom.WikiExtension/Settings"
);
if
(
xContainer
.
hasByName
(
"PreselectShowBrowser"
)
)
xContainer
.
replaceByName
(
"PreselectShowBrowser"
,
bShowInBrowser
);
else
xContainer
.
insertByName
(
"PreselectShowBrowser"
,
bShowInBrowser
);
m_bShowInBrowser
=
bShowInBrowser
;
XPropertySet
xProps
=
Helper
.
GetConfigProps
(
xContext
,
"org.openoffice.Office.Custom.WikiExtension/Settings"
);
xProps
.
setPropertyValue
(
"PreselectShowBrowser"
,
new
Boolean
(
bValue
)
);
XChangesBatch
xBatch
=
(
XChangesBatch
)
UnoRuntime
.
queryInterface
(
XChangesBatch
.
class
,
xProps
);
if
(
xBatch
!=
null
)
xBatch
.
commitChanges
();
}
catch
(
Exception
e
)
{
...
...
@@ -590,7 +589,7 @@ public class Helper
return
xConfigurationProvider
;
}
protected
static
XNameContainer
GetConfigNameContainer
(
XComponentContext
xContext
,
String
sNodepath
)
protected
static
Object
GetConfig
(
XComponentContext
xContext
,
String
sNodepath
,
boolean
bWriteAccess
)
throws
com
.
sun
.
star
.
uno
.
Exception
{
if
(
xContext
==
null
||
sNodepath
==
null
)
...
...
@@ -602,32 +601,37 @@ public class Helper
Object
[]
aArgs
=
new
Object
[
1
];
aArgs
[
0
]
=
aVal
;
Object
oSettings
=
GetConfigurationProvider
(
xContext
).
createInstanceWithArguments
(
"com.sun.star.configuration.ConfigurationUpdateAccess"
,
return
GetConfigurationProvider
(
xContext
).
createInstanceWithArguments
(
(
bWriteAccess
?
"com.sun.star.configuration.ConfigurationUpdateAccess"
:
"com.sun.star.configuration.ConfigurationAccess"
),
aArgs
);
XNameContainer
xContainer
=
(
XNameContainer
)
UnoRuntime
.
queryInterface
(
XNameContainer
.
class
,
oSettings
);
if
(
xContainer
==
null
)
}
protected
static
XPropertySet
GetConfigProps
(
XComponentContext
xContext
,
String
sNodepath
)
throws
com
.
sun
.
star
.
uno
.
Exception
{
XPropertySet
xProps
=
(
XPropertySet
)
UnoRuntime
.
queryInterface
(
XPropertySet
.
class
,
GetConfig
(
xContext
,
sNodepath
,
true
)
);
if
(
xProps
==
null
)
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
();
return
x
Container
;
return
x
Props
;
}
protected
static
XNameAccess
GetConfigNameAccess
(
XComponentContext
xContext
,
String
sNodepath
)
protected
static
XNameContainer
GetConfigNameContainer
(
XComponentContext
xContext
,
String
sNodepath
)
throws
com
.
sun
.
star
.
uno
.
Exception
{
if
(
xContext
==
null
||
sNodepath
==
null
)
XNameContainer
xContainer
=
(
XNameContainer
)
UnoRuntime
.
queryInterface
(
XNameContainer
.
class
,
GetConfig
(
xContext
,
sNodepath
,
true
)
);
if
(
xContainer
==
null
)
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
();
PropertyValue
aVal
=
new
PropertyValue
();
aVal
.
Name
=
"nodepath"
;
aVal
.
Value
=
sNodepath
;
Object
[]
aArgs
=
new
Object
[
1
];
aArgs
[
0
]
=
aVal
;
return
xContainer
;
}
Object
oSettings
=
GetConfigurationProvider
(
xContext
).
createInstanceWithArguments
(
"com.sun.star.configuration.ConfigurationAccess"
,
aArgs
);
XNameAccess
xNameAccess
=
(
XNameAccess
)
UnoRuntime
.
queryInterface
(
XNameAccess
.
class
,
oSettings
);
protected
static
XNameAccess
GetConfigNameAccess
(
XComponentContext
xContext
,
String
sNodepath
)
throws
com
.
sun
.
star
.
uno
.
Exception
{
XNameAccess
xNameAccess
=
(
XNameAccess
)
UnoRuntime
.
queryInterface
(
XNameAccess
.
class
,
GetConfig
(
xContext
,
sNodepath
,
false
)
);
if
(
xNameAccess
==
null
)
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
();
...
...
@@ -895,7 +899,7 @@ public class Helper
{
sError
=
GetLocalizedString
(
xContext
,
nErrorID
);
if
(
sError
!=
null
&&
sArg
!=
null
)
sError
.
replaceAll
(
"
\\
$ARG1"
,
sArg
);
sError
.
replaceAll
(
"$ARG1"
,
sArg
);
sTitle
=
GetLocalizedString
(
xContext
,
nTitleID
);
}
...
...
swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
Dosyayı görüntüle @
95692662
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: WikiEditSettingDialog.java,v $
*
* $Revision: 1.
9
$
* $Revision: 1.
10
$
*
* last change: $Author: mav $ $Date: 2008-01-
29 11:01:28
$
* last change: $Author: mav $ $Date: 2008-01-
30 09:24:49
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -82,7 +82,10 @@ public class WikiEditSettingDialog extends WikiDialog
setting
=
ht
;
try
{
GetPropSet
(
"UrlField"
).
setPropertyValue
(
"Text"
,
ht
.
get
(
"Url"
));
XPropertySet
xUrlField
=
GetPropSet
(
"UrlField"
);
xUrlField
.
setPropertyValue
(
"Text"
,
ht
.
get
(
"Url"
)
);
xUrlField
.
setPropertyValue
(
"Enabled"
,
Boolean
.
FALSE
);
GetPropSet
(
"UsernameField"
).
setPropertyValue
(
"Text"
,
ht
.
get
(
"Username"
));
GetPropSet
(
"PasswordField"
).
setPropertyValue
(
"Text"
,
ht
.
get
(
"Password"
));
}
...
...
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