22#include <com/sun/star/style/XStyleFamiliesSupplier.hpp> 
   23#include <com/sun/star/beans/XPropertySet.hpp> 
   30uno::Reference< container::XNameAccess >
 
   33    uno::Reference< style::XStyleFamiliesSupplier > xStyleSupplier( 
xModel, uno::UNO_QUERY_THROW);
 
   34    uno::Reference< container::XNameAccess > xStylesAccess( xStyleSupplier->getStyleFamilies()->getByName(
"CellStyles"), uno::UNO_QUERY_THROW );
 
   40static uno::Reference< beans::XPropertySet >
 
   41lcl_getStyleProps( 
const OUString& sStyleName, 
const uno::Reference< frame::XModel >& xModel )
 
   52    uno::Reference< lang::XServiceInfo > xServiceInfo( 
mxPropertySet, uno::UNO_QUERY_THROW );
 
   53    if ( !xServiceInfo->supportsService(
"com.sun.star.style.CellStyle") )
 
   59    uno::Reference< style::XStyleFamiliesSupplier > xStyleSupplier( 
mxModel, uno::UNO_QUERY_THROW );
 
   65                        const uno::Reference< uno::XComponentContext > & xContext,
 
   66                        const OUString& sStyleName, 
const uno::Reference< frame::XModel >& _xModel )
 
   73    catch (
const uno::Exception& )
 
   75        DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {});
 
   80                        const uno::Reference< uno::XComponentContext > & xContext,
 
   81                        const uno::Reference< beans::XPropertySet >& _xPropertySet,
 
   82                        const uno::Reference< frame::XModel >& _xModel )
 
   89    catch (
const uno::Exception& )
 
   91        DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {});
 
   98    return !
mxStyle->isUserDefined();
 
  120    catch (
const uno::Exception& e)
 
  122        DebugHelper::basicexception(e);
 
  134    catch (
const uno::Exception& )
 
  148    catch (
const uno::Exception& )
 
  173uno::Sequence< OUString >
 
  178            "ooo.vba.excel.XStyle" 
css::uno::Reference< css::container::XNameContainer > mxStyleFamilyNameContainer
ScVbaStyle(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const OUString &sStyleName, const css::uno::Reference< css::frame::XModel > &_xModel)
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual OUString getServiceImplName() override
static css::uno::Reference< css::container::XNameAccess > getStylesNameContainer(const css::uno::Reference< css::frame::XModel > &xModel)
virtual void SAL_CALL setName(const OUString &Name) override
css::uno::Reference< css::style::XStyle > mxStyle
virtual void SAL_CALL Delete() override
virtual void SAL_CALL setNameLocal(const OUString &NameLocal) override
virtual css::uno::Any SAL_CALL getMergeCells() override
virtual sal_Bool SAL_CALL BuiltIn() override
virtual void SAL_CALL setMergeCells(const css::uno::Any &MergeCells) override
virtual OUString SAL_CALL getName() override
virtual OUString SAL_CALL getNameLocal() override
Sequence< OUString > aServiceNames
Reference< XPropertySet > _xPropertySet
#define ERRCODE_BASIC_METHOD_FAILED
#define ERRCODE_BASIC_NOT_IMPLEMENTED
Reference< XModel > xModel
constexpr OUStringLiteral DISPLAYNAME
static uno::Reference< beans::XPropertySet > lcl_getStyleProps(const OUString &sStyleName, const uno::Reference< frame::XModel > &xModel)