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
bda81996
Kaydet (Commit)
bda81996
authored
May 19, 2014
tarafından
Rachit Gupta
Kaydeden (comit)
Jan Holesovsky
Agu 14, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Moved definition of SelectPersonaDialog to personalization.hxx
Change-Id: Ic6ffcfb394e36d4d9ce9825b26095fe2a0f34fdd
üst
34685e74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
35 deletions
+24
-35
personalization.cxx
cui/source/options/personalization.cxx
+1
-25
personalization.hxx
cui/source/options/personalization.hxx
+23
-0
personasdochandler.cxx
cui/source/options/personasdochandler.cxx
+0
-10
No files found.
cui/source/options/personalization.cxx
Dosyayı görüntüle @
bda81996
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include <vcl/msgbox.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/settings.hxx>
#include <vcl/graphicfilter.hxx>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <com/sun/star/xml/sax/XParser.hpp>
#include <com/sun/star/xml/sax/XParser.hpp>
...
@@ -31,28 +32,6 @@ using namespace com::sun::star;
...
@@ -31,28 +32,6 @@ using namespace com::sun::star;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
ucb
;
using
namespace
::
com
::
sun
::
star
::
ucb
;
/** Dialog that will allow the user to choose a Persona to use.
So far there is no better possibility than just to paste the URL from
https://addons.mozilla.org/firefox/themes ...
*/
class
SelectPersonaDialog
:
public
ModalDialog
{
private
:
Edit
*
m_pEdit
;
///< The input line for the Persona URL
public
:
SelectPersonaDialog
(
Window
*
pParent
);
/// Get the URL from the Edit field.
OUString
GetPersonaURL
()
const
;
private
:
/// Handle the [Visit Firefox Personas] button
DECL_LINK
(
VisitPersonas
,
PushButton
*
);
};
SelectPersonaDialog
::
SelectPersonaDialog
(
Window
*
pParent
)
SelectPersonaDialog
::
SelectPersonaDialog
(
Window
*
pParent
)
:
ModalDialog
(
pParent
,
"SelectPersonaDialog"
,
"cui/ui/select_persona_dialog.ui"
)
:
ModalDialog
(
pParent
,
"SelectPersonaDialog"
,
"cui/ui/select_persona_dialog.ui"
)
{
{
...
@@ -76,9 +55,6 @@ OUString SelectPersonaDialog::GetPersonaURL() const
...
@@ -76,9 +55,6 @@ OUString SelectPersonaDialog::GetPersonaURL() const
IMPL_LINK
(
SelectPersonaDialog
,
VisitPersonas
,
PushButton
*
,
/*pButton*/
)
IMPL_LINK
(
SelectPersonaDialog
,
VisitPersonas
,
PushButton
*
,
/*pButton*/
)
{
{
// uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShell( com::sun::star::system::SystemShellExecute::create( ::comphelper::getProcessComponentContext() ) );
// xSystemShell->execute( "https://addons.mozilla.org/firefox/themes/", OUString(), com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY );
Reference
<
XComponentContext
>
xContext
(
::
comphelper
::
getProcessComponentContext
()
);
Reference
<
XComponentContext
>
xContext
(
::
comphelper
::
getProcessComponentContext
()
);
Reference
<
xml
::
sax
::
XParser
>
xParser
=
xml
::
sax
::
Parser
::
create
(
xContext
);
Reference
<
xml
::
sax
::
XParser
>
xParser
=
xml
::
sax
::
Parser
::
create
(
xContext
);
PersonasDocHandler
*
pHandler
=
new
PersonasDocHandler
();
PersonasDocHandler
*
pHandler
=
new
PersonasDocHandler
();
...
...
cui/source/options/personalization.hxx
Dosyayı görüntüle @
bda81996
...
@@ -48,6 +48,29 @@ private:
...
@@ -48,6 +48,29 @@ private:
bool
CopyPersonaToGallery
(
const
OUString
&
rURL
);
bool
CopyPersonaToGallery
(
const
OUString
&
rURL
);
};
};
/** Dialog that will allow the user to choose a Persona to use.
So far there is no better possibility than just to paste the URL from
https://addons.mozilla.org/firefox/themes ...
*/
class
SelectPersonaDialog
:
public
ModalDialog
{
private
:
Edit
*
m_pEdit
;
///< The input line for the Persona URL
public
:
SelectPersonaDialog
(
Window
*
pParent
);
/// Get the URL from the Edit field.
OUString
GetPersonaURL
()
const
;
private
:
/// Handle the [Visit Firefox Personas] button
DECL_LINK
(
VisitPersonas
,
PushButton
*
);
};
#endif // INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
#endif // INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/options/personasdochandler.cxx
Dosyayı görüntüle @
bda81996
...
@@ -5,16 +5,6 @@
...
@@ -5,16 +5,6 @@
* This Source Code Form is subject to the terms of the Mozilla Public
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include "personasdochandler.hxx"
#include "personasdochandler.hxx"
...
...
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