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

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
üst 86eed1d3
...@@ -370,12 +370,14 @@ bool SvxPersonalizationTabPage::CopyPersonaToGallery( const OUString &rURL ) ...@@ -370,12 +370,14 @@ bool SvxPersonalizationTabPage::CopyPersonaToGallery( const OUString &rURL )
OUString gallery = "${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}"; OUString gallery = "${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}";
rtl::Bootstrap::expandMacros( gallery ); rtl::Bootstrap::expandMacros( gallery );
gallery += "/user/gallery/personas/"; gallery += "/user/gallery/personas/";
// gallery += aName + "/";
osl::Directory::createPath( gallery ); osl::Directory::createPath( gallery );
OUString aHeaderFile( INetURLObject( aHeaderURL ).getName() ); OUString aHeaderFile( INetURLObject( aHeaderURL ).getName() );
OUString aFooterFile( INetURLObject( aFooterURL ).getName() ); OUString aFooterFile( INetURLObject( aFooterURL ).getName() );
aHeaderFile = aName + "/" + aHeaderFile;
aFooterFile = aName + "/" + aFooterFile;
try { try {
xFileAccess->copy( aHeaderURL, gallery + aHeaderFile ); xFileAccess->copy( aHeaderURL, gallery + aHeaderFile );
xFileAccess->copy( aFooterURL, gallery + aFooterFile ); xFileAccess->copy( aFooterURL, gallery + aFooterFile );
......
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