ximpstyl.cxx (63bba73c) ximpstyl.cxx (24c56ab9)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1292 unchanged lines hidden (view full) ---

1301}
1302
1303//////////////////////////////////////////////////////////////////////////////
1304// set master-page styles (all with family="presentation" and a special
1305// prefix) on given master-page.
1306//
1307void SdXMLStylesContext::SetMasterPageStyles(SdXMLMasterPageContext& rMaster) const
1308{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1292 unchanged lines hidden (view full) ---

1301}
1302
1303//////////////////////////////////////////////////////////////////////////////
1304// set master-page styles (all with family="presentation" and a special
1305// prefix) on given master-page.
1306//
1307void SdXMLStylesContext::SetMasterPageStyles(SdXMLMasterPageContext& rMaster) const
1308{
1309 UniString sPrefix(rMaster.GetDisplayName(), (sal_uInt16)rMaster.GetDisplayName().getLength());
1309 UniString sPrefix( rMaster.GetDisplayName());
1310 sPrefix += sal_Unicode('-');
1311
1312 if(GetSdImport().GetLocalDocStyleFamilies().is() && GetSdImport().GetLocalDocStyleFamilies()->hasByName(rMaster.GetDisplayName())) try
1313 {
1314 uno::Reference< container::XNameAccess > xMasterPageStyles( GetSdImport().GetLocalDocStyleFamilies()->getByName(rMaster.GetDisplayName()), UNO_QUERY_THROW );
1315 ImpSetGraphicStyles(xMasterPageStyles, XML_STYLE_FAMILY_SD_PRESENTATION_ID, sPrefix);
1316 }
1317 catch( uno::Exception& )

--- 371 unchanged lines hidden ---
1310 sPrefix += sal_Unicode('-');
1311
1312 if(GetSdImport().GetLocalDocStyleFamilies().is() && GetSdImport().GetLocalDocStyleFamilies()->hasByName(rMaster.GetDisplayName())) try
1313 {
1314 uno::Reference< container::XNameAccess > xMasterPageStyles( GetSdImport().GetLocalDocStyleFamilies()->getByName(rMaster.GetDisplayName()), UNO_QUERY_THROW );
1315 ImpSetGraphicStyles(xMasterPageStyles, XML_STYLE_FAMILY_SD_PRESENTATION_ID, sPrefix);
1316 }
1317 catch( uno::Exception& )

--- 371 unchanged lines hidden ---