[Libreoffice-commits] core.git: Branch 'feature/gsoc14-personas' - cui/source

Rachit Gupta rachitgupta1792 at gmail.com
Wed Jun 11 10:21:38 PDT 2014


 cui/source/options/personalization.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 14f72d1e6a05484007e2ae4d9bcc89b3859083b7
Author: Rachit Gupta <rachitgupta1792 at gmail.com>
Date:   Wed Jun 11 22:42:12 2014 +0530

    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

diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 5ef6ff1..3e04336 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 );


More information about the Libreoffice-commits mailing list