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
6042ca02
Kaydet (Commit)
6042ca02
authored
Şub 01, 2008
tarafından
Mikhail Voitenko
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update the cached configuration data
üst
a294c354
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
84 deletions
+15
-84
WikiEditSettingDialog.java
...ediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
+3
-2
WikiEditorImpl.java
swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
+8
-79
WikiOptionsEventHandlerImpl.java
...ki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java
+4
-3
No files found.
swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
Dosyayı görüntüle @
6042ca02
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: WikiEditSettingDialog.java,v $
*
* $Revision: 1.1
3
$
* $Revision: 1.1
4
$
*
* last change: $Author: mav $ $Date: 2008-02-01 13:
25:31
$
* last change: $Author: mav $ $Date: 2008-02-01 13:
58:15
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -239,6 +239,7 @@ public class WikiEditSettingDialog extends WikiDialog
setting
.
put
(
"Password"
,
sPassword
);
if
(
addMode
)
{
// no cleaning of the settings is necessary
Settings
.
getSettings
(
m_xContext
).
addWikiCon
(
setting
);
Settings
.
getSettings
(
m_xContext
).
storeConfiguration
();
}
...
...
swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
Dosyayı görüntüle @
6042ca02
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: WikiEditorImpl.java,v $
*
* $Revision: 1.
6
$
* $Revision: 1.
7
$
*
* last change: $Author: mav $ $Date: 2008-0
1-28 13:48:00
$
* last change: $Author: mav $ $Date: 2008-0
2-01 13:58:15
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -92,7 +92,7 @@ public final class WikiEditorImpl extends WeakBase
private
XFrame
m_xFrame
;
private
XModel
m_xModel
;
private
Settings
m_
s
ettings
;
private
Settings
m_
aS
ettings
;
private
String
m_aFilterName
;
...
...
@@ -100,7 +100,7 @@ public final class WikiEditorImpl extends WeakBase
{
// Helper.trustAllSSL();
m_xContext
=
xContext
;
m_
s
ettings
=
Settings
.
getSettings
(
m_xContext
);
m_
aS
ettings
=
Settings
.
getSettings
(
m_xContext
);
};
public
static
XSingleComponentFactory
__getComponentFactory
(
String
sImplementationName
)
...
...
@@ -189,10 +189,6 @@ public final class WikiEditorImpl extends WeakBase
try
{
if
(
myURL
.
Path
.
compareTo
(
"load"
)
==
0
)
{
loadArticle
();
}
if
(
myURL
.
Path
.
compareTo
(
"send"
)
==
0
)
{
sendArticle
();
...
...
@@ -312,74 +308,6 @@ public final class WikiEditorImpl extends WeakBase
}
public
void
loadArticle
()
{
try
{
WikiPropDialog
aPropDialog
=
new
WikiPropDialog
(
m_xContext
,
"vnd.sun.star.script:WikiEditor.Load?location=application"
,
null
);
aPropDialog
.
fillWikiList
();
aPropDialog
.
fillDocList
();
if
(
aPropDialog
.
show
()
)
{
Hashtable
wikiSettings
=
m_settings
.
getSettingByUrl
(
aPropDialog
.
m_sWikiEngineURL
);
WikiArticle
aArticle
=
new
WikiArticle
(
m_xContext
,
aPropDialog
.
GetWikiTitle
(),
wikiSettings
,
false
,
null
);
if
(
aArticle
.
m_sHTMLCode
==
null
)
{
// the loading has failed
// TODO: error handling
return
;
}
aArticle
.
cleanHTML
();
XInputStream
xInputStream
=
Helper
.
SaveHTMLTemp
(
m_xContext
,
aArticle
.
m_sHTMLCode
);
if
(
xInputStream
==
null
)
throw
new
com
.
sun
.
star
.
io
.
IOException
();
Object
oDesktop
=
m_xContext
.
getServiceManager
().
createInstanceWithContext
(
"com.sun.star.frame.Desktop"
,
m_xContext
);
XComponentLoader
xCL
=
(
XComponentLoader
)
UnoRuntime
.
queryInterface
(
XComponentLoader
.
class
,
oDesktop
);
if
(
xCL
==
null
)
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
();
PropertyValue
[]
props
=
new
PropertyValue
[
4
];
props
[
0
]
=
new
PropertyValue
();
props
[
0
].
Name
=
"FilterName"
;
props
[
0
].
Value
=
"HTML"
;
props
[
1
]
=
new
PropertyValue
();
props
[
1
].
Name
=
"DocumentTitle"
;
props
[
1
].
Value
=
aArticle
.
GetTitle
();
props
[
2
]
=
new
PropertyValue
();
props
[
2
].
Name
=
"InputStream"
;
props
[
2
].
Value
=
xInputStream
;
props
[
3
]
=
new
PropertyValue
();
props
[
3
].
Name
=
"DocumentBaseURL"
;
props
[
3
].
Value
=
aArticle
.
GetMainURL
()
+
aArticle
.
GetTitle
();
// the following argument seems to let office crash
// props[4] = new PropertyValue();
// props[4].Name = "AsTemplate";
// props[4].Value = true;
xComp
=
xCL
.
loadComponentFromURL
(
"private:stream"
,
"_blank"
,
0
,
props
);
Hashtable
htd
=
new
Hashtable
();
htd
.
put
(
"Doc"
,
aArticle
.
GetTitle
()
);
htd
.
put
(
"Url"
,
aArticle
.
GetMainURL
()
);
htd
.
put
(
"CompleteUrl"
,
aArticle
.
GetMainURL
()
+
aArticle
.
GetTitle
()
);
m_settings
.
addWikiDoc
(
htd
);
m_settings
.
storeConfiguration
();
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
public
void
sendArticle
()
{
if
(
m_xFrame
!=
null
)
...
...
@@ -410,6 +338,7 @@ public final class WikiEditorImpl extends WeakBase
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
();
}
m_aSettings
.
loadConfiguration
();
// throw away all the noncommited changes
// show the send dialog
WikiPropDialog
aSendDialog
=
new
WikiPropDialog
(
m_xContext
,
"vnd.sun.star.script:WikiEditor.SendToMediaWiki?location=application"
,
this
);
aSendDialog
.
fillWikiList
();
...
...
@@ -435,7 +364,7 @@ public final class WikiEditorImpl extends WeakBase
try
{
Hashtable
wikiSettings
=
m_
s
ettings
.
getSettingByUrl
(
aSendDialog
.
m_sWikiEngineURL
);
Hashtable
wikiSettings
=
m_
aS
ettings
.
getSettingByUrl
(
aSendDialog
.
m_sWikiEngineURL
);
// TODO: stop progress spinning
WikiArticle
aArticle
=
new
WikiArticle
(
m_xContext
,
aSendDialog
.
GetWikiTitle
(),
wikiSettings
,
true
,
aSendDialog
);
...
...
@@ -484,8 +413,8 @@ public final class WikiEditorImpl extends WeakBase
aDocInfo
.
put
(
"Doc"
,
aArticle
.
GetTitle
()
);
aDocInfo
.
put
(
"Url"
,
aArticle
.
GetMainURL
()
);
aDocInfo
.
put
(
"CompleteUrl"
,
aArticle
.
GetMainURL
()
+
aArticle
.
GetTitle
()
);
m_
s
ettings
.
addWikiDoc
(
aDocInfo
);
m_
s
ettings
.
storeConfiguration
();
m_
aS
ettings
.
addWikiDoc
(
aDocInfo
);
m_
aS
ettings
.
storeConfiguration
();
if
(
Helper
.
GetShowInBrowserByDefault
(
m_xContext
)
)
Helper
.
ShowURLInBrowser
(
m_xContext
,
aArticle
.
GetViewURL
()
);
...
...
swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java
Dosyayı görüntüle @
6042ca02
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: WikiOptionsEventHandlerImpl.java,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author: mav $ $Date: 2008-0
1-30 19:02:16
$
* last change: $Author: mav $ $Date: 2008-0
2-01 13:58:15
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -248,10 +248,11 @@ public final class WikiOptionsEventHandlerImpl extends WeakBase
m_xControlContainer
=
(
XControlContainer
)
UnoRuntime
.
queryInterface
(
XControlContainer
.
class
,
m_xDialog
);
m_aSettings
=
Settings
.
getSettings
(
m_xContext
);
m_aSettings
.
loadConfiguration
();
// throw away all the noncommited changes
InitStrings
();
}
else
if
(
m_aSettings
!=
null
)
m_aSettings
.
loadConfiguration
();
// throw away all the changes
m_aSettings
.
loadConfiguration
();
// throw away all the
noncommited
changes
RefreshView
();
CheckButtonState
();
...
...
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