diff options
author | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-06-11 22:42:12 +0530 |
---|---|---|
committer | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-08-04 20:27:47 +0530 |
commit | d2296197a2bb7bd48e132cc2c9b0f1583b6097ce (patch) | |
tree | 7a078fcb99acf7c812538300ae154cbb418cfc42 | |
parent | 3a4e02f785da17b6c41f50d4197bc13047c4760b (diff) |
Changed the Persona application process a bit.
The header and footer files of the selected theme are downloaded and
saved in the Theme's own folder and applied.
Change-Id: Ie974c9bedc01a20c70cb342196fb60550cb39a0f
-rw-r--r-- | cui/source/options/personalization.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index a5f5b9ae40c2..1aba9b45931a 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -370,12 +370,14 @@ bool SvxPersonalizationTabPage::CopyPersonaToGallery( const OUString &rURL ) OUString gallery = "${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}"; rtl::Bootstrap::expandMacros( gallery ); gallery += "/user/gallery/personas/"; - // gallery += aName + "/"; osl::Directory::createPath( gallery ); OUString aHeaderFile( INetURLObject( aHeaderURL ).getName() ); OUString aFooterFile( INetURLObject( aFooterURL ).getName() ); + aHeaderFile = aName + "/" + aHeaderFile; + aFooterFile = aName + "/" + aFooterFile; + try { xFileAccess->copy( aHeaderURL, gallery + aHeaderFile ); xFileAccess->copy( aFooterURL, gallery + aFooterFile ); |