Kaydet (Commit) bda81996 authored tarafından Rachit Gupta's avatar Rachit Gupta Kaydeden (comit) Jan Holesovsky

Moved definition of SelectPersonaDialog to personalization.hxx

Change-Id: Ic6ffcfb394e36d4d9ce9825b26095fe2a0f34fdd
üst 34685e74
...@@ -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();
......
...@@ -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: */
...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment