LibreOffice Module sc (master)  1
styleuno.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #pragma once
21 
22 #include <svl/lstner.hxx>
23 #include <svl/style.hxx>
24 #include <com/sun/star/container/XIndexAccess.hpp>
25 #include <com/sun/star/style/XStyle.hpp>
26 #include <com/sun/star/style/XStyleLoader2.hpp>
27 #include <com/sun/star/lang/XServiceInfo.hpp>
28 #include <com/sun/star/container/XNameContainer.hpp>
29 #include <com/sun/star/beans/XPropertySet.hpp>
30 #include <com/sun/star/beans/XMultiPropertySet.hpp>
31 #include <com/sun/star/beans/XPropertyState.hpp>
32 #include <com/sun/star/beans/XMultiPropertyStates.hpp>
33 #include <com/sun/star/lang/XUnoTunnel.hpp>
35 #include <cppuhelper/implbase.hxx>
36 
37 namespace com::sun::star::container { class XIndexReplace; }
38 namespace com::sun::star::lang { class XComponent; }
39 
40 class ScDocShell;
41 class SfxItemPropertySet;
42 class SfxItemSet;
43 
44 class ScStyleFamilyObj;
45 class ScStyleObj;
47 
48 class ScStyleFamiliesObj final : public ::cppu::WeakImplHelper<
49  css::container::XIndexAccess,
50  css::container::XNameAccess,
51  css::style::XStyleLoader2,
52  css::lang::XServiceInfo >,
53  public SfxListener
54 {
55 private:
57 
60  rtl::Reference<ScStyleFamilyObj> GetObjectByName_Impl(std::u16string_view aName) const;
61 
62 public:
64  virtual ~ScStyleFamiliesObj() override;
65 
66  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
67 
68  // XIndexAccess
69  virtual sal_Int32 SAL_CALL getCount() override;
70  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
71 
72  // XNameAccess
73  virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
74  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
75  virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
76 
77  // XElementAccess
78  virtual css::uno::Type SAL_CALL getElementType() override;
79  virtual sal_Bool SAL_CALL hasElements() override;
80 
81  // XStyleLoader
82  virtual void SAL_CALL loadStylesFromURL( const OUString& URL,
83  const css::uno::Sequence< css::beans::PropertyValue >& aOptions ) override;
84  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
85  getStyleLoaderOptions() override;
86 
87  //XStyleLoader2
88  virtual void SAL_CALL loadStylesFromDocument( const css::uno::Reference < css::lang::XComponent > & aSourceComponent,
89  const css::uno::Sequence< css::beans::PropertyValue >& aOptions ) override;
90  // XServiceInfo
91  virtual OUString SAL_CALL getImplementationName() override;
92  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
93  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
94 private:
97  void loadStylesFromDocShell( ScDocShell* pSource,
98  const css::uno::Sequence< css::beans::PropertyValue>& aOptions );
99 };
100 
101 class ScStyleFamilyObj final : public ::cppu::WeakImplHelper<
102  css::container::XNameContainer,
103  css::container::XIndexAccess,
104  css::beans::XPropertySet,
105  css::lang::XServiceInfo >,
106  public SfxListener
107 {
108 private:
111 
113  rtl::Reference<ScStyleObj> GetObjectByName_Impl(const OUString& Name);
114 
115 public:
117  virtual ~ScStyleFamilyObj() override;
118 
119  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
120 
121  // XNameContainer
122  virtual void SAL_CALL insertByName( const OUString& aName,
123  const css::uno::Any& aElement ) override;
124  virtual void SAL_CALL removeByName( const OUString& Name ) override;
125 
126  // XNameReplace
127  virtual void SAL_CALL replaceByName( const OUString& aName,
128  const css::uno::Any& aElement ) override;
129 
130  // XNameAccess
131  virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
132  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
133  virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
134 
135  // XIndexAccess
136  virtual sal_Int32 SAL_CALL getCount() override;
137  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
138 
139  // XElementAccess
140  virtual css::uno::Type SAL_CALL getElementType() override;
141  virtual sal_Bool SAL_CALL hasElements() override;
142 
143  // XPropertySet
144  virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
145  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
146  virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
147  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
148  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
149  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
150  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
151 
152  // XServiceInfo
153  virtual OUString SAL_CALL getImplementationName() override;
154  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
155  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
156 };
157 
158 class ScStyleObj final : public ::cppu::WeakImplHelper<
159  css::style::XStyle,
160  css::beans::XPropertySet,
161  css::beans::XMultiPropertySet,
162  css::beans::XPropertyState,
163  css::beans::XMultiPropertyStates,
164  css::lang::XUnoTunnel,
165  css::lang::XServiceInfo >,
166  public SfxListener
167 {
168 private:
172  OUString aStyleName;
174 
175  SfxStyleSheetBase* GetStyle_Impl( bool bUseCachedValue = false );
176  const SfxItemSet* GetStyleItemSet_Impl( std::u16string_view rPropName, const SfxItemPropertyMapEntry*& rpEntry );
179  css::beans::PropertyState getPropertyState_Impl( std::u16string_view PropertyName );
183  css::uno::Any getPropertyDefault_Impl( std::u16string_view aPropertyName );
187  css::uno::Any getPropertyValue_Impl( std::u16string_view aPropertyName );
190  void setPropertyValue_Impl( std::u16string_view rPropertyName,
191  const SfxItemPropertyMapEntry* pEntry,
192  const css::uno::Any* pValue );
193 
194 public:
195  ScStyleObj() = delete;
196  ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const OUString& rName);
197  virtual ~ScStyleObj() override;
198 
199  // created by getImplementation:
200  bool IsInserted() const { return pDocShell != nullptr; }
201  SfxStyleFamily GetFamily() const { return eFamily; }
202  void InitDoc( ScDocShell* pNewDocSh, const OUString& rNewName );
203 
204  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
205 
206  static css::uno::Reference< css::container::XIndexReplace >
208 
209  // XStyle
210  virtual sal_Bool SAL_CALL isUserDefined() override;
211  virtual sal_Bool SAL_CALL isInUse() override;
212  virtual OUString SAL_CALL getParentStyle() override;
213  virtual void SAL_CALL setParentStyle( const OUString& aParentStyle ) override;
214 
215  // XNamed
216  virtual OUString SAL_CALL getName() override;
217  virtual void SAL_CALL setName( const OUString& aName ) override;
218 
219  // XPropertySet
220  virtual css::uno::Reference< css::beans::XPropertySetInfo >
221  SAL_CALL getPropertySetInfo() override;
222  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
223  const css::uno::Any& aValue ) override;
224  virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
225  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
226  const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
227  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
228  const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
229  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
230  const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
231  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
232  const css::uno::Reference<
233  css::beans::XVetoableChangeListener >& aListener ) override;
234 
235  // XMultiPropertySet
236  virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames,
237  const css::uno::Sequence< css::uno::Any >& aValues ) override;
238  virtual css::uno::Sequence< css::uno::Any > SAL_CALL
239  getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
240  virtual void SAL_CALL addPropertiesChangeListener( const css::uno::Sequence< OUString >& aPropertyNames,
241  const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
242  virtual void SAL_CALL removePropertiesChangeListener( const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
243  virtual void SAL_CALL firePropertiesChangeEvent( const css::uno::Sequence< OUString >& aPropertyNames,
244  const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
245 
246  // XPropertyState
247  virtual css::beans::PropertyState SAL_CALL getPropertyState(
248  const OUString& PropertyName ) override;
249  virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
250  getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
251  virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
252  virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
253 
254  // XMultiPropertyStates
255  // getPropertyStates already defined for XPropertyState
256  virtual void SAL_CALL setAllPropertiesToDefault() override;
257  virtual void SAL_CALL setPropertiesToDefault( const css::uno::Sequence< OUString >& aPropertyNames ) override;
258  virtual css::uno::Sequence< css::uno::Any > SAL_CALL
259  getPropertyDefaults( const css::uno::Sequence< OUString >& aPropertyNames ) override;
260 
261  // XServiceInfo
262  virtual OUString SAL_CALL getImplementationName() override;
263  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
264  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
265 
266  // XUnoTunnel
268 };
269 
270 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScDocShell * pDocShell
Definition: styleuno.hxx:109
virtual OUString SAL_CALL getImplementationName() override
Definition: styleuno.cxx:1919
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: styleuno.cxx:1028
bool IsInserted() const
Definition: styleuno.hxx:200
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: styleuno.cxx:860
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getParentStyle() override
Definition: styleuno.cxx:1019
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: styleuno.cxx:1209
void loadStylesFromDocShell(ScDocShell *pSource, const css::uno::Sequence< css::beans::PropertyValue > &aOptions)
Definition: styleuno.cxx:588
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: styleuno.cxx:821
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: styleuno.cxx:1372
virtual void SAL_CALL setName(const OUString &aName) override
Definition: styleuno.cxx:1086
virtual ~ScStyleFamilyObj() override
Definition: styleuno.cxx:624
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: styleuno.cxx:974
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: styleuno.cxx:428
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: styleuno.cxx:1457
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: styleuno.cxx:1201
const SfxItemSet * GetStyleItemSet_Impl(std::u16string_view rPropName, const SfxItemPropertyMapEntry *&rpEntry)
Definition: styleuno.cxx:1129
#define UNO3_GETIMPLEMENTATION_DECL(classname)
virtual OUString SAL_CALL getName() override
Definition: styleuno.cxx:1077
virtual sal_Bool SAL_CALL hasElements() override
Definition: styleuno.cxx:497
const SfxItemPropertySet * pPropSet
Definition: styleuno.hxx:169
virtual sal_Int32 SAL_CALL getCount() override
Definition: styleuno.cxx:476
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: styleuno.cxx:1378
virtual void SAL_CALL insertByName(const OUString &aName, const css::uno::Any &aElement) override
Definition: styleuno.cxx:676
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: styleuno.cxx:1907
virtual void SAL_CALL removeByName(const OUString &Name) override
Definition: styleuno.cxx:728
SfxStyleFamily eFamily
Definition: styleuno.hxx:171
ScStyleFamiliesObj(ScDocShell *pDocSh)
Definition: styleuno.cxx:414
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: styleuno.cxx:877
SfxStyleSheetBase * GetStyle_Impl(bool bUseCachedValue=false)
Definition: styleuno.cxx:984
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: styleuno.cxx:1436
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: styleuno.cxx:932
virtual sal_Bool SAL_CALL isInUse() override
Definition: styleuno.cxx:1010
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: styleuno.cxx:1451
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
ScStyleFamilyObj(ScDocShell *pDocSh, SfxStyleFamily eFam)
Definition: styleuno.cxx:617
virtual css::uno::Type SAL_CALL getElementType() override
Definition: styleuno.cxx:807
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: styleuno.cxx:505
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: styleuno.cxx:1929
SfxStyleFamily
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: styleuno.cxx:1315
ScDocShell * pDocShell
Definition: styleuno.hxx:56
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: styleuno.cxx:1355
css::beans::PropertyState getPropertyState_Impl(std::u16string_view PropertyName)
Definition: styleuno.cxx:1163
rtl::Reference< ScStyleFamilyObj > GetObjectByName_Impl(std::u16string_view aName) const
Definition: styleuno.cxx:461
virtual sal_Bool SAL_CALL isUserDefined() override
Definition: styleuno.cxx:1001
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: styleuno.cxx:1323
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override
Definition: styleuno.cxx:562
virtual sal_Bool SAL_CALL hasElements() override
Definition: styleuno.cxx:813
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: styleuno.cxx:520
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
void setPropertyValue_Impl(std::u16string_view rPropertyName, const SfxItemPropertyMapEntry *pEntry, const css::uno::Any *pValue)
Definition: styleuno.cxx:1469
virtual sal_Int32 SAL_CALL getCount() override
Definition: styleuno.cxx:783
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: styleuno.cxx:1366
unsigned char sal_Bool
ScDocShell * pDocShell
Definition: styleuno.hxx:170
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: styleuno.cxx:888
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: styleuno.cxx:832
rtl::Reference< ScStyleFamilyObj > GetObjectByType_Impl(SfxStyleFamily nType) const
Definition: styleuno.cxx:440
rtl::Reference< ScStyleObj > GetObjectByIndex_Impl(sal_Int32 nIndex)
Definition: styleuno.cxx:644
static css::uno::Reference< css::container::XIndexReplace > CreateEmptyNumberingRules()
Definition: styleuno.cxx:1121
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: styleuno.cxx:883
rtl::Reference< ScStyleObj > GetObjectByName_Impl(const OUString &Name)
Definition: styleuno.cxx:664
virtual void SAL_CALL loadStylesFromDocument(const css::uno::Reference< css::lang::XComponent > &aSourceComponent, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
Definition: styleuno.cxx:574
virtual ~ScStyleFamiliesObj() override
Definition: styleuno.cxx:420
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: styleuno.cxx:917
virtual css::uno::Type SAL_CALL getElementType() override
Definition: styleuno.cxx:491
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: styleuno.cxx:1924
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: styleuno.cxx:1220
ScStyleObj()=delete
SfxStyleSheetBase * pStyle_cached
Definition: styleuno.hxx:173
virtual ~ScStyleObj() override
Definition: styleuno.cxx:962
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: styleuno.cxx:632
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: styleuno.cxx:515
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:398
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
css::uno::Any getPropertyDefault_Impl(std::u16string_view aPropertyName)
Definition: styleuno.cxx:1232
rtl::Reference< ScStyleFamilyObj > GetObjectByIndex_Impl(sal_uInt32 nIndex) const
Definition: styleuno.cxx:453
void InitDoc(ScDocShell *pNewDocSh, const OUString &rNewName)
Definition: styleuno.cxx:952
OUString aStyleName
Definition: styleuno.hxx:172
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: styleuno.cxx:797
SfxStyleFamily GetFamily() const
Definition: styleuno.hxx:201
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL setAllPropertiesToDefault() override
Definition: styleuno.cxx:1387
virtual void SAL_CALL replaceByName(const OUString &aName, const css::uno::Any &aElement) override
Definition: styleuno.cxx:720
SfxStyleFamily eFamily
Definition: styleuno.hxx:110
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: styleuno.cxx:481
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: styleuno.cxx:1336
virtual void SAL_CALL loadStylesFromURL(const OUString &URL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
Definition: styleuno.cxx:527
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
struct _ADOIndex Index
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: styleuno.cxx:922
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: styleuno.cxx:927
css::uno::Any getPropertyValue_Impl(std::u16string_view aPropertyName)
Definition: styleuno.cxx:1777