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

The selected theme is now applied to the suite.

1. Added IMPL_LINKs for the result buttons.
2. Created a vector to store the temporary persona settings in the
   format: name;headerURL;footerURL;textColor;accentColor.
3. When a button is clicked, the corresponding setting is copied to
   m_aPersonaSetting.
4. The persona setting is parsed in CopyPersonaToGallery and the
   header and footer images are downloaded.

Change-Id: Ib83016ad5bdfa83963843146ef6a4674fcd73868
üst 70300fed
...@@ -74,14 +74,15 @@ public: ...@@ -74,14 +74,15 @@ public:
SelectPersonaDialog( Window *pParent ); SelectPersonaDialog( Window *pParent );
::rtl::Reference< SearchAndParseThread > m_aSearchThread; ::rtl::Reference< SearchAndParseThread > m_aSearchThread;
/// Get the URL from the Edit field. OUString GetSelectedPersona() const;
OUString GetPersonaURL() const;
void SetProgress( OUString& ); void SetProgress( OUString& );
void SetImages( std::vector<Image> &); void SetImages( std::vector<Image>&);
void AddPersonaSetting( OUString& );
private: private:
/// Handle the Search button /// Handle the Search button
DECL_LINK( VisitPersonas, PushButton* ); DECL_LINK( SearchPersonas, PushButton* );
DECL_LINK( SelectPersona, PushButton* );
}; };
class SearchAndParseThread: public salhelper::Thread class SearchAndParseThread: public salhelper::Thread
...@@ -93,7 +94,7 @@ private: ...@@ -93,7 +94,7 @@ private:
virtual ~SearchAndParseThread(); virtual ~SearchAndParseThread();
virtual void execute() SAL_OVERRIDE; virtual void execute() SAL_OVERRIDE;
OUString getPreviewFile( const OUString& ); void getPreviewFile( const OUString&, OUString *, OUString * );
public: public:
......
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