LibreOffice Module sc (master) 1
styleuno.cxx
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#include <scitems.hxx>
21#include <editeng/memberids.h>
22#include <svx/algitem.hxx>
23#include <editeng/boxitem.hxx>
24#include <editeng/langitem.hxx>
25#include <editeng/numitem.hxx>
26#include <svx/pageitem.hxx>
27#include <editeng/pbinitem.hxx>
28#include <svx/unomid.hxx>
29#include <editeng/unonrule.hxx>
30#include <sfx2/bindings.hxx>
31#include <sfx2/printer.hxx>
32#include <sfx2/sfxsids.hrc>
33#include <utility>
34#include <vcl/virdev.hxx>
35#include <vcl/svapp.hxx>
36#include <svl/itempool.hxx>
37#include <svl/itemset.hxx>
38#include <svl/numformat.hxx>
39#include <svl/intitem.hxx>
40#include <svl/zformat.hxx>
41#include <tools/fract.hxx>
43#include <osl/diagnose.h>
44
45#include <com/sun/star/table/BorderLine.hpp>
46#include <com/sun/star/table/TableBorder.hpp>
47#include <com/sun/star/table/TableBorder2.hpp>
48#include <com/sun/star/table/ShadowFormat.hpp>
49#include <com/sun/star/table/CellHoriJustify.hpp>
50#include <com/sun/star/table/CellOrientation.hpp>
51#include <com/sun/star/style/PageStyleLayout.hpp>
52#include <com/sun/star/style/GraphicLocation.hpp>
53#include <com/sun/star/sheet/XHeaderFooterContent.hpp>
54#include <com/sun/star/util/CellProtection.hpp>
55#include <com/sun/star/awt/FontSlant.hpp>
56#include <com/sun/star/awt/Size.hpp>
57#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
58#include <com/sun/star/lang/Locale.hpp>
59#include <com/sun/star/beans/PropertyAttribute.hpp>
60#include <com/sun/star/graphic/XGraphic.hpp>
63
64#include <styleuno.hxx>
65#include <docsh.hxx>
66#include <attrib.hxx>
67#include <stlpool.hxx>
68#include <docpool.hxx>
69#include <miscuno.hxx>
70#include <tablink.hxx>
71#include <unonames.hxx>
72#include <unowids.hxx>
73#include <globstr.hrc>
74#include <scresid.hxx>
75#include <cellsuno.hxx>
76#include <stylehelper.hxx>
77
78using namespace ::com::sun::star;
79
81{
82 static const SfxItemPropertyMapEntry aCellStyleMap_Impl[] =
83 {
135 {SC_UNONAME_DISPNAME, SC_WID_UNO_DISPNAME,::cppu::UnoType<OUString>::get(), beans::PropertyAttribute::READONLY, 0 },
143// {SC_UNONAME_NUMRULES, SC_WID_UNO_NUMRULES,cppu::UnoType<container::XIndexReplace>::get(), 0, 0 },
172 };
173 static SfxItemPropertySet aCellStyleSet_Impl( aCellStyleMap_Impl );
174 return &aCellStyleSet_Impl;
175}
176
177// map with all site attributes including header and footer attributes
178
180{
181 static const SfxItemPropertyMapEntry aPageStyleMap_Impl[] =
182 {
196 {SC_UNONAME_DISPNAME, SC_WID_UNO_DISPNAME,::cppu::UnoType<OUString>::get(), beans::PropertyAttribute::READONLY, 0 },
202
230
258
299 };
300 static SfxItemPropertySet aPageStyleSet_Impl( aPageStyleMap_Impl );
301 return &aPageStyleSet_Impl;
302}
303
304// map with content of the Header-Item-Sets
305
307{
308 static const SfxItemPropertyMapEntry aHeaderStyleMap_Impl[] =
309 {
339 };
340 static SfxItemPropertyMap aHeaderStyleMap( aHeaderStyleMap_Impl );
341 return &aHeaderStyleMap;
342}
343
344// map with content of the Footer-Item-Sets
345
347{
348 static const SfxItemPropertyMapEntry aFooterStyleMap_Impl[] =
349 {
379 };
380 static SfxItemPropertyMap aFooterStyleMap( aFooterStyleMap_Impl );
381 return &aFooterStyleMap;
382}
383
384// access index on the style types: 0 = Cell, 1 = Page
385
386#define SC_STYLE_FAMILY_COUNT 2
387
388constexpr OUStringLiteral SC_FAMILYNAME_CELL = u"CellStyles";
389constexpr OUStringLiteral SC_FAMILYNAME_PAGE = u"PageStyles";
390
391const SfxStyleFamily aStyleFamilyTypes[SC_STYLE_FAMILY_COUNT] = { SfxStyleFamily::Para, SfxStyleFamily::Page };
392
393constexpr OUStringLiteral SCSTYLE_SERVICE = u"com.sun.star.style.Style";
394constexpr OUStringLiteral SCCELLSTYLE_SERVICE = u"com.sun.star.style.CellStyle";
395constexpr OUStringLiteral SCPAGESTYLE_SERVICE = u"com.sun.star.style.PageStyle";
396
397SC_SIMPLE_SERVICE_INFO( ScStyleFamiliesObj, "ScStyleFamiliesObj", "com.sun.star.style.StyleFamilies" )
398SC_SIMPLE_SERVICE_INFO( ScStyleFamilyObj, "ScStyleFamilyObj", "com.sun.star.style.StyleFamily" )
399
400constexpr OUStringLiteral SC_PAPERBIN_DEFAULTNAME = u"[From printer settings]";
401
402static bool lcl_AnyTabProtected( const ScDocument& rDoc )
403{
404 SCTAB nTabCount = rDoc.GetTableCount();
405 for (SCTAB i=0; i<nTabCount; i++)
406 if (rDoc.IsTabProtected(i))
407 return true;
408 return false;
409}
410
412 pDocShell( pDocSh )
413{
415}
416
418{
420
421 if (pDocShell)
423}
424
426{
427 // reference update does not matter here
428
429 if ( rHint.GetId() == SfxHintId::Dying )
430 {
431 pDocShell = nullptr;
432 }
433}
434
435// XStyleFamilies
436
438{
439 if ( pDocShell )
440 {
441 if ( nType == SfxStyleFamily::Para )
442 return new ScStyleFamilyObj( pDocShell, SfxStyleFamily::Para );
443 else if ( nType == SfxStyleFamily::Page )
444 return new ScStyleFamilyObj( pDocShell, SfxStyleFamily::Page );
445 }
446 OSL_FAIL("getStyleFamilyByType: no DocShell or wrong SfxStyleFamily");
447 return nullptr;
448}
449
451{
454
455 return nullptr; // invalid index
456}
457
459{
460 if ( pDocShell )
461 {
462 if ( aName == SC_FAMILYNAME_CELL )
463 return new ScStyleFamilyObj( pDocShell, SfxStyleFamily::Para );
464 else if ( aName == SC_FAMILYNAME_PAGE )
465 return new ScStyleFamilyObj( pDocShell, SfxStyleFamily::Page );
466 }
467 // no assertion - called directly from getByName
468 return nullptr;
469}
470
471// container::XIndexAccess
472
474{
476}
477
478uno::Any SAL_CALL ScStyleFamiliesObj::getByIndex( sal_Int32 nIndex )
479{
480 SolarMutexGuard aGuard;
481 uno::Reference< container::XNameContainer > xFamily(GetObjectByIndex_Impl(nIndex));
482 if (!xFamily.is())
483 throw lang::IndexOutOfBoundsException();
484
485 return uno::Any(xFamily);
486}
487
489{
490 return cppu::UnoType<container::XNameContainer>::get(); // has to fit to getByIndex
491}
492
494{
495 SolarMutexGuard aGuard;
496 return ( getCount() != 0 );
497}
498
499// container::XNameAccess
500
501uno::Any SAL_CALL ScStyleFamiliesObj::getByName( const OUString& aName )
502{
503 SolarMutexGuard aGuard;
504 uno::Reference< container::XNameContainer > xFamily(GetObjectByName_Impl(aName));
505 if (!xFamily.is())
506 throw container::NoSuchElementException();
507
508 return uno::Any(xFamily);
509}
510
511uno::Sequence<OUString> SAL_CALL ScStyleFamiliesObj::getElementNames()
512{
514}
515
516sal_Bool SAL_CALL ScStyleFamiliesObj::hasByName( const OUString& aName )
517{
519}
520
521// style::XStyleLoader
522
523void SAL_CALL ScStyleFamiliesObj::loadStylesFromURL( const OUString& aURL,
524 const uno::Sequence<beans::PropertyValue>& aOptions )
525{
528
529 OUString aFilter; // empty - detect
530 OUString aFiltOpt;
531 uno::Reference<io::XInputStream> xInputStream;
532 if (aURL == "private:stream")
533 {
534 for (const auto& rProp : aOptions)
535 {
536 if (rProp.Name == "InputStream")
537 {
538 rProp.Value >>= xInputStream;
539 if (!xInputStream.is())
540 {
541 throw lang::IllegalArgumentException(
542 "Parameter 'InputStream' could not be converted "
543 "to type 'com::sun::star::io::XInputStream'",
544 nullptr, 0);
545 }
546 break;
547 }
548 }
549 }
550
551 ScDocumentLoader aLoader( aURL, aFilter, aFiltOpt, 0, nullptr, xInputStream );
552
553 ScDocShell* pSource = aLoader.GetDocShell();
554
555 loadStylesFromDocShell(pSource, aOptions);
556}
557
558uno::Sequence<beans::PropertyValue> SAL_CALL ScStyleFamiliesObj::getStyleLoaderOptions()
559{
560 // return defaults for options (?)
562 { SC_UNONAME_OVERWSTL, uno::Any(true) },
563 { SC_UNONAME_LOADCELL, uno::Any(true) },
565 });
566}
567
568// style::XStyleLoader2
569
570void SAL_CALL ScStyleFamiliesObj::loadStylesFromDocument( const uno::Reference < lang::XComponent > & aSourceComponent,
571 const uno::Sequence<beans::PropertyValue>& aOptions )
572{
573 // Source document docShell
574 if ( !aSourceComponent.is() )
575 throw uno::RuntimeException();
576
577 ScDocShell* pDocShellSrc = dynamic_cast<ScDocShell*> (SfxObjectShell::GetShellFromComponent(aSourceComponent));
578
579 loadStylesFromDocShell(pDocShellSrc, aOptions);
580}
581
582// private
583
585 const uno::Sequence<beans::PropertyValue>& aOptions )
586{
587
588 if ( !(pSource && pDocShell) )
589 return;
590
591 // collect options
592
593 bool bLoadReplace = true; // defaults
594 bool bLoadCellStyles = true;
595 bool bLoadPageStyles = true;
596
597 for (const beans::PropertyValue& rProp : aOptions)
598 {
599 OUString aPropName(rProp.Name);
600
602 bLoadReplace = ScUnoHelpFunctions::GetBoolFromAny( rProp.Value );
603 else if (aPropName == SC_UNONAME_LOADCELL)
604 bLoadCellStyles = ScUnoHelpFunctions::GetBoolFromAny( rProp.Value );
605 else if (aPropName == SC_UNONAME_LOADPAGE)
606 bLoadPageStyles = ScUnoHelpFunctions::GetBoolFromAny( rProp.Value );
607 }
608
609 pDocShell->LoadStylesArgs( *pSource, bLoadReplace, bLoadCellStyles, bLoadPageStyles );
610 pDocShell->SetDocumentModified(); // paint is inside LoadStyles
611}
612
614 pDocShell( pDocSh ),
615 eFamily( eFam )
616{
618}
619
621{
623
624 if (pDocShell)
626}
627
629{
630 // reference update does not matter here
631
632 if ( rHint.GetId() == SfxHintId::Dying )
633 {
634 pDocShell = nullptr; // has become invalid
635 }
636}
637
638// XStyleFamily
639
641{
642 if ( pDocShell )
643 {
645 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
646
647 SfxStyleSheetIterator aIter( pStylePool, eFamily );
648 if ( nIndex < aIter.Count() )
649 {
650 SfxStyleSheetBase* pStyle = aIter[nIndex];
651 if ( pStyle )
652 {
653 return new ScStyleObj( pDocShell, eFamily, pStyle->GetName() );
654 }
655 }
656 }
657 return nullptr;
658}
659
661{
662 if ( pDocShell )
663 {
665 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
666 if ( pStylePool->Find( aName, eFamily ) )
667 return new ScStyleObj( pDocShell, eFamily, aName );
668 }
669 return nullptr;
670}
671
672void SAL_CALL ScStyleFamilyObj::insertByName( const OUString& aName, const uno::Any& aElement )
673{
674 SolarMutexGuard aGuard;
675 bool bDone = false;
676 // reflection does not need to be uno::XInterface, can be any interface...
677 uno::Reference< uno::XInterface > xInterface(aElement, uno::UNO_QUERY);
678 if ( xInterface.is() )
679 {
680 ScStyleObj* pStyleObj = dynamic_cast<ScStyleObj*>( xInterface.get() );
681 if ( pStyleObj && pStyleObj->GetFamily() == eFamily &&
682 !pStyleObj->IsInserted() ) // not yet inserted?
683 {
685
687 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
688
691
692 if ( pStylePool->Find( aNameStr, eFamily ) ) // not available yet
693 throw container::ElementExistException();
694
695 (void)pStylePool->Make( aNameStr, eFamily, SfxStyleSearchBits::UserDefined );
696
697 if ( eFamily == SfxStyleFamily::Para && !rDoc.IsImportingXML() )
698 rDoc.GetPool()->CellStyleCreated( aNameStr, rDoc );
699
700 pStyleObj->InitDoc( pDocShell, aNameStr ); // object can be used
701
702 if (!rDoc.IsImportingXML())
703 pDocShell->SetDocumentModified(); // new style not used yet
704 bDone = true;
705
706 }
707 }
708
709 if (!bDone)
710 {
711 // other errors are handled above
712 throw lang::IllegalArgumentException();
713 }
714}
715
716void SAL_CALL ScStyleFamilyObj::replaceByName( const OUString& aName, const uno::Any& aElement )
717{
718 SolarMutexGuard aGuard;
721 insertByName( aName, aElement );
722}
723
724void SAL_CALL ScStyleFamilyObj::removeByName( const OUString& aName )
725{
726 SolarMutexGuard aGuard;
727 bool bFound = false;
728 if ( pDocShell )
729 {
731
733 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
734
737
738 SfxStyleSheetBase* pStyle = pStylePool->Find( aString, eFamily );
739 if (pStyle)
740 {
741 bFound = true;
742 if ( eFamily == SfxStyleFamily::Para )
743 {
744 // like ScViewFunc::RemoveStyleSheetInUse
746 Point aLogic = pVDev->LogicToPixel(Point(1000,1000), MapMode(MapUnit::MapTwip));
747 double nPPTX = aLogic.X() / 1000.0;
748 double nPPTY = aLogic.Y() / 1000.0;
749 Fraction aZoom(1,1);
750 rDoc.StyleSheetChanged( pStyle, false, pVDev, nPPTX, nPPTY, aZoom, aZoom );
753
754 pStylePool->Remove( pStyle );
755
757 }
758 else
759 {
760 if ( rDoc.RemovePageStyleInUse( aString ) )
761 pDocShell->PageStyleModified( ScResId(STR_STYLENAME_STANDARD), true );
762
763 pStylePool->Remove( pStyle );
764
765 SfxBindings* pBindings = pDocShell->GetViewBindings();
766 if (pBindings)
767 pBindings->Invalidate( SID_STYLE_FAMILY4 );
769 }
770 }
771 }
772
773 if (!bFound)
774 throw container::NoSuchElementException();
775}
776
777// container::XIndexAccess
778
779sal_Int32 SAL_CALL ScStyleFamilyObj::getCount()
780{
781 SolarMutexGuard aGuard;
782 if ( pDocShell )
783 {
785 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
786
787 SfxStyleSheetIterator aIter( pStylePool, eFamily );
788 return aIter.Count();
789 }
790 return 0;
791}
792
793uno::Any SAL_CALL ScStyleFamilyObj::getByIndex( sal_Int32 nIndex )
794{
795 SolarMutexGuard aGuard;
796 uno::Reference< style::XStyle > xObj(GetObjectByIndex_Impl(nIndex));
797 if (!xObj.is())
798 throw lang::IndexOutOfBoundsException();
799
800 return uno::Any(xObj);
801}
802
804{
805 return cppu::UnoType<style::XStyle>::get(); // has to fit to getByIndex
806}
807
809{
810 SolarMutexGuard aGuard;
811 return ( getCount() != 0 );
812}
813
814// container::XNameAccess
815
816uno::Any SAL_CALL ScStyleFamilyObj::getByName( const OUString& aName )
817{
818 SolarMutexGuard aGuard;
819 uno::Reference< style::XStyle > xObj(
821 if (!xObj.is())
822 throw container::NoSuchElementException();
823
824 return uno::Any(xObj);
825}
826
827uno::Sequence<OUString> SAL_CALL ScStyleFamilyObj::getElementNames()
828{
829 SolarMutexGuard aGuard;
830 if ( pDocShell )
831 {
833 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
834
835 SfxStyleSheetIterator aIter( pStylePool, eFamily );
836 sal_uInt16 nCount = aIter.Count();
837
838 uno::Sequence<OUString> aSeq(nCount);
839 OUString* pAry = aSeq.getArray();
840 SfxStyleSheetBase* pStyle = aIter.First();
841 sal_uInt16 nPos = 0;
842 while (pStyle)
843 {
844 OSL_ENSURE( nPos < nCount, "Count is wrong" );
845 if (nPos < nCount)
847 pStyle->GetName(), eFamily );
848 pStyle = aIter.Next();
849 }
850 return aSeq;
851 }
852 return uno::Sequence<OUString>();
853}
854
855sal_Bool SAL_CALL ScStyleFamilyObj::hasByName( const OUString& aName )
856{
857 SolarMutexGuard aGuard;
858 if ( pDocShell )
859 {
861
863 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
864 if ( pStylePool->Find( aString, eFamily ) )
865 return true;
866 }
867 return false;
868}
869
870// XPropertySet
871
872uno::Reference< beans::XPropertySetInfo > SAL_CALL ScStyleFamilyObj::getPropertySetInfo( )
873{
874 OSL_FAIL( "###unexpected!" );
875 return uno::Reference< beans::XPropertySetInfo >();
876}
877
878void SAL_CALL ScStyleFamilyObj::setPropertyValue( const OUString&, const uno::Any& )
879{
880 OSL_FAIL( "###unexpected!" );
881}
882
883uno::Any SAL_CALL ScStyleFamilyObj::getPropertyValue( const OUString& sPropertyName )
884{
885 uno::Any aRet;
886
887 if ( sPropertyName != "DisplayName" )
888 {
889 throw beans::UnknownPropertyException( "unknown property: " + sPropertyName, static_cast<OWeakObject *>(this) );
890 }
891
892 SolarMutexGuard aGuard;
893 TranslateId pResId;
894 switch ( eFamily )
895 {
896 case SfxStyleFamily::Para:
897 pResId = STR_STYLE_FAMILY_CELL; break;
898 case SfxStyleFamily::Page:
899 pResId = STR_STYLE_FAMILY_PAGE; break;
900 default:
901 OSL_FAIL( "ScStyleFamilyObj::getPropertyValue(): invalid family" );
902 }
903 if (pResId)
904 {
905 OUString sDisplayName(ScResId(pResId));
906 aRet <<= sDisplayName;
907 }
908
909 return aRet;
910}
911
912void SAL_CALL ScStyleFamilyObj::addPropertyChangeListener( const OUString&, const uno::Reference< beans::XPropertyChangeListener >& )
913{
914 OSL_FAIL( "###unexpected!" );
915}
916
917void SAL_CALL ScStyleFamilyObj::removePropertyChangeListener( const OUString&, const uno::Reference< beans::XPropertyChangeListener >& )
918{
919 OSL_FAIL( "###unexpected!" );
920}
921
922void SAL_CALL ScStyleFamilyObj::addVetoableChangeListener( const OUString&, const uno::Reference< beans::XVetoableChangeListener >& )
923{
924 OSL_FAIL( "###unexpected!" );
925}
926
927void SAL_CALL ScStyleFamilyObj::removeVetoableChangeListener( const OUString&, const uno::Reference< beans::XVetoableChangeListener >& )
928{
929 OSL_FAIL( "###unexpected!" );
930}
931
932// default ctor is needed for reflection
933
935 : pPropSet( (eFam == SfxStyleFamily::Para) ? lcl_GetCellStyleSet() : lcl_GetPageStyleSet() )
936 , pDocShell(pDocSh)
937 , eFamily(eFam)
938 , aStyleName(std::move(aName))
939 , pStyle_cached(nullptr)
940{
941 // if create by ServiceProvider then pDocShell is NULL
942
943 if (pDocShell)
945}
946
947void ScStyleObj::InitDoc( ScDocShell* pNewDocSh, const OUString& rNewName )
948{
949 if ( pNewDocSh && !pDocShell )
950 {
951 aStyleName = rNewName;
952 pDocShell = pNewDocSh;
954 }
955}
956
958{
960
961 if (pDocShell)
963}
964
966{
967 // reference update does not matter here
968
969 if ( rHint.GetId() == SfxHintId::Dying )
970 {
971 pDocShell = nullptr; // has become invalid
972 }
973}
974
976{
977 if ( bUseCachedValue )
978 return pStyle_cached;
979
980 pStyle_cached = nullptr;
981 if ( pDocShell )
982 {
984 ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
985 pStyle_cached = pStylePool->Find( aStyleName, eFamily );
986 }
987 return pStyle_cached;
988}
989
990// style::XStyle
991
993{
994 SolarMutexGuard aGuard;
996 if (pStyle)
997 return pStyle->IsUserDefined();
998 return false;
999}
1000
1002{
1003 SolarMutexGuard aGuard;
1004 SfxStyleSheetBase* pStyle = GetStyle_Impl();
1005 if (pStyle)
1006 return pStyle->IsUsed();
1007 return false;
1008}
1009
1011{
1012 SolarMutexGuard aGuard;
1013 SfxStyleSheetBase* pStyle = GetStyle_Impl();
1014 if (pStyle)
1016 return OUString();
1017}
1018
1019void SAL_CALL ScStyleObj::setParentStyle( const OUString& rParentStyle )
1020{
1021 SolarMutexGuard aGuard;
1022 SfxStyleSheetBase* pStyle = GetStyle_Impl();
1023 if (!pStyle)
1024 return;
1025
1026 // cell styles cannot be modified if any sheet is protected
1027 if ( eFamily == SfxStyleFamily::Para && lcl_AnyTabProtected( pDocShell->GetDocument() ) )
1028 return;
1029
1032
1033 OUString aString(ScStyleNameConversion::ProgrammaticToDisplayName( rParentStyle, eFamily ));
1034 bool bOk = pStyle->SetParent( aString );
1035 if (!bOk)
1036 return;
1037
1038 // as by setPropertyValue
1039
1040 ScDocument& rDoc = pDocShell->GetDocument();
1041 if ( eFamily == SfxStyleFamily::Para )
1042 {
1043 // update line height
1044
1046 Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MapMode(MapUnit::MapTwip));
1047 double nPPTX = aLogic.X() / 1000.0;
1048 double nPPTY = aLogic.Y() / 1000.0;
1049 Fraction aZoom(1,1);
1050 rDoc.StyleSheetChanged( pStyle, false, pVDev, nPPTX, nPPTY, aZoom, aZoom );
1051
1052 if (!rDoc.IsImportingXML())
1053 {
1056 }
1057 }
1058 else
1059 {
1061
1063 }
1064}
1065
1066// container::XNamed
1067
1068OUString SAL_CALL ScStyleObj::getName()
1069{
1070 SolarMutexGuard aGuard;
1071 SfxStyleSheetBase* pStyle = GetStyle_Impl();
1072 if (pStyle)
1074 return OUString();
1075}
1076
1077void SAL_CALL ScStyleObj::setName( const OUString& aNewName )
1078{
1079 SolarMutexGuard aGuard;
1080 SfxStyleSheetBase* pStyle = GetStyle_Impl();
1081 if (!pStyle)
1082 return;
1083
1084 // cell styles cannot be renamed if any sheet is protected
1085 if ( eFamily == SfxStyleFamily::Para && lcl_AnyTabProtected( pDocShell->GetDocument() ) )
1086 return;
1087
1090
1091 bool bOk = pStyle->SetName( aNewName );
1092 if (!bOk)
1093 return;
1094
1095 aStyleName = aNewName;
1096
1097 ScDocument& rDoc = pDocShell->GetDocument();
1098 if ( eFamily == SfxStyleFamily::Para && !rDoc.IsImportingXML() )
1099 rDoc.GetPool()->CellStyleCreated( aNewName, rDoc );
1100
1101 // cell styles = 2, page styles = 4
1102 sal_uInt16 nId = ( eFamily == SfxStyleFamily::Para ) ?
1103 SID_STYLE_FAMILY2 : SID_STYLE_FAMILY4;
1104 SfxBindings* pBindings = pDocShell->GetViewBindings();
1105 if (pBindings)
1106 {
1107 pBindings->Invalidate( nId );
1108 pBindings->Invalidate( SID_STYLE_APPLY );
1109 }
1110}
1111
1112uno::Reference<container::XIndexReplace> ScStyleObj::CreateEmptyNumberingRules()
1113{
1114 SvxNumRule aRule( SvxNumRuleFlags::NONE, 0, true ); // nothing supported
1115 return SvxCreateNumRule( aRule );
1116}
1117
1118// beans::XPropertyState
1119
1120const SfxItemSet* ScStyleObj::GetStyleItemSet_Impl( std::u16string_view rPropName,
1121 const SfxItemPropertyMapEntry*& rpResultEntry )
1122{
1123 SfxStyleSheetBase* pStyle = GetStyle_Impl( true );
1124 if ( pStyle )
1125 {
1126 const SfxItemPropertyMapEntry* pEntry = nullptr;
1127 if ( eFamily == SfxStyleFamily::Page )
1128 {
1129 pEntry = lcl_GetHeaderStyleMap()->getByName( rPropName );
1130 if ( pEntry ) // only item-WIDs in header/footer map
1131 {
1132 rpResultEntry = pEntry;
1133 return &pStyle->GetItemSet().Get(ATTR_PAGE_HEADERSET).GetItemSet();
1134 }
1135 pEntry = lcl_GetFooterStyleMap()->getByName( rPropName );
1136 if ( pEntry ) // only item-WIDs in header/footer map
1137 {
1138 rpResultEntry = pEntry;
1139 return &pStyle->GetItemSet().Get(ATTR_PAGE_FOOTERSET).GetItemSet();
1140 }
1141 }
1142 pEntry = pPropSet->getPropertyMap().getByName( rPropName );
1143 if ( pEntry )
1144 {
1145 rpResultEntry = pEntry;
1146 return &pStyle->GetItemSet();
1147 }
1148 }
1149
1150 rpResultEntry = nullptr;
1151 return nullptr;
1152}
1153
1154beans::PropertyState ScStyleObj::getPropertyState_Impl( std::u16string_view aPropertyName )
1155{
1156 beans::PropertyState eRet = beans::PropertyState_DIRECT_VALUE;
1157
1158 const SfxItemPropertyMapEntry* pResultEntry = nullptr;
1159 const SfxItemSet* pItemSet = GetStyleItemSet_Impl( aPropertyName, pResultEntry );
1160
1161 if ( pItemSet && pResultEntry )
1162 {
1163 sal_uInt16 nWhich = pResultEntry->nWID;
1164 if ( nWhich == SC_WID_UNO_TBLBORD || nWhich == SC_WID_UNO_TBLBORD2 )
1165 {
1166 nWhich = ATTR_BORDER;
1167 }
1168 if ( IsScItemWid( nWhich ) )
1169 {
1170 SfxItemState eState = pItemSet->GetItemState( nWhich, false );
1171
1172// // if no rotate value is set, look at orientation
1173// //! also for a fixed value of 0 (in case orientation is ambiguous)?
1174// if ( nWhich == ATTR_ROTATE_VALUE && eState == SfxItemState::DEFAULT )
1175// eState = pItemSet->GetItemState( ATTR_ORIENTATION, sal_False );
1176
1177 if ( eState == SfxItemState::SET )
1178 eRet = beans::PropertyState_DIRECT_VALUE;
1179 else if ( eState == SfxItemState::DEFAULT )
1180 eRet = beans::PropertyState_DEFAULT_VALUE;
1181 else if ( eState == SfxItemState::DONTCARE )
1182 eRet = beans::PropertyState_AMBIGUOUS_VALUE; // should not happen
1183 else
1184 {
1185 OSL_FAIL("unknown ItemState");
1186 }
1187 }
1188 }
1189 return eRet;
1190}
1191
1192beans::PropertyState SAL_CALL ScStyleObj::getPropertyState( const OUString& aPropertyName )
1193{
1194 SolarMutexGuard aGuard;
1195 GetStyle_Impl();
1196
1197 return getPropertyState_Impl( aPropertyName );
1198}
1199
1200uno::Sequence<beans::PropertyState> SAL_CALL ScStyleObj::getPropertyStates( const uno::Sequence<OUString>& aPropertyNames )
1201{
1202 SolarMutexGuard aGuard;
1203 GetStyle_Impl();
1204
1205 uno::Sequence<beans::PropertyState> aRet( aPropertyNames.getLength() );
1206 std::transform(aPropertyNames.begin(), aPropertyNames.end(), aRet.getArray(),
1207 [this](const OUString& rName) -> beans::PropertyState { return getPropertyState_Impl(rName); });
1208 return aRet;
1209}
1210
1211void SAL_CALL ScStyleObj::setPropertyToDefault( const OUString& aPropertyName )
1212{
1213 SolarMutexGuard aGuard;
1214 GetStyle_Impl();
1215
1216 const SfxItemPropertyMapEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
1217 if ( !pEntry )
1218 throw beans::UnknownPropertyException(aPropertyName);
1219
1220 setPropertyValue_Impl( aPropertyName, pEntry, nullptr );
1221}
1222
1223uno::Any ScStyleObj::getPropertyDefault_Impl( std::u16string_view aPropertyName )
1224{
1225 uno::Any aAny;
1226
1227 const SfxItemPropertyMapEntry* pResultEntry = nullptr;
1228 const SfxItemSet* pStyleSet = GetStyleItemSet_Impl( aPropertyName, pResultEntry );
1229
1230 if ( pStyleSet && pResultEntry )
1231 {
1232 sal_uInt16 nWhich = pResultEntry->nWID;
1233
1234 if ( IsScItemWid( nWhich ) )
1235 {
1236 // Default is default from ItemPool, not from Standard-Style,
1237 // so it is the same as in setPropertyToDefault
1238 SfxItemSet aEmptySet( *pStyleSet->GetPool(), pStyleSet->GetRanges() );
1239 // default items with wrong Slot-ID are not functional in SfxItemPropertySet3
1241 if ( aEmptySet.GetPool()->GetSlotId(nWhich) == nWhich &&
1242 aEmptySet.GetItemState(nWhich, false) == SfxItemState::DEFAULT )
1243 {
1244 aEmptySet.Put( aEmptySet.Get( nWhich ) );
1245 }
1246 const SfxItemSet* pItemSet = &aEmptySet;
1247
1248 switch ( nWhich ) // special item handling
1249 {
1250 case ATTR_VALUE_FORMAT:
1251 // default has no language set
1252 aAny <<= sal_Int32( static_cast<const SfxUInt32Item&>(pItemSet->Get(nWhich)).GetValue() );
1253 break;
1254 case ATTR_INDENT:
1255 aAny <<= sal_Int16( convertTwipToMm100(static_cast<const ScIndentItem&>(
1256 pItemSet->Get(nWhich)).GetValue()) );
1257 break;
1258 case ATTR_PAGE_SCALE:
1261 aAny <<= sal_Int16( static_cast<const SfxUInt16Item&>(pItemSet->Get(nWhich)).GetValue() );
1262 break;
1263 case ATTR_PAGE_CHARTS:
1264 case ATTR_PAGE_OBJECTS:
1265 case ATTR_PAGE_DRAWINGS:
1267 aAny <<= static_cast<const ScViewObjectModeItem&>(pItemSet->Get(nWhich)).GetValue() == VOBJ_MODE_SHOW;
1268 break;
1269 case ATTR_PAGE_SCALETO:
1270 {
1271 const ScPageScaleToItem aItem(static_cast<const ScPageScaleToItem&>(pItemSet->Get(nWhich)));
1272 if ( aPropertyName == SC_UNO_PAGE_SCALETOX )
1273 aAny <<= static_cast<sal_Int16>(aItem.GetWidth());
1274 else
1275 aAny <<= static_cast<sal_Int16>(aItem.GetHeight());
1276 }
1277 break;
1278 default:
1279 pPropSet->getPropertyValue( *pResultEntry, *pItemSet, aAny );
1280 }
1281 }
1282 else if ( IsScUnoWid( nWhich ) )
1283 {
1284 SfxItemSet aEmptySet( *pStyleSet->GetPool(), pStyleSet->GetRanges() );
1285 const SfxItemSet* pItemSet = &aEmptySet;
1286 switch ( nWhich )
1287 {
1288 case SC_WID_UNO_TBLBORD:
1290 {
1291 const SfxPoolItem& rItem = pItemSet->Get(ATTR_BORDER);
1292 SvxBoxItem aOuter(static_cast<const SvxBoxItem&>(rItem));
1294 if (nWhich == SC_WID_UNO_TBLBORD2)
1295 ScHelperFunctions::AssignTableBorder2ToAny(aAny, aOuter, aInner, true);
1296 else
1297 ScHelperFunctions::AssignTableBorderToAny(aAny, aOuter, aInner, true);
1298 }
1299 break;
1300 }
1301 }
1302 }
1303 return aAny;
1304}
1305
1306uno::Any SAL_CALL ScStyleObj::getPropertyDefault( const OUString& aPropertyName )
1307{
1308 SolarMutexGuard aGuard;
1309 GetStyle_Impl();
1310
1311 return getPropertyDefault_Impl( aPropertyName );
1312}
1313
1314uno::Sequence<uno::Any> SAL_CALL ScStyleObj::getPropertyDefaults( const uno::Sequence<OUString>& aPropertyNames )
1315{
1316 SolarMutexGuard aGuard;
1317 GetStyle_Impl();
1318
1319 uno::Sequence<uno::Any> aSequence( aPropertyNames.getLength() );
1320 std::transform(aPropertyNames.begin(), aPropertyNames.end(), aSequence.getArray(),
1321 [this](const OUString& rName) -> uno::Any { return getPropertyDefault_Impl(rName); });
1322 return aSequence;
1323}
1324
1325// XMultiPropertySet
1326
1327void SAL_CALL ScStyleObj::setPropertyValues( const uno::Sequence< OUString >& aPropertyNames,
1328 const uno::Sequence< uno::Any >& aValues )
1329{
1330 SolarMutexGuard aGuard;
1331 GetStyle_Impl();
1332
1333 if ( aValues.getLength() != aPropertyNames.getLength() )
1334 throw lang::IllegalArgumentException();
1335
1336 const OUString* pNames = aPropertyNames.getConstArray();
1337 const uno::Any* pValues = aValues.getConstArray();
1338 const SfxItemPropertyMap& rPropertyMap = pPropSet->getPropertyMap();
1339 for ( sal_Int32 i = 0; i < aPropertyNames.getLength(); i++ )
1340 {
1341 const SfxItemPropertyMapEntry* pEntry = rPropertyMap.getByName( pNames[i] );
1342 setPropertyValue_Impl( pNames[i], pEntry, &pValues[i] );
1343 }
1344}
1345
1346uno::Sequence<uno::Any> SAL_CALL ScStyleObj::getPropertyValues( const uno::Sequence< OUString >& aPropertyNames )
1347{
1348 SolarMutexGuard aGuard;
1349 GetStyle_Impl();
1350
1351 uno::Sequence<uno::Any> aSequence( aPropertyNames.getLength() );
1352 std::transform(aPropertyNames.begin(), aPropertyNames.end(), aSequence.getArray(),
1353 [this](const OUString& rName) -> uno::Any { return getPropertyValue_Impl(rName); });
1354 return aSequence;
1355}
1356
1357void SAL_CALL ScStyleObj::addPropertiesChangeListener( const uno::Sequence<OUString>& /* aPropertyNames */,
1358 const uno::Reference<beans::XPropertiesChangeListener>& /* xListener */ )
1359{
1360 // no bound properties
1361}
1362
1364 const uno::Reference<beans::XPropertiesChangeListener>& /* xListener */ )
1365{
1366 // no bound properties
1367}
1368
1369void SAL_CALL ScStyleObj::firePropertiesChangeEvent( const uno::Sequence<OUString>& /* aPropertyNames */,
1370 const uno::Reference<beans::XPropertiesChangeListener>& /* xListener */ )
1371{
1372 // no bound properties
1373}
1374
1375// XMultiPropertyStates
1376// getPropertyStates already defined for XPropertyState
1377
1379{
1380 SolarMutexGuard aGuard;
1381
1382 SfxStyleSheetBase* pStyle = GetStyle_Impl();
1383 if ( !pStyle )
1384 return;
1385
1386 // cell styles cannot be modified if any sheet is protected
1387 if ( eFamily == SfxStyleFamily::Para && lcl_AnyTabProtected( pDocShell->GetDocument() ) )
1388 throw uno::RuntimeException();
1389
1390 SfxItemSet& rSet = pStyle->GetItemSet();
1391 rSet.ClearItem(); // set all items to default
1392
1394
1395 ScDocument& rDoc = pDocShell->GetDocument();
1396 if ( eFamily == SfxStyleFamily::Para )
1397 {
1398 // row heights
1399
1401 Point aLogic = pVDev->LogicToPixel(Point(1000,1000), MapMode(MapUnit::MapTwip));
1402 double nPPTX = aLogic.X() / 1000.0;
1403 double nPPTY = aLogic.Y() / 1000.0;
1404 Fraction aZoom(1,1);
1405 rDoc.StyleSheetChanged( pStyle, false, pVDev, nPPTX, nPPTY, aZoom, aZoom );
1406
1407 if (!rDoc.IsImportingXML())
1408 {
1411 }
1412 }
1413 else
1414 {
1415 // #i22448# apply the default BoxInfoItem for page styles again
1416 // (same content as in ScStyleSheet::GetItemSet, to control the dialog)
1417 SvxBoxInfoItem aBoxInfoItem( ATTR_BORDER_INNER );
1418 aBoxInfoItem.SetTable( false );
1419 aBoxInfoItem.SetDist( true );
1420 aBoxInfoItem.SetValid( SvxBoxInfoItemValidFlags::DISTANCE );
1421 rSet.Put( aBoxInfoItem );
1422
1424 }
1425}
1426
1427void SAL_CALL ScStyleObj::setPropertiesToDefault( const uno::Sequence<OUString>& aPropertyNames )
1428{
1429 SolarMutexGuard aGuard;
1430 GetStyle_Impl();
1431
1432 const SfxItemPropertyMap& rPropertyMap = pPropSet->getPropertyMap();
1433 for ( const OUString& rName : aPropertyNames )
1434 {
1435 const SfxItemPropertyMapEntry* pEntry = rPropertyMap.getByName( rName );
1436 setPropertyValue_Impl( rName, pEntry, nullptr );
1437 }
1438}
1439
1440// beans::XPropertySet
1441
1442uno::Reference<beans::XPropertySetInfo> SAL_CALL ScStyleObj::getPropertySetInfo()
1443{
1444 SolarMutexGuard aGuard;
1445 return pPropSet->getPropertySetInfo();
1446}
1447
1448void SAL_CALL ScStyleObj::setPropertyValue( const OUString& aPropertyName, const uno::Any& aValue )
1449{
1450 SolarMutexGuard aGuard;
1451 GetStyle_Impl();
1452
1453 const SfxItemPropertyMapEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
1454 if ( !pEntry )
1455 throw beans::UnknownPropertyException(aPropertyName);
1456
1457 setPropertyValue_Impl( aPropertyName, pEntry, &aValue );
1458}
1459
1460void ScStyleObj::setPropertyValue_Impl( std::u16string_view rPropertyName, const SfxItemPropertyMapEntry* pEntry, const uno::Any* pValue )
1461{
1462 SfxStyleSheetBase* pStyle = GetStyle_Impl( true );
1463 if ( !(pStyle && pEntry) )
1464 return;
1465
1466 // cell styles cannot be modified if any sheet is protected
1467 if ( eFamily == SfxStyleFamily::Para && lcl_AnyTabProtected( pDocShell->GetDocument() ) )
1468 throw uno::RuntimeException();
1469
1470 SfxItemSet& rSet = pStyle->GetItemSet(); // change directly in active Style
1471 bool bDone = false;
1472 if ( eFamily == SfxStyleFamily::Page )
1473 {
1474 if(pEntry->nWID == SC_WID_UNO_HEADERSET)
1475 {
1476 const SfxItemPropertyMapEntry* pHeaderEntry = lcl_GetHeaderStyleMap()->getByName( rPropertyName );
1477 if ( pHeaderEntry ) // only item-WIDs in header/footer map
1478 {
1479 SvxSetItem aNewHeader( rSet.Get(ATTR_PAGE_HEADERSET) );
1480 if (pValue)
1481 pPropSet->setPropertyValue( *pHeaderEntry, *pValue, aNewHeader.GetItemSet() );
1482 else
1483 aNewHeader.GetItemSet().ClearItem( pHeaderEntry->nWID );
1484 rSet.Put( aNewHeader );
1485 bDone = true;
1486 }
1487 }
1488 else if(pEntry->nWID == SC_WID_UNO_FOOTERSET)
1489 {
1490 const SfxItemPropertyMapEntry* pFooterEntry = lcl_GetFooterStyleMap()->getByName( rPropertyName );
1491 if ( pFooterEntry ) // only item-WIDs in header/footer map
1492 {
1493 SvxSetItem aNewFooter( rSet.Get(ATTR_PAGE_FOOTERSET) );
1494 if (pValue)
1495 pPropSet->setPropertyValue( *pFooterEntry, *pValue, aNewFooter.GetItemSet() );
1496 else
1497 aNewFooter.GetItemSet().ClearItem( pFooterEntry->nWID );
1498 rSet.Put( aNewFooter );
1499 bDone = true;
1500 }
1501 }
1502 }
1503 if (!bDone)
1504 {
1505 if (IsScItemWid(pEntry->nWID))
1506 {
1507 if (pValue)
1508 {
1509 switch (pEntry->nWID) // special item handling
1510 {
1511 case ATTR_VALUE_FORMAT:
1512 {
1513 // language for number formats
1514 SvNumberFormatter* pFormatter
1516 sal_uInt32 nOldFormat = rSet.Get(ATTR_VALUE_FORMAT).GetValue();
1517 LanguageType eOldLang
1518 = rSet.Get(ATTR_LANGUAGE_FORMAT).GetLanguage();
1519 pFormatter->GetFormatForLanguageIfBuiltIn(nOldFormat, eOldLang);
1520
1521 sal_uInt32 nNewFormat = 0;
1522 *pValue >>= nNewFormat;
1524
1525 const SvNumberformat* pNewEntry = pFormatter->GetEntry(nNewFormat);
1526 LanguageType eNewLang
1527 = pNewEntry ? pNewEntry->GetLanguage() : LANGUAGE_DONTKNOW;
1528 if (eNewLang != eOldLang && eNewLang != LANGUAGE_DONTKNOW)
1530
1532 }
1533 break;
1534 case ATTR_INDENT:
1535 {
1536 sal_Int16 nVal = 0;
1537 *pValue >>= nVal;
1539 }
1540 break;
1541 case ATTR_ROTATE_VALUE:
1542 {
1543 sal_Int32 nRotVal = 0;
1544 if (*pValue >>= nRotVal)
1545 {
1546 // stored value is always between 0 and 360 deg.
1547 nRotVal %= 36000;
1548 if (nRotVal < 0)
1549 nRotVal += 36000;
1551 }
1552 }
1553 break;
1554 case ATTR_STACKED:
1555 {
1556 table::CellOrientation eOrient;
1557 if (*pValue >>= eOrient)
1558 {
1559 switch (eOrient)
1560 {
1561 case table::CellOrientation_STANDARD:
1563 break;
1564 case table::CellOrientation_TOPBOTTOM:
1566 rSet.Put(ScRotateValueItem(27000_deg100));
1567 break;
1568 case table::CellOrientation_BOTTOMTOP:
1570 rSet.Put(ScRotateValueItem(9000_deg100));
1571 break;
1572 case table::CellOrientation_STACKED:
1574 break;
1575 default:
1576 {
1577 // added to avoid warnings
1578 }
1579 }
1580 }
1581 }
1582 break;
1583 case ATTR_PAGE_SCALE:
1585 {
1589 sal_Int16 nVal = 0;
1590 *pValue >>= nVal;
1591 rSet.Put(SfxUInt16Item(pEntry->nWID, nVal));
1592 }
1593 break;
1595 {
1596 sal_Int16 nVal = 0;
1597 *pValue >>= nVal;
1599 }
1600 break;
1601 case ATTR_PAGE_CHARTS:
1602 case ATTR_PAGE_OBJECTS:
1603 case ATTR_PAGE_DRAWINGS:
1604 {
1605 bool bBool = false;
1606 *pValue >>= bBool;
1609 pEntry->nWID, bBool ? VOBJ_MODE_SHOW : VOBJ_MODE_HIDE));
1610 }
1611 break;
1612 case ATTR_PAGE_PAPERBIN:
1613 {
1615 bool bFound = false;
1616
1617 OUString aName;
1618 if (*pValue >>= aName)
1619 {
1621 bFound = true;
1622 else
1623 {
1624 Printer* pPrinter = pDocShell->GetPrinter();
1625 if (pPrinter)
1626 {
1627 const sal_uInt16 nCount = pPrinter->GetPaperBinCount();
1628 for (sal_uInt16 i = 0; i < nCount; i++)
1629 if (aName == pPrinter->GetPaperBinName(i))
1630 {
1631 nTray = static_cast<sal_uInt8>(i);
1632 bFound = true;
1633 break;
1634 }
1635 }
1636 }
1637 }
1638 if (!bFound)
1639 throw lang::IllegalArgumentException();
1640
1642
1643 }
1644 break;
1645 case ATTR_PAGE_SCALETO:
1646 {
1647 sal_Int16 nPages = 0;
1648 if (*pValue >>= nPages)
1649 {
1651 if (rPropertyName == SC_UNO_PAGE_SCALETOX)
1652 aItem.SetWidth(static_cast<sal_uInt16>(nPages));
1653 else
1654 aItem.SetHeight(static_cast<sal_uInt16>(nPages));
1655 rSet.Put(aItem);
1658 }
1659 }
1660 break;
1661 case ATTR_HIDDEN:
1662 {
1663 bool bHidden = false;
1664 if (*pValue >>= bHidden)
1665 pStyle->SetHidden(bHidden);
1666 }
1667 break;
1668 default:
1669 // default items with wrong Slot-ID are not working in SfxItemPropertySet3
1671 if (rSet.GetPool()->GetSlotId(pEntry->nWID) == pEntry->nWID
1672 && rSet.GetItemState(pEntry->nWID, false) == SfxItemState::DEFAULT)
1673 {
1674 rSet.Put(rSet.Get(pEntry->nWID));
1675 }
1676 pPropSet->setPropertyValue(*pEntry, *pValue, rSet);
1677 }
1678 }
1679 else
1680 {
1681 rSet.ClearItem(pEntry->nWID);
1682 // language for number formats
1683 if (pEntry->nWID == ATTR_VALUE_FORMAT)
1685
1687 }
1688 }
1689 else if (IsScUnoWid(pEntry->nWID))
1690 {
1691 switch (pEntry->nWID)
1692 {
1693 case SC_WID_UNO_TBLBORD:
1694 {
1695 if (pValue)
1696 {
1697 table::TableBorder aBorder;
1698 if (*pValue >>= aBorder)
1699 {
1700 SvxBoxItem aOuter(ATTR_BORDER);
1702 ScHelperFunctions::FillBoxItems(aOuter, aInner, aBorder);
1703 rSet.Put(aOuter);
1704 }
1705 }
1706 else
1707 {
1709 }
1710 }
1711 break;
1713 {
1714 if (pValue)
1715 {
1716 table::TableBorder2 aBorder2;
1717 if (*pValue >>= aBorder2)
1718 {
1719 SvxBoxItem aOuter(ATTR_BORDER);
1721 ScHelperFunctions::FillBoxItems(aOuter, aInner, aBorder2);
1722 rSet.Put(aOuter);
1723 }
1724 }
1725 else
1726 {
1728 }
1729 }
1730 break;
1731 }
1732 }
1733 }
1734
1737
1738 if ( eFamily == SfxStyleFamily::Para )
1739 {
1740 // If we are loading, we can delay line height calculation, because we are going to re-calc all of those
1741 // after load.
1742 if (pDocShell && !pDocShell->IsLoading())
1743 {
1744 // update line height
1746 Point aLogic = pVDev->LogicToPixel(Point(1000,1000), MapMode(MapUnit::MapTwip));
1747 double nPPTX = aLogic.X() / 1000.0;
1748 double nPPTY = aLogic.Y() / 1000.0;
1749 Fraction aZoom(1,1);
1750 ScDocument& rDoc = pDocShell->GetDocument();
1751 rDoc.StyleSheetChanged( pStyle, false, pVDev, nPPTX, nPPTY, aZoom, aZoom );
1752
1753 if (!rDoc.IsImportingXML())
1754 {
1757 }
1758 }
1759 }
1760 else
1761 {
1763
1765 }
1766}
1767
1768uno::Any ScStyleObj::getPropertyValue_Impl( std::u16string_view aPropertyName )
1769{
1770 uno::Any aAny;
1771 SfxStyleSheetBase* pStyle = GetStyle_Impl( true );
1772
1773 if ( aPropertyName == SC_UNONAME_DISPNAME ) // read-only
1774 {
1775 // core always has the display name
1776 if ( pStyle )
1777 aAny <<= pStyle->GetName();
1778 }
1779 else
1780 {
1781 const SfxItemPropertyMapEntry* pResultEntry = nullptr;
1782 const SfxItemSet* pItemSet = GetStyleItemSet_Impl( aPropertyName, pResultEntry );
1783
1784 if ( pItemSet && pResultEntry )
1785 {
1786 sal_uInt16 nWhich = pResultEntry->nWID;
1787
1788 if ( IsScItemWid( nWhich ) )
1789 {
1790 switch ( nWhich ) // for special item handling
1791 {
1792 case ATTR_VALUE_FORMAT:
1793 if ( pDocShell )
1794 {
1795 sal_uInt32 nOldFormat =
1796 pItemSet->Get( ATTR_VALUE_FORMAT ).GetValue();
1797 LanguageType eOldLang =
1798 pItemSet->Get( ATTR_LANGUAGE_FORMAT ).GetLanguage();
1799 nOldFormat = pDocShell->GetDocument().GetFormatTable()->
1800 GetFormatForLanguageIfBuiltIn( nOldFormat, eOldLang );
1801 aAny <<= nOldFormat;
1802 }
1803 break;
1804 case ATTR_INDENT:
1805 aAny <<= sal_Int16( convertTwipToMm100(static_cast<const ScIndentItem&>(
1806 pItemSet->Get(nWhich)).GetValue()) );
1807 break;
1808 case ATTR_STACKED:
1809 {
1810 Degree100 nRot = pItemSet->Get(ATTR_ROTATE_VALUE).GetValue();
1811 bool bStacked = static_cast<const ScVerticalStackCell&>(pItemSet->Get(nWhich)).GetValue();
1813 }
1814 break;
1815 case ATTR_PAGE_SCALE:
1818 aAny <<= sal_Int16( static_cast<const SfxUInt16Item&>(pItemSet->Get(nWhich)).GetValue() );
1819 break;
1820 case ATTR_PAGE_CHARTS:
1821 case ATTR_PAGE_OBJECTS:
1822 case ATTR_PAGE_DRAWINGS:
1824 aAny <<= static_cast<const ScViewObjectModeItem&>(pItemSet->Get(nWhich)).GetValue() == VOBJ_MODE_SHOW;
1825 break;
1826 case ATTR_PAGE_PAPERBIN:
1827 {
1828 // property PrinterPaperTray is the name of the tray
1829
1830 sal_uInt8 nValue = static_cast<const SvxPaperBinItem&>(pItemSet->Get(nWhich)).GetValue();
1831 OUString aName;
1834 else
1835 {
1836 Printer* pPrinter = pDocShell->GetPrinter();
1837 if (pPrinter)
1838 aName = pPrinter->GetPaperBinName( nValue );
1839 }
1840 aAny <<= aName;
1841 }
1842 break;
1843 case ATTR_PAGE_SCALETO:
1844 {
1845 const ScPageScaleToItem& aItem(pItemSet->Get(ATTR_PAGE_SCALETO));
1846 if ( aPropertyName == SC_UNO_PAGE_SCALETOX )
1847 aAny <<= static_cast<sal_Int16>(aItem.GetWidth());
1848 else
1849 aAny <<= static_cast<sal_Int16>(aItem.GetHeight());
1850 }
1851 break;
1852 case ATTR_HIDDEN:
1853 {
1854 bool bHidden = pStyle && pStyle->IsHidden();
1855 aAny <<= bHidden;
1856 }
1857 break;
1858 default:
1859 // Default-Items with wrong Slot-ID don't work in SfxItemPropertySet3
1861 if ( pItemSet->GetPool()->GetSlotId(nWhich) == nWhich &&
1862 pItemSet->GetItemState(nWhich, false) == SfxItemState::DEFAULT )
1863 {
1864 SfxItemSet aNoEmptySet( *pItemSet );
1865 aNoEmptySet.Put( aNoEmptySet.Get( nWhich ) );
1866 pPropSet->getPropertyValue( *pResultEntry, aNoEmptySet, aAny );
1867 }
1868 else
1869 pPropSet->getPropertyValue( *pResultEntry, *pItemSet, aAny );
1870 }
1871 }
1872 else if ( IsScUnoWid( nWhich ) )
1873 {
1874 switch ( nWhich )
1875 {
1876 case SC_WID_UNO_TBLBORD:
1878 {
1879 const SfxPoolItem& rItem = pItemSet->Get(ATTR_BORDER);
1880 SvxBoxItem aOuter(static_cast<const SvxBoxItem&>(rItem));
1882 if (nWhich == SC_WID_UNO_TBLBORD2)
1883 ScHelperFunctions::AssignTableBorder2ToAny(aAny, aOuter, aInner,
1884 true);
1885 else
1886 ScHelperFunctions::AssignTableBorderToAny(aAny, aOuter, aInner,
1887 true);
1888 }
1889 break;
1890 }
1891 }
1892 }
1893 }
1894
1895 return aAny;
1896}
1897
1898uno::Any SAL_CALL ScStyleObj::getPropertyValue( const OUString& aPropertyName )
1899{
1900 SolarMutexGuard aGuard;
1901 GetStyle_Impl();
1902
1903 return getPropertyValue_Impl( aPropertyName );
1904}
1905
1907
1908// lang::XServiceInfo
1909
1910OUString SAL_CALL ScStyleObj::getImplementationName()
1911{
1912 return "ScStyleObj";
1913}
1914
1915sal_Bool SAL_CALL ScStyleObj::supportsService( const OUString& rServiceName )
1916{
1917 return cppu::supportsService(this, rServiceName);
1918}
1919
1920uno::Sequence<OUString> SAL_CALL ScStyleObj::getSupportedServiceNames()
1921{
1922 const bool bPage = ( eFamily == SfxStyleFamily::Page );
1923
1924 return {SCSTYLE_SERVICE,
1925 (bPage ? OUString(SCPAGESTYLE_SERVICE)
1926 : OUString(SCCELLSTYLE_SERVICE))};
1927}
1928
1929/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const PropertyValue * pValues
const SCTAB MAXTAB
Definition: address.hxx:70
sal_uInt16 GetPaperBinCount() const
OUString GetPaperBinName(sal_uInt16 nPaperBin) const
void SetDocumentModified()
Definition: docsh.cxx:2959
SfxBindings * GetViewBindings()
Definition: docsh4.cxx:2632
const ScDocument & GetDocument() const
Definition: docsh.hxx:220
void LoadStylesArgs(ScDocShell &rSource, bool bReplace, bool bCellStyles, bool bPageStyles)
Definition: docsh6.cxx:245
void PostPaint(SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, PaintPartFlags nPart, sal_uInt16 nExtFlags=0)
Definition: docsh3.cxx:101
SfxPrinter * GetPrinter(bool bCreateIfNotExist=true)
Definition: docsh3.cxx:451
void PageStyleModified(std::u16string_view rStyleName, bool bApi)
Definition: docsh4.cxx:1768
ScDocShell * GetDocShell()
Definition: tablink.hxx:90
void CellStyleCreated(std::u16string_view rName, const ScDocument &rDoc)
Definition: docpool.cxx:368
bool RemovePageStyleInUse(std::u16string_view rStrPageStyle)
Definition: documen8.cxx:325
SC_DLLPUBLIC SCCOL MaxCol() const
Definition: document.hxx:891
SC_DLLPUBLIC ScDocumentPool * GetPool()
Definition: document.cxx:6170
SC_DLLPUBLIC SCROW MaxRow() const
Definition: document.hxx:892
void AddUnoObject(SfxListener &rObject)
Definition: documen3.cxx:907
SC_DLLPUBLIC ScStyleSheetPool * GetStyleSheetPool() const
Definition: document.cxx:6175
void StyleSheetChanged(const SfxStyleSheetBase *pStyleSheet, bool bRemoved, OutputDevice *pDev, double nPPTX, double nPPTY, const Fraction &rZoomX, const Fraction &rZoomY)
Definition: document.cxx:5032
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
Definition: documen2.cxx:467
void RemoveUnoObject(SfxListener &rObject)
Definition: documen3.cxx:915
bool IsImportingXML() const
Definition: document.hxx:2222
static void AssignTableBorder2ToAny(css::uno::Any &rAny, const SvxBoxItem &rOuter, const SvxBoxInfoItem &rInner, bool bInvalidateHorVerDist=false)
Definition: cellsuno.cxx:1019
static void FillBoxItems(SvxBoxItem &rOuter, SvxBoxInfoItem &rInner, const css::table::TableBorder &rBorder)
static void AssignTableBorderToAny(css::uno::Any &rAny, const SvxBoxItem &rOuter, const SvxBoxInfoItem &rInner, bool bInvalidateHorVerDist=false)
Definition: cellsuno.cxx:1011
Contains the "scale to width/height" attribute in page styles.
Definition: attrib.hxx:225
sal_uInt16 GetHeight() const
Definition: attrib.hxx:243
sal_uInt16 GetWidth() const
Definition: attrib.hxx:242
void SetHeight(sal_uInt16 nHeight)
Definition: attrib.hxx:247
void SetWidth(sal_uInt16 nWidth)
Definition: attrib.hxx:246
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: styleuno.cxx:511
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: styleuno.cxx:478
virtual sal_Bool SAL_CALL hasElements() override
Definition: styleuno.cxx:493
rtl::Reference< ScStyleFamilyObj > GetObjectByName_Impl(std::u16string_view aName) const
Definition: styleuno.cxx:458
virtual css::uno::Type SAL_CALL getElementType() override
Definition: styleuno.cxx:488
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: styleuno.cxx:516
virtual ~ScStyleFamiliesObj() override
Definition: styleuno.cxx:417
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:570
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: styleuno.cxx:501
rtl::Reference< ScStyleFamilyObj > GetObjectByIndex_Impl(sal_uInt32 nIndex) const
Definition: styleuno.cxx:450
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getStyleLoaderOptions() override
Definition: styleuno.cxx:558
ScDocShell * pDocShell
Definition: styleuno.hxx:55
virtual sal_Int32 SAL_CALL getCount() override
Definition: styleuno.cxx:473
void loadStylesFromDocShell(ScDocShell *pSource, const css::uno::Sequence< css::beans::PropertyValue > &aOptions)
Definition: styleuno.cxx:584
ScStyleFamiliesObj(ScDocShell *pDocSh)
Definition: styleuno.cxx:411
virtual void SAL_CALL loadStylesFromURL(const OUString &URL, const css::uno::Sequence< css::beans::PropertyValue > &aOptions) override
Definition: styleuno.cxx:523
rtl::Reference< ScStyleFamilyObj > GetObjectByType_Impl(SfxStyleFamily nType) const
Definition: styleuno.cxx:437
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: styleuno.cxx:425
SfxStyleFamily eFamily
Definition: styleuno.hxx:109
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: styleuno.cxx:872
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: styleuno.cxx:927
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: styleuno.cxx:878
ScStyleFamilyObj(ScDocShell *pDocSh, SfxStyleFamily eFam)
Definition: styleuno.cxx:613
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: styleuno.cxx:827
virtual sal_Int32 SAL_CALL getCount() override
Definition: styleuno.cxx:779
rtl::Reference< ScStyleObj > GetObjectByIndex_Impl(sal_Int32 nIndex)
Definition: styleuno.cxx:640
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: styleuno.cxx:628
virtual sal_Bool SAL_CALL hasElements() override
Definition: styleuno.cxx:808
virtual void SAL_CALL insertByName(const OUString &aName, const css::uno::Any &aElement) override
Definition: styleuno.cxx:672
virtual void SAL_CALL replaceByName(const OUString &aName, const css::uno::Any &aElement) override
Definition: styleuno.cxx:716
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: styleuno.cxx:816
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: styleuno.cxx:793
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: styleuno.cxx:912
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: styleuno.cxx:855
ScDocShell * pDocShell
Definition: styleuno.hxx:108
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: styleuno.cxx:922
virtual ~ScStyleFamilyObj() override
Definition: styleuno.cxx:620
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: styleuno.cxx:883
virtual void SAL_CALL removeByName(const OUString &Name) override
Definition: styleuno.cxx:724
rtl::Reference< ScStyleObj > GetObjectByName_Impl(const OUString &Name)
Definition: styleuno.cxx:660
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: styleuno.cxx:917
virtual css::uno::Type SAL_CALL getElementType() override
Definition: styleuno.cxx:803
static SC_DLLPUBLIC OUString ProgrammaticToDisplayName(const OUString &rProgName, SfxStyleFamily nType)
static OUString DisplayToProgrammaticName(const OUString &rDispName, SfxStyleFamily nType)
ScDocShell * pDocShell
Definition: styleuno.hxx:168
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: styleuno.cxx:1327
ScStyleObj()=delete
OUString aStyleName
Definition: styleuno.hxx:170
css::beans::PropertyState getPropertyState_Impl(std::u16string_view PropertyName)
Definition: styleuno.cxx:1154
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: styleuno.cxx:1915
virtual OUString SAL_CALL getParentStyle() override
Definition: styleuno.cxx:1010
virtual void SAL_CALL setParentStyle(const OUString &aParentStyle) override
Definition: styleuno.cxx:1019
virtual sal_Bool SAL_CALL isUserDefined() override
Definition: styleuno.cxx:992
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: styleuno.cxx:1920
bool IsInserted() const
Definition: styleuno.hxx:198
void setPropertyValue_Impl(std::u16string_view rPropertyName, const SfxItemPropertyMapEntry *pEntry, const css::uno::Any *pValue)
Definition: styleuno.cxx:1460
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: styleuno.cxx:1448
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
Definition: styleuno.cxx:1200
const SfxItemPropertySet * pPropSet
Definition: styleuno.hxx:167
virtual void SAL_CALL setAllPropertiesToDefault() override
Definition: styleuno.cxx:1378
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: styleuno.cxx:1363
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: styleuno.cxx:1346
SfxStyleFamily GetFamily() const
Definition: styleuno.hxx:199
virtual OUString SAL_CALL getName() override
Definition: styleuno.cxx:1068
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: styleuno.cxx:965
const SfxItemSet * GetStyleItemSet_Impl(std::u16string_view rPropName, const SfxItemPropertyMapEntry *&rpEntry)
Definition: styleuno.cxx:1120
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: styleuno.cxx:1357
virtual sal_Bool SAL_CALL isInUse() override
Definition: styleuno.cxx:1001
virtual ~ScStyleObj() override
Definition: styleuno.cxx:957
static css::uno::Reference< css::container::XIndexReplace > CreateEmptyNumberingRules()
Definition: styleuno.cxx:1112
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: styleuno.cxx:1306
SfxStyleSheetBase * GetStyle_Impl(bool bUseCachedValue=false)
Definition: styleuno.cxx:975
virtual void SAL_CALL setName(const OUString &aName) override
Definition: styleuno.cxx:1077
SfxStyleSheetBase * pStyle_cached
Definition: styleuno.hxx:171
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: styleuno.cxx:1192
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: styleuno.cxx:1427
void InitDoc(ScDocShell *pNewDocSh, const OUString &rNewName)
Definition: styleuno.cxx:947
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: styleuno.cxx:1211
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: styleuno.cxx:1314
css::uno::Any getPropertyValue_Impl(std::u16string_view aPropertyName)
Definition: styleuno.cxx:1768
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
Definition: styleuno.cxx:1369
SfxStyleFamily eFamily
Definition: styleuno.hxx:169
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: styleuno.cxx:1442
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: styleuno.cxx:1898
css::uno::Any getPropertyDefault_Impl(std::u16string_view aPropertyName)
Definition: styleuno.cxx:1223
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
Definition: stlpool.cxx:72
virtual void Remove(SfxStyleSheetBase *pStyle) override
Definition: stlpool.cxx:116
static bool GetBoolFromAny(const css::uno::Any &aAny)
Definition: miscuno.cxx:139
void Invalidate(sal_uInt16 nId)
SfxHintId GetId() const
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
void setPropertyValue(const SfxItemPropertyMapEntry &rEntry, const css::uno::Any &aVal, SfxItemSet &rSet) const
const SfxItemPropertyMap & getPropertyMap() const
void getPropertyValue(const SfxItemPropertyMapEntry &rEntry, const SfxItemSet &rSet, css::uno::Any &rAny) const
css::uno::Reference< css::beans::XPropertySetInfo > const & getPropertySetInfo() const
const WhichRangesContainer & GetRanges() const
SfxItemPool * GetPool() const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
static SfxObjectShell * GetShellFromComponent(const css::uno::Reference< css::uno::XInterface > &xComp)
bool IsLoading() const
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All) const
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true)
virtual const OUString & GetParent() const
const OUString & GetName() const
virtual void SetHidden(bool bValue)
bool IsUserDefined() const
virtual bool IsHidden() const
virtual bool SetParent(const OUString &)
virtual SfxItemSet & GetItemSet()
virtual bool IsUsed() const
virtual sal_Int32 Count()
virtual SfxStyleSheetBase * Next()
virtual SfxStyleSheetBase * First()
const SvNumberformat * GetEntry(sal_uInt32 nKey) const
sal_uInt32 GetFormatForLanguageIfBuiltIn(sal_uInt32 nFormat, LanguageType eLnge=LANGUAGE_DONTKNOW)
LanguageType GetLanguage() const
void SetTable(bool bNew)
void SetDist(bool bNew)
void SetValid(SvxBoxInfoItemValidFlags nValid, bool bValid=true)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
css::uno::Type const & get()
int nCount
constexpr double nPPTX
constexpr double nPPTY
URL aURL
float u
sal_Int16 nValue
OUString sDisplayName
@ VOBJ_MODE_SHOW
Definition: global.hxx:368
@ VOBJ_MODE_HIDE
Definition: global.hxx:369
sal_Int32 nIndex
OUString aName
#define LANGUAGE_DONTKNOW
sal_uInt16 nPos
Sequence< sal_Int8 > aSeq
#define MID_SIZE_HEIGHT
#define MID_SIZE_WIDTH
#define MID_SIZE_SIZE
#define MID_TL_HASCOLOR
#define BOTTOM_BORDER
#define MID_HORJUST_ADJUST
#define MID_BACK_COLOR
#define MID_LO_MARGIN
#define MID_LANG_LOCALE
#define MID_RELIEF
#define MID_EMPHASIS
#define MID_FONT_PITCH
#define MID_GRAPHIC_URL
#define MID_GRAPHIC_POSITION
#define MID_FONT_CHAR_SET
#define BORDER_DISTANCE
#define TOP_BORDER
#define LEFT_BORDER_DISTANCE
#define RIGHT_BORDER
#define MID_POSTURE
#define MID_R_MARGIN
#define MID_FONTHEIGHT
#define TOP_BORDER_DISTANCE
#define RIGHT_BORDER_DISTANCE
#define MID_FONT_FAMILY
#define MID_CROSSED_OUT
#define BOTTOM_BORDER_DISTANCE
#define MID_WEIGHT
#define MID_L_MARGIN
#define MID_TL_STYLE
#define MID_HORJUST_HORJUST
#define MID_GRAPHIC_TRANSPARENT
#define MID_UP_MARGIN
#define MID_GRAPHIC
#define MID_TL_COLOR
#define LEFT_BORDER
#define MID_CROSS_OUT
#define MID_FONT_FAMILY_NAME
#define MID_FONT_STYLE_NAME
#define MID_GRAPHIC_FILTER
#define SC_SIMPLE_SERVICE_INFO(ClassName, ClassNameAscii, ServiceAscii)
Definition: miscuno.hxx:63
#define SC_IMPL_DUMMY_PROPERTY_LISTENER(ClassName)
Definition: miscuno.hxx:72
css::uno::Sequence< css::beans::PropertyValue > InitPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
int i
OUString aPropName
constexpr auto toTwips(N number, Length from)
sal_Int16 nId
const char GetValue[]
#define PAPERBIN_PRINTER_SETTINGS
#define CONVERT_TWIPS
SfxItemState
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:398
OUString ScResId(TranslateId aId)
Definition: scdll.cxx:90
constexpr TypedWhichId< ScIndentItem > ATTR_INDENT(131)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALE(175)
constexpr TypedWhichId< SfxBoolItem > ATTR_HIDDEN(189)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_SHARED(166)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_FONT_HEIGHT(101)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_FOOTERLEFT(179)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_HEADERLEFT(178)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_HORCENTER(162)
constexpr TypedWhichId< SfxBoolItem > ATTR_VERTICAL_ASIAN(137)
constexpr TypedWhichId< SvxFontItem > ATTR_CJK_FONT(111)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_DYNAMIC(165)
constexpr TypedWhichId< SvxSizeItem > ATTR_PAGE_SIZE(161)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_NULLVALS(187)
constexpr TypedWhichId< SfxStringItem > ATTR_HYPERLINK(155)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_VERCENTER(163)
constexpr TypedWhichId< SvxForbiddenRuleItem > ATTR_FORBIDDEN_RULES(128)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_HEADERS(170)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_HEADERSET(184)
constexpr TypedWhichId< SvxPostureItem > ATTR_CTL_FONT_POSTURE(119)
constexpr TypedWhichId< SvxFontItem > ATTR_CTL_FONT(116)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CJK_FONT_HEIGHT(112)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_FORMULAS(186)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_FOOTERRIGHT(181)
constexpr TypedWhichId< SvxPostureItem > ATTR_FONT_POSTURE(103)
constexpr TypedWhichId< SvxWeightItem > ATTR_FONT_WEIGHT(102)
constexpr TypedWhichId< SvxColorItem > ATTR_FONT_COLOR(109)
constexpr TypedWhichId< SvxWeightItem > ATTR_CJK_FONT_WEIGHT(113)
constexpr TypedWhichId< SvxEmphasisMarkItem > ATTR_FONT_EMPHASISMARK(121)
constexpr TypedWhichId< ScShrinkToFitCell > ATTR_SHRINKTOFIT(140)
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_TLBR(141)
constexpr TypedWhichId< SvxShadowedItem > ATTR_FONT_SHADOWED(108)
constexpr TypedWhichId< SvxULSpaceItem > ATTR_ULSPACE(158)
constexpr TypedWhichId< SvxScriptSpaceItem > ATTR_SCRIPTSPACE(126)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_GRID(169)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_TOPDOWN(174)
constexpr TypedWhichId< SvxWordLineModeItem > ATTR_FONT_WORDLINE(123)
constexpr TypedWhichId< ScViewObjectModeItem > ATTR_PAGE_CHARTS(171)
constexpr TypedWhichId< ScViewObjectModeItem > ATTR_PAGE_OBJECTS(172)
constexpr TypedWhichId< SvxContourItem > ATTR_FONT_CONTOUR(107)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CTL_FONT_LANGUAGE(120)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_HEADERRIGHT(180)
constexpr TypedWhichId< SvxBrushItem > ATTR_BACKGROUND(148)
constexpr TypedWhichId< SvxOverlineItem > ATTR_FONT_OVERLINE(105)
constexpr TypedWhichId< SvxPaperBinItem > ATTR_PAGE_PAPERBIN(160)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_FIRSTPAGENO(177)
constexpr TypedWhichId< SvxShadowItem > ATTR_SHADOW(152)
constexpr TypedWhichId< SvxLanguageItem > ATTR_LANGUAGE_FORMAT(147)
constexpr TypedWhichId< ScRotateValueItem > ATTR_ROTATE_VALUE(135)
constexpr TypedWhichId< SvxJustifyMethodItem > ATTR_VER_JUSTIFY_METHOD(133)
constexpr TypedWhichId< SvxHorJustifyItem > ATTR_HOR_JUSTIFY(129)
constexpr TypedWhichId< SvxBoxInfoItem > ATTR_BORDER_INNER(151)
constexpr TypedWhichId< SvxPageItem > ATTR_PAGE(159)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_NOTES(168)
constexpr TypedWhichId< SvxHangingPunctuationItem > ATTR_HANGPUNCTUATION(127)
constexpr TypedWhichId< SvxRotateModeItem > ATTR_ROTATE_MODE(136)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_HEADERFIRST(182)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
constexpr TypedWhichId< SvxJustifyMethodItem > ATTR_HOR_JUSTIFY_METHOD(130)
constexpr TypedWhichId< SvxCharReliefItem > ATTR_FONT_RELIEF(124)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_FOOTERFIRST(183)
constexpr TypedWhichId< ScPageScaleToItem > ATTR_PAGE_SCALETO(188)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
constexpr TypedWhichId< SvxFrameDirectionItem > ATTR_WRITINGDIR(138)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_SHARED_FIRST(167)
constexpr TypedWhichId< SvxCrossedOutItem > ATTR_FONT_CROSSEDOUT(106)
constexpr TypedWhichId< SvxMarginItem > ATTR_MARGIN(143)
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_BLTR(142)
constexpr TypedWhichId< ScVerticalStackCell > ATTR_STACKED(134)
constexpr TypedWhichId< SvxVerJustifyItem > ATTR_VER_JUSTIFY(132)
constexpr TypedWhichId< ScHyphenateCell > ATTR_HYPHENATE(125)
constexpr TypedWhichId< SvxFontItem > ATTR_FONT(100)
constexpr TypedWhichId< ScProtectionAttr > ATTR_PROTECTION(149)
constexpr TypedWhichId< SvxLanguageItem > ATTR_FONT_LANGUAGE(110)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALETOPAGES(176)
constexpr TypedWhichId< SvxWeightItem > ATTR_CTL_FONT_WEIGHT(118)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_FOOTERSET(185)
constexpr TypedWhichId< SvXMLAttrContainerItem > ATTR_USERDEF(122)
constexpr TypedWhichId< ScViewObjectModeItem > ATTR_PAGE_DRAWINGS(173)
constexpr TypedWhichId< ScLineBreakCell > ATTR_LINEBREAK(139)
constexpr TypedWhichId< SvxPostureItem > ATTR_CJK_FONT_POSTURE(114)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CJK_FONT_LANGUAGE(115)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CTL_FONT_HEIGHT(117)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_ON(164)
constexpr TypedWhichId< SvxLRSpaceItem > ATTR_LRSPACE(157)
constexpr TypedWhichId< SvxUnderlineItem > ATTR_FONT_UNDERLINE(104)
static SfxItemSet & rSet
SfxStyleFamily
constexpr OUStringLiteral SCPAGESTYLE_SERVICE
Definition: styleuno.cxx:395
constexpr OUStringLiteral SC_FAMILYNAME_CELL
Definition: styleuno.cxx:388
#define SC_STYLE_FAMILY_COUNT
Definition: styleuno.cxx:386
static const SfxItemPropertySet * lcl_GetCellStyleSet()
Definition: styleuno.cxx:80
static const SfxItemPropertySet * lcl_GetPageStyleSet()
Definition: styleuno.cxx:179
const SfxStyleFamily aStyleFamilyTypes[SC_STYLE_FAMILY_COUNT]
Definition: styleuno.cxx:391
static const SfxItemPropertyMap * lcl_GetHeaderStyleMap()
Definition: styleuno.cxx:306
constexpr OUStringLiteral SC_PAPERBIN_DEFAULTNAME
Definition: styleuno.cxx:400
constexpr OUStringLiteral SCSTYLE_SERVICE
Definition: styleuno.cxx:393
static const SfxItemPropertyMap * lcl_GetFooterStyleMap()
Definition: styleuno.cxx:346
constexpr OUStringLiteral SC_FAMILYNAME_PAGE
Definition: styleuno.cxx:389
constexpr OUStringLiteral SCCELLSTYLE_SERVICE
Definition: styleuno.cxx:394
static bool lcl_AnyTabProtected(const ScDocument &rDoc)
Definition: styleuno.cxx:402
unsigned char sal_uInt8
unsigned char sal_Bool
sal_Int16 SCTAB
Definition: types.hxx:22
#define MID_MARGIN_LO_MARGIN
#define MID_PAGE_ORIENTATION
#define MID_PAGE_LAYOUT
#define MID_MARGIN_R_MARGIN
#define MID_MARGIN_L_MARGIN
#define MID_MARGIN_UP_MARGIN
#define MID_PAGE_NUMTYPE
SVXCORE_DLLPUBLIC css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule(SdrModel *pModel)
constexpr OUStringLiteral SC_UNO_PAGE_FTRSHARED
Definition: unonames.hxx:501
constexpr OUStringLiteral SC_UNO_PAGE_CENTERVER
Definition: unonames.hxx:433
constexpr OUStringLiteral OLD_UNO_PAGE_BACKTRANS
Definition: unonames.hxx:392
constexpr OUStringLiteral SC_UNONAME_PADJUST
Definition: unonames.hxx:146
constexpr OUStringLiteral OLD_UNO_PAGE_FTRON
Definition: unonames.hxx:402
constexpr OUStringLiteral SC_UNO_CJK_CFFAMIL
Definition: unonames.hxx:79
constexpr OUStringLiteral SC_UNO_CJK_CFPITCH
Definition: unonames.hxx:81
constexpr OUStringLiteral SC_UNONAME_LEFTBORDER2
Definition: unonames.hxx:130
constexpr OUStringLiteral SC_UNONAME_DISPNAME
Definition: unonames.hxx:152
constexpr OUStringLiteral SC_UNO_PAGE_GRAPHIC
Definition: unonames.hxx:410
constexpr OUStringLiteral SC_UNONAME_TOPBORDER
Definition: unonames.hxx:127
constexpr OUStringLiteral SC_UNO_CJK_CPOST
Definition: unonames.hxx:84
constexpr OUStringLiteral SC_UNONAME_CEMPHAS
Definition: unonames.hxx:68
constexpr OUStringLiteral SC_UNONAME_PRMARGIN
Definition: unonames.hxx:117
constexpr OUStringLiteral SC_UNO_PAGE_HDRTOPBOR
Definition: unonames.hxx:465
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTFTRSHARED
Definition: unonames.hxx:447
constexpr OUStringLiteral SC_UNONAME_COVRLHAS
Definition: unonames.hxx:59
constexpr OUStringLiteral SC_UNONAME_CFCHARS
Definition: unonames.hxx:72
constexpr OUStringLiteral SC_UNO_PAGE_HDRGRFFILT
Definition: unonames.hxx:458
constexpr OUStringLiteral SC_UNO_PAGE_PRINTDRAW
Definition: unonames.hxx:439
constexpr OUStringLiteral SC_UNONAME_LOADCELL
Definition: unonames.hxx:156
constexpr OUStringLiteral SC_UNONAME_CLOCAL
Definition: unonames.hxx:64
constexpr OUStringLiteral SC_UNONAME_HYPERLINK
Definition: unonames.hxx:199
constexpr OUStringLiteral SC_UNO_PAGE_HDRSHARED
Definition: unonames.hxx:478
constexpr OUStringLiteral SC_UNO_PAGE_SIZE
Definition: unonames.hxx:429
constexpr OUStringLiteral OLD_UNO_PAGE_HDRBACKCOL
Definition: unonames.hxx:393
constexpr OUStringLiteral SC_UNO_CJK_CFCHARS
Definition: unonames.hxx:80
constexpr OUStringLiteral SC_UNO_PAGE_HDRRIGHTMAR
Definition: unonames.hxx:473
constexpr OUStringLiteral SC_UNONAME_TOPBORDER2
Definition: unonames.hxx:132
constexpr OUStringLiteral SC_UNONAME_PISHYPHEN
Definition: unonames.hxx:145
constexpr OUStringLiteral SC_UNO_PAGE_RIGHTMARGIN
Definition: unonames.hxx:422
constexpr OUStringLiteral SC_UNO_PAGE_FTRTOPBOR
Definition: unonames.hxx:488
constexpr OUStringLiteral SC_UNONAME_BOTTBORDER
Definition: unonames.hxx:124
constexpr OUStringLiteral SC_UNONAME_WRITING
Definition: unonames.hxx:121
constexpr OUStringLiteral SC_UNONAME_CELLVJUS_METHOD
Definition: unonames.hxx:105
constexpr OUStringLiteral SC_UNO_PAGE_BACKTRANS
Definition: unonames.hxx:406
constexpr OUStringLiteral SC_UNO_PAGE_HDRBODYDIST
Definition: unonames.hxx:474
constexpr OUStringLiteral SC_UNO_PAGE_FTRRIGHTBOR
Definition: unonames.hxx:486
#define SC_UNO_PAGE_TOPBORDER
Definition: unonames.hxx:414
constexpr OUStringLiteral SC_UNO_PAGE_PRINTZERO
Definition: unonames.hxx:455
constexpr OUStringLiteral SC_UNO_PAGE_NUMBERTYPE
Definition: unonames.hxx:426
constexpr OUStringLiteral SC_UNO_PAGE_PRINTANNOT
Definition: unonames.hxx:434
constexpr OUStringLiteral SC_UNONAME_LOADPAGE
Definition: unonames.hxx:157
constexpr OUStringLiteral SC_UNONAME_CSHADD
Definition: unonames.hxx:65
constexpr OUStringLiteral SC_UNONAME_CRELIEF
Definition: unonames.hxx:74
constexpr OUStringLiteral SC_UNO_PAGE_PAPERTRAY
Definition: unonames.hxx:428
constexpr OUStringLiteral SC_UNO_CTL_CFNAME
Definition: unonames.hxx:87
constexpr OUStringLiteral SC_UNO_PAGE_FTRON
Definition: unonames.hxx:499
constexpr OUStringLiteral SC_UNO_CJK_CWEIGHT
Definition: unonames.hxx:83
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTPAGE
Definition: unonames.hxx:445
constexpr OUStringLiteral SC_UNONAME_CUNDLHAS
Definition: unonames.hxx:56
constexpr OUStringLiteral SC_UNONAME_NUMFMT
Definition: unonames.hxx:107
constexpr OUStringLiteral SC_UNO_PAGE_LEFTBRDDIST
Definition: unonames.hxx:415
constexpr OUStringLiteral SC_UNO_PAGE_HDRRIGHTBDIS
Definition: unonames.hxx:467
constexpr OUStringLiteral SC_UNONAME_WRAP
Definition: unonames.hxx:112
constexpr OUStringLiteral SC_UNO_PAGE_FTRBACKCOL
Definition: unonames.hxx:479
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTFTRCONT
Definition: unonames.hxx:453
constexpr OUStringLiteral SC_UNONAME_CPOST
Definition: unonames.hxx:61
constexpr OUStringLiteral SC_UNO_PAGE_PRINTGRID
Definition: unonames.hxx:435
constexpr OUStringLiteral SC_UNO_PAGE_LEFTHDRCONT
Definition: unonames.hxx:448
constexpr OUStringLiteral SC_UNO_PAGE_GRAPHICURL
Definition: unonames.hxx:409
constexpr OUStringLiteral SC_UNO_PAGE_FTRBODYDIST
Definition: unonames.hxx:497
constexpr OUStringLiteral SC_UNO_CTL_CFFAMIL
Definition: unonames.hxx:89
constexpr OUStringLiteral SC_UNO_PAGE_LANDSCAPE
Definition: unonames.hxx:425
constexpr OUStringLiteral SC_UNO_PAGE_HDRDYNAMIC
Definition: unonames.hxx:477
constexpr OUStringLiteral OLD_UNO_PAGE_HDRSHARED
Definition: unonames.hxx:395
constexpr OUStringLiteral SC_UNONAME_HIDDEN
Definition: unonames.hxx:122
constexpr OUStringLiteral SC_UNONAME_CFFAMIL
Definition: unonames.hxx:71
constexpr OUStringLiteral SC_UNONAME_PINDENT
Definition: unonames.hxx:113
constexpr OUStringLiteral SC_UNONAME_PLMARGIN
Definition: unonames.hxx:116
constexpr OUStringLiteral OLD_UNO_PAGE_FTRBACKTRAN
Definition: unonames.hxx:399
constexpr OUStringLiteral SC_UNO_PAGE_SCALETOX
Definition: unonames.hxx:443
constexpr OUStringLiteral SC_UNO_PAGE_PRINTCHARTS
Definition: unonames.hxx:437
constexpr OUStringLiteral SC_UNO_CJK_CFSTYLE
Definition: unonames.hxx:78
constexpr OUStringLiteral SC_UNO_PAGE_LEFTFTRCONT
Definition: unonames.hxx:449
constexpr OUStringLiteral SC_UNONAME_COVRLCOL
Definition: unonames.hxx:58
constexpr OUStringLiteral SC_UNO_CTL_CWEIGHT
Definition: unonames.hxx:93
constexpr OUStringLiteral SC_UNONAME_CELLTRAN
Definition: unonames.hxx:100
constexpr OUStringLiteral SC_UNO_PAGE_FTRLEFTMAR
Definition: unonames.hxx:495
constexpr OUStringLiteral SC_UNO_PAGE_LEFTMARGIN
Definition: unonames.hxx:421
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTHDRCONT
Definition: unonames.hxx:452
constexpr OUStringLiteral SC_UNONAME_CCOLOR
Definition: unonames.hxx:52
constexpr OUStringLiteral SC_UNO_CTL_CFPITCH
Definition: unonames.hxx:91
constexpr OUStringLiteral SC_UNONAME_CELLORI
Definition: unonames.hxx:106
constexpr OUStringLiteral SC_UNONAME_CSTRIKE
Definition: unonames.hxx:63
constexpr OUStringLiteral SC_UNO_PAGE_SHADOWFORM
Definition: unonames.hxx:420
constexpr OUStringLiteral SC_UNO_PAGE_HDRLEFTBDIS
Definition: unonames.hxx:466
constexpr OUStringLiteral SC_UNO_PAGE_HDRGRFLOC
Definition: unonames.hxx:459
constexpr OUStringLiteral SC_UNO_CTL_CFCHARS
Definition: unonames.hxx:90
constexpr OUStringLiteral SC_UNO_PAGE_HDRTOPBDIS
Definition: unonames.hxx:469
constexpr OUStringLiteral SC_UNO_PAGE_FTRGRF
Definition: unonames.hxx:483
constexpr OUStringLiteral SC_UNONAME_DIAGONAL_BLTR2
Definition: unonames.hxx:138
constexpr OUStringLiteral SC_UNO_PAGE_BACKCOLOR
Definition: unonames.hxx:405
constexpr OUStringLiteral SC_UNO_PAGE_HDRBRDDIST
Definition: unonames.hxx:470
constexpr OUStringLiteral SC_UNO_PAGE_FTRHEIGHT
Definition: unonames.hxx:498
constexpr OUStringLiteral SC_UNO_PAGE_HDRLEFTMAR
Definition: unonames.hxx:472
constexpr OUStringLiteral SC_UNO_PAGE_SCALETOY
Definition: unonames.hxx:444
constexpr OUStringLiteral SC_UNO_PAGE_SYTLELAYOUT
Definition: unonames.hxx:427
constexpr OUStringLiteral SC_UNO_PAGE_FTRRIGHTBDIS
Definition: unonames.hxx:490
constexpr OUStringLiteral SC_UNONAME_CFNAME
Definition: unonames.hxx:69
constexpr OUStringLiteral SC_UNO_PAGE_HDRSHADOW
Definition: unonames.hxx:471
constexpr OUStringLiteral SC_UNONAME_PISFORBID
Definition: unonames.hxx:144
constexpr OUStringLiteral SC_UNO_PAGE_FTRLEFTBOR
Definition: unonames.hxx:485
constexpr OUStringLiteral SC_UNO_PAGE_FTRBRDDIST
Definition: unonames.hxx:493
constexpr OUStringLiteral SC_UNONAME_CFONT
Definition: unonames.hxx:66
constexpr OUStringLiteral SC_UNONAME_RIGHTBORDER
Definition: unonames.hxx:126
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTHDRSHARED
Definition: unonames.hxx:446
constexpr OUStringLiteral SC_UNO_PAGE_FTRSHADOW
Definition: unonames.hxx:494
constexpr OUStringLiteral SC_UNO_PAGE_BOTTBRDDIST
Definition: unonames.hxx:417
constexpr OUStringLiteral SC_UNO_PAGE_FTRGRFURL
Definition: unonames.hxx:484
constexpr OUStringLiteral SC_UNO_PAGE_BOTTMARGIN
Definition: unonames.hxx:424
constexpr OUStringLiteral SC_UNO_CTL_CLOCAL
Definition: unonames.hxx:95
constexpr OUStringLiteral SC_UNO_CJK_CHEIGHT
Definition: unonames.hxx:82
constexpr OUStringLiteral SC_UNONAME_CELLPRO
Definition: unonames.hxx:101
constexpr OUStringLiteral SC_UNO_PAGE_BORDERDIST
Definition: unonames.hxx:419
constexpr OUStringLiteral SC_UNONAME_PTMARGIN
Definition: unonames.hxx:114
constexpr OUStringLiteral SC_UNONAME_CCROSS
Definition: unonames.hxx:62
constexpr OUStringLiteral SC_UNO_CJK_CFNAME
Definition: unonames.hxx:77
constexpr OUStringLiteral SC_UNONAME_BOTTBORDER2
Definition: unonames.hxx:129
constexpr OUStringLiteral SC_UNONAME_CWORDMOD
Definition: unonames.hxx:75
constexpr OUStringLiteral SC_UNONAME_PBMARGIN
Definition: unonames.hxx:115
#define SC_UNO_PAGE_LEFTBORDER
Definition: unonames.hxx:411
constexpr OUStringLiteral SC_UNO_PAGE_FTRTOPBDIS
Definition: unonames.hxx:492
constexpr OUStringLiteral SC_UNONAME_LEFTBORDER
Definition: unonames.hxx:125
constexpr OUStringLiteral SC_UNONAME_SHRINK_TO_FIT
Definition: unonames.hxx:140
constexpr OUStringLiteral SC_UNO_PAGE_HDRHEIGHT
Definition: unonames.hxx:475
constexpr OUStringLiteral SC_UNO_PAGE_GRAPHICFILT
Definition: unonames.hxx:407
constexpr OUStringLiteral SC_UNONAME_CFPITCH
Definition: unonames.hxx:73
constexpr OUStringLiteral SC_UNO_PAGE_HDRLEFTBOR
Definition: unonames.hxx:462
constexpr OUStringLiteral SC_UNO_PAGE_HDRRIGHTBOR
Definition: unonames.hxx:463
constexpr OUStringLiteral SC_UNONAME_ASIANVERT
Definition: unonames.hxx:120
constexpr OUStringLiteral SC_UNONAME_COVER
Definition: unonames.hxx:57
constexpr OUStringLiteral SC_UNONAME_COUTL
Definition: unonames.hxx:67
constexpr OUStringLiteral SC_UNO_PAGE_SCALETOPAG
Definition: unonames.hxx:442
constexpr OUStringLiteral SC_UNONAME_OVERWSTL
Definition: unonames.hxx:155
constexpr OUStringLiteral SC_UNO_PAGE_RIGHTFTRCON
Definition: unonames.hxx:451
constexpr OUStringLiteral SC_UNONAME_ROTANG
Definition: unonames.hxx:118
constexpr OUStringLiteral SC_UNO_PAGE_HDRBOTTBDIS
Definition: unonames.hxx:468
constexpr OUStringLiteral SC_UNO_CTL_CHEIGHT
Definition: unonames.hxx:92
constexpr OUStringLiteral SC_UNO_PAGE_FTRBACKTRAN
Definition: unonames.hxx:480
#define SC_UNO_PAGE_RIGHTBORDER
Definition: unonames.hxx:412
constexpr OUStringLiteral SC_UNONAME_RIGHTBORDER2
Definition: unonames.hxx:131
constexpr OUStringLiteral SC_UNO_PAGE_PRINTDOWN
Definition: unonames.hxx:440
constexpr OUStringLiteral SC_UNONAME_DIAGONAL_BLTR
Definition: unonames.hxx:135
constexpr OUStringLiteral SC_UNONAME_DIAGONAL_TLBR
Definition: unonames.hxx:134
constexpr OUStringLiteral SC_UNONAME_USERDEF
Definition: unonames.hxx:216
constexpr OUStringLiteral SC_UNONAME_CELLVJUS
Definition: unonames.hxx:103
constexpr OUStringLiteral SC_UNONAME_PLASTADJ
Definition: unonames.hxx:147
constexpr OUStringLiteral SC_UNONAME_ROTREF
Definition: unonames.hxx:119
constexpr OUStringLiteral SC_UNO_PAGE_HDRGRF
Definition: unonames.hxx:460
constexpr OUStringLiteral SC_UNONAME_CUNDLCOL
Definition: unonames.hxx:55
constexpr OUStringLiteral SC_UNO_PAGE_TOPMARGIN
Definition: unonames.hxx:423
constexpr OUStringLiteral SC_UNO_PAGE_HEIGHT
Definition: unonames.hxx:431
constexpr OUStringLiteral SC_UNONAME_TBLBORD
Definition: unonames.hxx:110
constexpr OUStringLiteral SC_UNONAME_DIAGONAL_TLBR2
Definition: unonames.hxx:137
constexpr OUStringLiteral SC_UNONAME_CELLBACK
Definition: unonames.hxx:99
constexpr OUStringLiteral OLD_UNO_PAGE_HDRDYNAMIC
Definition: unonames.hxx:396
constexpr OUStringLiteral SC_UNONAME_PISHANG
Definition: unonames.hxx:142
constexpr OUStringLiteral SC_UNO_PAGE_GRAPHICLOC
Definition: unonames.hxx:408
constexpr OUStringLiteral OLD_UNO_PAGE_HDRBACKTRAN
Definition: unonames.hxx:394
constexpr OUStringLiteral SC_UNONAME_CWEIGHT
Definition: unonames.hxx:60
constexpr OUStringLiteral SC_UNO_PAGE_FTRGRFLOC
Definition: unonames.hxx:482
constexpr OUStringLiteral OLD_UNO_PAGE_FTRBACKCOL
Definition: unonames.hxx:398
constexpr OUStringLiteral SC_UNO_PAGE_TOPBRDDIST
Definition: unonames.hxx:418
constexpr OUStringLiteral SC_UNO_CTL_CPOST
Definition: unonames.hxx:94
constexpr OUStringLiteral SC_UNONAME_CUNDER
Definition: unonames.hxx:54
constexpr OUStringLiteral SC_UNONAME_SHADOW
Definition: unonames.hxx:109
constexpr OUStringLiteral SC_UNO_PAGE_RIGHTBRDDIST
Definition: unonames.hxx:416
constexpr OUStringLiteral SC_UNO_PAGE_FTRDYNAMIC
Definition: unonames.hxx:500
constexpr OUStringLiteral SC_UNO_PAGE_PRINTFORMUL
Definition: unonames.hxx:454
constexpr OUStringLiteral SC_UNO_PAGE_FTRRIGHTMAR
Definition: unonames.hxx:496
constexpr OUStringLiteral OLD_UNO_PAGE_FTRSHARED
Definition: unonames.hxx:400
constexpr OUStringLiteral SC_UNO_PAGE_RIGHTHDRCON
Definition: unonames.hxx:450
constexpr OUStringLiteral SC_UNO_PAGE_PRINTHEADER
Definition: unonames.hxx:436
constexpr OUStringLiteral SC_UNONAME_PISCHDIST
Definition: unonames.hxx:143
constexpr OUStringLiteral OLD_UNO_PAGE_BACKCOLOR
Definition: unonames.hxx:391
#define SC_UNO_PAGE_BOTTBORDER
Definition: unonames.hxx:413
constexpr OUStringLiteral OLD_UNO_PAGE_FTRDYNAMIC
Definition: unonames.hxx:401
constexpr OUStringLiteral SC_UNO_PAGE_HDRBACKCOL
Definition: unonames.hxx:456
constexpr OUStringLiteral SC_UNO_PAGE_HDRBOTTBOR
Definition: unonames.hxx:464
constexpr OUStringLiteral SC_UNO_PAGE_SCALEVAL
Definition: unonames.hxx:441
constexpr OUStringLiteral SC_UNONAME_CHEIGHT
Definition: unonames.hxx:53
constexpr OUStringLiteral SC_UNO_PAGE_FTRBOTTBOR
Definition: unonames.hxx:487
constexpr OUStringLiteral SC_UNO_PAGE_FTRGRFFILT
Definition: unonames.hxx:481
constexpr OUStringLiteral SC_UNO_PAGE_CENTERHOR
Definition: unonames.hxx:432
constexpr OUStringLiteral SC_UNO_PAGE_HDRON
Definition: unonames.hxx:476
constexpr OUStringLiteral SC_UNO_PAGE_HDRBACKTRAN
Definition: unonames.hxx:457
constexpr OUStringLiteral SC_UNO_PAGE_FTRBOTTBDIS
Definition: unonames.hxx:491
constexpr OUStringLiteral SC_UNONAME_CELLHJUS
Definition: unonames.hxx:102
constexpr OUStringLiteral SC_UNO_PAGE_WIDTH
Definition: unonames.hxx:430
constexpr OUStringLiteral OLD_UNO_PAGE_HDRON
Definition: unonames.hxx:397
constexpr OUStringLiteral SC_UNO_PAGE_PRINTOBJS
Definition: unonames.hxx:438
constexpr OUStringLiteral SC_UNO_PAGE_FTRLEFTBDIS
Definition: unonames.hxx:489
constexpr OUStringLiteral SC_UNO_PAGE_HDRGRFURL
Definition: unonames.hxx:461
constexpr OUStringLiteral SC_UNO_CTL_CFSTYLE
Definition: unonames.hxx:88
constexpr OUStringLiteral SC_UNONAME_CFSTYLE
Definition: unonames.hxx:70
constexpr OUStringLiteral SC_UNONAME_CELLHJUS_METHOD
Definition: unonames.hxx:104
constexpr OUStringLiteral SC_UNO_CJK_CLOCAL
Definition: unonames.hxx:85
#define SC_WID_UNO_TBLBORD2
Definition: unowids.hxx:72
#define SC_WID_UNO_HEADERSET
Definition: unowids.hxx:55
#define SC_WID_UNO_TBLBORD
Definition: unowids.hxx:35
bool IsScUnoWid(sal_uInt16 nWid)
Definition: unowids.hxx:79
#define SC_WID_UNO_DISPNAME
Definition: unowids.hxx:54
bool IsScItemWid(sal_uInt16 nWid)
Definition: unowids.hxx:84
#define SC_WID_UNO_FOOTERSET
Definition: unowids.hxx:56