diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-14 09:14:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-14 08:23:53 +0000 |
commit | 427678b9cf7fe968c10877dd6facecd8552fd291 (patch) | |
tree | c9efd0d9757e12660f1377abf1ea88f70266eb5a /sw/source | |
parent | 250995d2b8d8ad544110d3daeb2f61089bff0aa5 (diff) |
remove noise UUUU tags in comments
Change-Id: Id8a2940ae7348bf75ca967f31adf8489dc678d00
Reviewed-on: https://gerrit.libreoffice.org/35161
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
44 files changed, 151 insertions, 280 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 5a974dd4d217..6b93b7e1c574 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -1028,8 +1028,6 @@ static bool lcl_GetBackgroundColor( Color & rColor, const SvxBrushItem* pBackgrdBrush = nullptr; const Color* pSectionTOXColor = nullptr; SwRect aDummyRect; - - //UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes; if ( pFrame && diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx index 279a05af976b..7addf5ff6528 100644 --- a/sw/source/core/attr/format.cxx +++ b/sw/source/core/attr/format.cxx @@ -29,8 +29,6 @@ #include <swcache.hxx> #include <swtblfmt.hxx> #include <svl/grabbagitem.hxx> - -//UUUU #include <svx/sdr/attribute/sdrallfillattributeshelper.hxx> #include <svx/unobrushitemhelper.hxx> #include <svx/xdef.hxx> @@ -392,7 +390,7 @@ const SfxPoolItem& SwFormat::GetFormatAttr( sal_uInt16 nWhich, bool bInParents ) { if (RES_BACKGROUND == nWhich && supportsFullDrawingLayerFillAttributeSet()) { - //UUUU FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] + // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes or makeBackgroundBrushItem (simple fallback is in place and used)"); static SvxBrushItem aSvxBrushItem(RES_BACKGROUND); @@ -411,7 +409,7 @@ SfxItemState SwFormat::GetItemState( sal_uInt16 nWhich, bool bSrchInParent, cons { if (RES_BACKGROUND == nWhich && supportsFullDrawingLayerFillAttributeSet()) { - //UUUU FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] + // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes or SwFormat::GetBackgroundStat (simple fallback is in place and used)"); const drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFill = getSdrAllFillAttributesHelper(); @@ -446,7 +444,7 @@ SfxItemState SwFormat::GetBackgroundState(SvxBrushItem &rItem) const { if (supportsFullDrawingLayerFillAttributeSet()) { - //UUUU FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] + // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] const drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFill = getSdrAllFillAttributesHelper(); // check if the new fill attributes are used @@ -480,10 +478,9 @@ bool SwFormat::SetFormatAttr( const SfxPoolItem& rAttr ) bool bRet = false; - //UUUU if (RES_BACKGROUND == rAttr.Which() && supportsFullDrawingLayerFillAttributeSet()) { - //UUUU FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] + // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes (simple fallback is in place and used)"); SfxItemSet aTempSet(*m_aSet.GetPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST, 0, 0); const SvxBrushItem& rSource = static_cast< const SvxBrushItem& >(rAttr); @@ -572,11 +569,11 @@ bool SwFormat::SetFormatAttr( const SfxItemSet& rSet ) bool bRet = false; - //UUUU Use local copy to be able to apply needed changes, e.g. call + // Use local copy to be able to apply needed changes, e.g. call // CheckForUniqueItemForLineFillNameOrIndex which is needed for NameOrIndex stuff SfxItemSet aTempSet(rSet); - //UUUU Need to check for unique item for DrawingLayer items of type NameOrIndex + // Need to check for unique item for DrawingLayer items of type NameOrIndex // and evtl. correct that item to ensure unique names for that type. This call may // modify/correct entries inside of the given SfxItemSet if(GetDoc()) @@ -590,7 +587,7 @@ bool SwFormat::SetFormatAttr( const SfxItemSet& rSet ) if(SfxItemState::SET == aTempSet.GetItemState(RES_BACKGROUND, false, &pSource)) { - //UUUU FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] + // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes (simple fallback is in place and used)"); // copy all items to be set anyways to a local ItemSet with is also prepared for the new @@ -798,12 +795,11 @@ void SwFormat::SetGrabBagItem(const uno::Any& rVal) m_pGrabBagItem->PutValue(rVal, 0); } -//UUUU SvxBrushItem SwFormat::makeBackgroundBrushItem(bool bInP) const { if (supportsFullDrawingLayerFillAttributeSet()) { - //UUUU FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] + // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes (simple fallback is in place and used)"); // fill the local static SvxBrushItem from the current ItemSet so that @@ -815,7 +811,6 @@ SvxBrushItem SwFormat::makeBackgroundBrushItem(bool bInP) const return m_aSet.GetBackground(bInP); } -//UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwFormat::getSdrAllFillAttributesHelper() const { return drawinglayer::attribute::SdrAllFillAttributesHelperPtr(); diff --git a/sw/source/core/attr/swatrset.cxx b/sw/source/core/attr/swatrset.cxx index 3cc2dca668dd..29a6cb291d22 100644 --- a/sw/source/core/attr/swatrset.cxx +++ b/sw/source/core/attr/swatrset.cxx @@ -60,17 +60,16 @@ SwAttrPool::SwAttrPool( SwDoc* pD ) SetVersionMap( 6, 1,136, pVersionMap6 ); SetVersionMap( 7, 1,144, pVersionMap7 ); - //UUUU create secondary pools immediately + // create secondary pools immediately createAndAddSecondaryPools(); } SwAttrPool::~SwAttrPool() { - //UUUU cleanup secondary pools first + // cleanup secondary pools first removeAndDeleteSecondaryPools(); } -//UUUU void SwAttrPool::createAndAddSecondaryPools() { const SfxItemPool* pCheckAlreadySet = GetSecondaryPool(); @@ -114,7 +113,6 @@ void SwAttrPool::createAndAddSecondaryPools() } } -//UUUU void SwAttrPool::removeAndDeleteSecondaryPools() { SfxItemPool *pSdrPool = GetSecondaryPool(); diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx index 493b4fc590c8..7b85287a72e0 100644 --- a/sw/source/core/bastyp/init.cxx +++ b/sw/source/core/bastyp/init.cxx @@ -149,7 +149,7 @@ sal_uInt16 aTextFormatCollSetRange[] = { RES_PARATR_BEGIN, RES_PARATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, 0 @@ -171,7 +171,7 @@ sal_uInt16 aTextNodeSetRange[] = { RES_PARATR_LIST_BEGIN, RES_PARATR_LIST_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, - //UUUU FillAttribute support (paragraph FillStyle) + // FillAttribute support (paragraph FillStyle) XATTR_FILL_FIRST, XATTR_FILL_LAST, 0 @@ -231,7 +231,7 @@ sal_uInt16 aFrameFormatSetRange[] = { RES_FRMATR_BEGIN, RES_FRMATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, - //UUUU FillAttribute support (TextFrame, OLE, Writer GraphicObject) + // FillAttribute support (TextFrame, OLE, Writer GraphicObject) XATTR_FILL_FIRST, XATTR_FILL_LAST, 0 diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 06d61e8076cd..18f1c71c5ecc 100644 --- a/sw/source/core/doc/DocumentContentOperationsManager.cxx +++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx @@ -1058,7 +1058,7 @@ namespace //local functions originally from docfmt.cxx || isFRMATR(nWhich) || isGRFATR(nWhich) || isUNKNOWNATR(nWhich) - || isDrawingLayerAttribute(nWhich) ) //UUUU + || isDrawingLayerAttribute(nWhich) ) { pOtherSet = &rChgSet; bOtherAttr = true; @@ -1086,7 +1086,7 @@ namespace //local functions originally from docfmt.cxx RES_GRFATR_BEGIN, RES_GRFATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, 0 ); @@ -1395,7 +1395,7 @@ namespace //local functions originally from docfmt.cxx { SwRegHistory aRegH( pNode, *pNode, pHistory ); - //UUUU Need to check for unique item for DrawingLayer items of type NameOrIndex + // Need to check for unique item for DrawingLayer items of type NameOrIndex // and evtl. correct that item to ensure unique names for that type. This call may // modify/correct entries inside of the given SfxItemSet SfxItemSet aTempLocalCopy(*pOtherSet); diff --git a/sw/source/core/doc/DocumentDrawModelManager.cxx b/sw/source/core/doc/DocumentDrawModelManager.cxx index 4f95094eb545..b97143d3fbe4 100644 --- a/sw/source/core/doc/DocumentDrawModelManager.cxx +++ b/sw/source/core/doc/DocumentDrawModelManager.cxx @@ -75,33 +75,6 @@ void DocumentDrawModelManager::InitDrawModel() if ( mpDrawModel ) ReleaseDrawModel(); -//UUUU -// // Setup DrawPool and EditEnginePool. Ownership is ours and only gets passed -// // to the Drawing. -// // The pools are destroyed in the ReleaseDrawModel. -// // for loading the drawing items. This must be loaded without RefCounts! -// SfxItemPool *pSdrPool = new SdrItemPool( &GetAttrPool() ); -// // change DefaultItems for the SdrEdgeObj distance items to TWIPS. -// if(pSdrPool) -// { -// const long nDefEdgeDist = ((500 * 72) / 127); // 1/100th mm in twips -// pSdrPool->SetPoolDefaultItem(SdrEdgeNode1HorzDistItem(nDefEdgeDist)); -// pSdrPool->SetPoolDefaultItem(SdrEdgeNode1VertDistItem(nDefEdgeDist)); -// pSdrPool->SetPoolDefaultItem(SdrEdgeNode2HorzDistItem(nDefEdgeDist)); -// pSdrPool->SetPoolDefaultItem(SdrEdgeNode2VertDistItem(nDefEdgeDist)); -// -// // #i33700# -// // Set shadow distance defaults as PoolDefaultItems. Details see bug. -// pSdrPool->SetPoolDefaultItem(makeSdrShadowXDistItem((300 * 72) / 127)); -// pSdrPool->SetPoolDefaultItem(makeSdrShadowYDistItem((300 * 72) / 127)); -// } -// SfxItemPool *pEEgPool = EditEngine::CreatePool( false ); -// pSdrPool->SetSecondaryPool( pEEgPool ); -// if ( !GetAttrPool().GetFrozenIdRanges () ) -// GetAttrPool().FreezeIdRanges(); -// else -// pSdrPool->FreezeIdRanges(); - // set FontHeight pool defaults without changing static SdrEngineDefaults m_rDoc.GetAttrPool().SetPoolDefaultItem(SvxFontHeightItem( 240, 100, EE_CHAR_FONTHEIGHT )); @@ -185,20 +158,7 @@ void DocumentDrawModelManager::ReleaseDrawModel() if ( mpDrawModel ) { // !! Also maintain the code in the sw3io for inserting documents!! - delete mpDrawModel; mpDrawModel = nullptr; -//UUUU -// SfxItemPool *pSdrPool = GetAttrPool().GetSecondaryPool(); -// -// OSL_ENSURE( pSdrPool, "missing pool" ); -// SfxItemPool *pEEgPool = pSdrPool->GetSecondaryPool(); -// OSL_ENSURE( !pEEgPool->GetSecondaryPool(), "I don't accept additional pools"); -// pSdrPool->Delete(); // First have the items destroyed, -// // then destroy the chain! -// GetAttrPool().SetSecondaryPool( 0 ); // This one's a must! -// pSdrPool->SetSecondaryPool( 0 ); // That one's safer -// SfxItemPool::Free(pSdrPool); -// SfxItemPool::Free(pEEgPool); } } diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx index 23ca1027edb8..11f83a206e30 100644 --- a/sw/source/core/doc/DocumentStylePoolManager.cxx +++ b/sw/source/core/doc/DocumentStylePoolManager.cxx @@ -1294,7 +1294,7 @@ SwFormat* DocumentStylePoolManager::GetFormatFromPool( sal_uInt16 nId ) aSet.Put( SvxULSpaceItem( 114, 114, RES_UL_SPACE ) ); } - //UUUU for styles of FlyFrames do not set the FillStyle to make it a derived attribute + // for styles of FlyFrames do not set the FillStyle to make it a derived attribute aSet.ClearItem(XATTR_FILLSTYLE); } break; diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx index 583d8bb79bcc..6c108ed9f166 100644 --- a/sw/source/core/doc/docdesc.cxx +++ b/sw/source/core/doc/docdesc.cxx @@ -145,7 +145,7 @@ static void lcl_DescSetAttr( const SwFrameFormat &rSource, SwFrameFormat &rDest, RES_HEADER_FOOTER_EAT_SPACING, RES_HEADER_FOOTER_EAT_SPACING, // [115 RES_UNKNOWNATR_CONTAINER, RES_UNKNOWNATR_CONTAINER, // [143 - //UUUU take over DrawingLayer FillStyles + // take over DrawingLayer FillStyles XATTR_FILL_FIRST, XATTR_FILL_LAST, // [1014 0}; @@ -169,7 +169,7 @@ static void lcl_DescSetAttr( const SwFrameFormat &rSource, SwFrameFormat &rDest, { // All in aIdArr except from RES_HEADER_FOOTER_EAT_SPACING case RES_HEADER_FOOTER_EAT_SPACING: - //UUUU take out SvxBrushItem; it's the result of the fallback + // take out SvxBrushItem; it's the result of the fallback // at SwFormat::GetItemState and not really in state SfxItemState::SET case RES_BACKGROUND: bExecuteId = false; diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx index c89c6360a6d0..6c1847bf0c3d 100644 --- a/sw/source/core/doc/docfly.cxx +++ b/sw/source/core/doc/docfly.cxx @@ -61,8 +61,6 @@ #include <undoflystrattr.hxx> #include <calbck.hxx> #include <memory> - -//UUUU #include <svx/xbtmpit.hxx> #include <svx/xflftrit.hxx> #include <svx/xlndsit.hxx> diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index cab0d32ace3c..b8e2d6ebb6b5 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -581,7 +581,7 @@ void SwDoc::SetDefault( const SfxItemSet& rSet ) { aCallMod.Add( mpDfltGrfFormatColl ); } - else if (isFRMATR(nWhich) || isDrawingLayerAttribute(nWhich) ) //UUUU + else if (isFRMATR(nWhich) || isDrawingLayerAttribute(nWhich) ) { aCallMod.Add( mpDfltGrfFormatColl ); aCallMod.Add( mpDfltTextFormatColl ); diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx index add4c242d4c3..7f95a681b43c 100644 --- a/sw/source/core/doc/docnew.cxx +++ b/sw/source/core/doc/docnew.cxx @@ -117,7 +117,6 @@ #include <sfx2/Metadatable.hxx> #include <fmtmeta.hxx> -//UUUU #include <svx/xfillit0.hxx> using namespace ::com::sun::star; @@ -272,7 +271,7 @@ SwDoc::SwDoc() meDocType(DOCTYPE_NATIVE) { - //UUUU The DrawingLayer ItemPool which is used as 2nd pool for Writer documents' pool + // The DrawingLayer ItemPool which is used as 2nd pool for Writer documents' pool // has a default for the XFillStyleItem of XFILL_SOLID and the color for it is the default // fill color (blue7 or similar). This is a problem, in Writer we want the default fill // style to be drawing::FillStyle_NONE. This cannot simply be done by changing it in the 2nd pool at the diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx index 533ba658c4c0..ebcca78b2ef4 100644 --- a/sw/source/core/doc/notxtfrm.cxx +++ b/sw/source/core/doc/notxtfrm.cxx @@ -178,9 +178,9 @@ static void lcl_ClearArea( const SwFrame &rFrame, if ( !aRegion.empty() ) { - const SvxBrushItem *pItem; const Color *pCol; SwRect aOrigRect; - - //UUUU + const SvxBrushItem *pItem; + const Color *pCol; + SwRect aOrigRect; drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes; if ( rFrame.GetBackgroundBrush( aFillAttributes, pItem, pCol, aOrigRect, false ) ) diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx index 88fddf44894d..ee3a57981848 100644 --- a/sw/source/core/doc/poolfmt.cxx +++ b/sw/source/core/doc/poolfmt.cxx @@ -68,8 +68,6 @@ #include <swtable.hxx> #include <tblafmt.hxx> #include <svx/xdef.hxx> - -//UUUU #include <svx/xfillit0.hxx> using namespace ::editeng; diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx index 74a169813b03..611a8d212bd2 100644 --- a/sw/source/core/docnode/node.cxx +++ b/sw/source/core/docnode/node.cxx @@ -1986,7 +1986,6 @@ SwOLENodes* SwContentNode::CreateOLENodesArray( const SwFormatColl& rColl, bool return pNodes; } -//UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwContentNode::getSdrAllFillAttributesHelper() const { return drawinglayer::attribute::SdrAllFillAttributesHelperPtr(); diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 73ceab4eda86..e9f121bdf059 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -110,7 +110,6 @@ enum MakePageType MAKEPAGE_NOSECTION // Don't create section frames }; -//UUUU namespace drawinglayer { namespace attribute { class SdrAllFillAttributesHelper; typedef std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr; @@ -753,7 +752,6 @@ public: void ForbidDelete() { mbForbidDelete = true; } void AllowDelete() { mbForbidDelete = false; } - //UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const; bool supportsFullDrawingLayerFillAttributeSet() const; diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 496dda2511c4..c9f3e15e00e6 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -77,11 +77,11 @@ #include <HandleAnchorNodeChg.hxx> #include <calbck.hxx> #include <pagedeschint.hxx> + #ifndef NDEBUG #include <ndtxt.hxx> #endif -//UUUU #include <svx/sdr/attribute/sdrallfillattributeshelper.hxx> #include <svx/xfillit0.hxx> #include <svl/itemiter.hxx> @@ -2556,7 +2556,7 @@ void SwFrameFormat::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) static_cast<const SwAttrSetChg*>(pNew)->GetChgSet()->GetItemState( RES_FOOTER, false, reinterpret_cast<const SfxPoolItem**>(&pF) ); - //UUUU reset fill information + // reset fill information if (maFillAttributes.get() && supportsFullDrawingLayerFillAttributeSet()) { SfxItemIter aIter(*static_cast<const SwAttrSetChg*>(pNew)->GetChgSet()); @@ -2575,7 +2575,7 @@ void SwFrameFormat::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) } else if(RES_FMT_CHG == nWhich) { - //UUUU reset fill information on format change (e.g. style changed) + // reset fill information on format change (e.g. style changed) if (maFillAttributes.get() && supportsFullDrawingLayerFillAttributeSet()) { maFillAttributes.reset(); @@ -3144,7 +3144,6 @@ OUString SwFlyFrameFormat::GetObjDescription() const */ bool SwFlyFrameFormat::IsBackgroundTransparent() const { - //UUUU if (supportsFullDrawingLayerFillAttributeSet() && getSdrAllFillAttributesHelper()) { return getSdrAllFillAttributesHelper()->isTransparent(); @@ -3186,7 +3185,6 @@ bool SwFlyFrameFormat::IsBackgroundTransparent() const */ bool SwFlyFrameFormat::IsBackgroundBrushInherited() const { - //UUUU if (supportsFullDrawingLayerFillAttributeSet() && getSdrAllFillAttributesHelper()) { return !getSdrAllFillAttributesHelper()->isUsed(); @@ -3424,7 +3422,6 @@ IMapObject* SwFrameFormat::GetIMapObject( const Point& rPoint, return nullptr; } -//UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwFrameFormat::getSdrAllFillAttributesHelper() const { if (supportsFullDrawingLayerFillAttributeSet()) diff --git a/sw/source/core/layout/findfrm.cxx b/sw/source/core/layout/findfrm.cxx index 89cf31663e2c..da6fb6b918a6 100644 --- a/sw/source/core/layout/findfrm.cxx +++ b/sw/source/core/layout/findfrm.cxx @@ -629,7 +629,6 @@ const SwAttrSet* SwFrame::GetAttrSet() const return &static_cast<const SwLayoutFrame*>(this)->GetFormat()->GetAttrSet(); } -//UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwFrame::getSdrAllFillAttributesHelper() const { if(IsContentFrame()) diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index ebaedddcc9c2..e0fa2f08c59e 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -67,8 +67,6 @@ #include <IDocumentFieldsAccess.hxx> #include <IDocumentState.hxx> #include <boost/circular_buffer.hpp> - -//UUUU #include <svx/sdr/attribute/sdrallfillattributeshelper.hxx> using namespace ::com::sun::star; @@ -197,7 +195,6 @@ SwFrameNotify::~SwFrameNotify() aRectFnSet.GetHeight(maPrt)!=aRectFnSet.GetHeight(mpFrame->Prt()); if ( bPrtWidth || bPrtHeight ) { - //UUUU bool bUseNewFillProperties(false); if (mpFrame->supportsFullDrawingLayerFillAttributeSet()) { @@ -205,7 +202,7 @@ SwFrameNotify::~SwFrameNotify() if(aFillAttributes.get() && aFillAttributes->isUsed()) { bUseNewFillProperties = true; - //UUUU use SetCompletePaint if needed + // use SetCompletePaint if needed if(aFillAttributes->needCompleteRepaint()) { mpFrame->SetCompletePaint(); diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 3f9598e89944..8841a2de4a0a 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -1869,7 +1869,7 @@ bool DrawFillAttributes( { const SvtOptionsDrawinglayer aSvtOptionsDrawinglayer; - //UUUU need to expand for correct AAed and non-AAed visualization as primitive. + // need to expand for correct AAed and non-AAed visualization as primitive. // This must probably be removed again when we will be able to get all Writer visualization // as primitives and Writer prepares all it's stuff in high precision coordinates (also // needs to avoid moving boundaries around to better show overlapping stuff...) @@ -3952,7 +3952,6 @@ bool SwFlyFrame::IsBackgroundTransparent() const const SvxBrushItem* pBackgrdBrush = nullptr; const Color* pSectionTOXColor = nullptr; SwRect aDummyRect; - //UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes; if ( GetBackgroundBrush( aFillAttributes, pBackgrdBrush, pSectionTOXColor, aDummyRect, false) ) @@ -3963,7 +3962,7 @@ bool SwFlyFrame::IsBackgroundTransparent() const { bBackgroundTransparent = true; } - else if(aFillAttributes.get() && aFillAttributes->isUsed()) //UUUU + else if(aFillAttributes.get() && aFillAttributes->isUsed()) { bBackgroundTransparent = aFillAttributes->isTransparent(); } @@ -4166,7 +4165,7 @@ void SwFlyFrame::Paint(vcl::RenderContext& rRenderContext, SwRect const& rRect, if (pSwFrameFormat && pSwFrameFormat->supportsFullDrawingLayerFillAttributeSet()) { - //UUUU check for transparency + // check for transparency const drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes(pSwFrameFormat->getSdrAllFillAttributesHelper()); // check if the new fill attributes are used @@ -5963,7 +5962,7 @@ void SwPageFrame::PaintMarginArea( const SwRect& _rOutputRect, { if ( _pViewShell->GetWin() && !_pViewShell->GetViewOptions()->getBrowseMode() ) { - //UUUU Simplified paint with DrawingLayer FillStyle + // Simplified paint with DrawingLayer FillStyle SwRect aPgRect = Frame(); aPgRect.Intersection_( _rOutputRect ); @@ -6491,8 +6490,6 @@ void SwFrame::PaintBackground( const SwRect &rRect, const SwPageFrame *pPage, SwRect aOrigBackRect; const bool bPageFrame = IsPageFrame(); bool bLowMode = true; - - //UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes; bool bBack = GetBackgroundBrush( aFillAttributes, pItem, pCol, aOrigBackRect, bLowerMode ); @@ -6580,8 +6577,6 @@ void SwFrame::PaintBackground( const SwRect &rRect, const SwPageFrame *pPage, { pNewItem = new SvxBrushItem( *pCol, RES_BACKGROUND ); pItem = pNewItem; - - //UUUU aFillAttributes.reset(new drawinglayer::attribute::SdrAllFillAttributesHelper(*pCol)); } @@ -7294,13 +7289,11 @@ const Color SwPageFrame::GetDrawBackgrdColor() const const SvxBrushItem* pBrushItem; const Color* pDummyColor; SwRect aDummyRect; - - //UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes; if ( GetBackgroundBrush( aFillAttributes, pBrushItem, pDummyColor, aDummyRect, true) ) { - if(aFillAttributes.get() && aFillAttributes->isUsed()) //UUUU + if(aFillAttributes.get() && aFillAttributes->isUsed()) { // let SdrAllFillAttributesHelper do the average color calculation return Color(aFillAttributes->getAverageColor(aGlobalRetoucheColor.getBColor())); @@ -7477,10 +7470,10 @@ bool SwFrame::GetBackgroundBrush( rpBrush = nullptr; rpCol = nullptr; do - { if ( pFrame->IsPageFrame() && !pOpt->IsPageBack() ) + { + if ( pFrame->IsPageFrame() && !pOpt->IsPageBack() ) return false; - //UUUU if (pFrame->supportsFullDrawingLayerFillAttributeSet()) rFillAttributes = pFrame->getSdrAllFillAttributesHelper(); const SvxBrushItem &rBack = pFrame->GetAttrSet()->GetBackground(); diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index c041307020a2..6f71f423d440 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -333,7 +333,7 @@ void SwFrame::UpdateAttrFrame( const SfxPoolItem *pOld, const SfxPoolItem *pNew, break; default: - //UUUU the new FillStyle has to do the same as previous RES_BACKGROUND + // the new FillStyle has to do the same as previous RES_BACKGROUND if(nWhich >= XATTR_FILL_FIRST && nWhich <= XATTR_FILL_LAST) { rInvFlags |= 0x28; diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index ac87b78fb06d..4fe42f288f1d 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -64,10 +64,7 @@ #include "numrule.hxx" #include <EnhancedPDFExportHelper.hxx> #include <docufld.hxx> - -//UUUU #include <frmfmt.hxx> - #include <unomid.h> using namespace ::com::sun::star; @@ -531,8 +528,6 @@ static bool lcl_IsDarkBackground( const SwTextPaintInfo& rInf ) { const SvxBrushItem* pItem; SwRect aOrigBackRect; - - //UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes; // Consider, that [GetBackgroundBrush(...)] can set <pCol> diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx index 4b8ef213bf53..cfd02c46d468 100644 --- a/sw/source/core/txtnode/fntcache.cxx +++ b/sw/source/core/txtnode/fntcache.cxx @@ -2525,8 +2525,6 @@ bool SwDrawTextInfo::ApplyAutoColor( vcl::Font* pFont ) { const SvxBrushItem* pItem; SwRect aOrigBackRect; - - //UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes; /// OD 21.08.2002 diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 40969ca7308f..cf22c355e38e 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -88,8 +88,6 @@ #include <memory> #include <unoparagraph.hxx> #include <wrtsh.hxx> - -//UUUU #include <svx/sdr/attribute/sdrallfillattributeshelper.hxx> #include <svl/itemiter.hxx> @@ -3541,7 +3539,7 @@ void SwTextNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewVa static_cast<const SwTextFormatColl*>(static_cast<const SwFormatChg*>(pNewValue)->pChangedFormat) ); } - //UUUU reset fill information + // reset fill information if(maFillAttributes.get()) { const sal_uInt16 nWhich = pNewValue ? pNewValue->Which() : 0; @@ -3605,7 +3603,7 @@ SwFormatColl* SwTextNode::ChgFormatColl( SwFormatColl *pNewColl ) HandleModifyAtTextNode( *this, &aTmp1, &aTmp2 ); } - //UUUU reset fill information on parent style change + // reset fill information on parent style change if(maFillAttributes.get()) { maFillAttributes.reset(); @@ -4930,7 +4928,6 @@ SwTextNode::MakeUnoObject() return xMeta; } -//UUUU drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwTextNode::getSdrAllFillAttributesHelper() const { // create SdrAllFillAttributesHelper on demand diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx index 2e9ac3d3b6e3..2a2c8c0eba60 100644 --- a/sw/source/core/undo/rolbck.cxx +++ b/sw/source/core/undo/rolbck.cxx @@ -903,7 +903,7 @@ void SwHistory::Add( // no default Attribute? SwHistoryHint* pHt = nullptr; - //UUUU To be able to include the DrawingLayer FillItems something more + // To be able to include the DrawingLayer FillItems something more // general has to be done to check if an Item is default than to check // if its pointer equals that in Writer's global PoolDefaults (held in // aAttrTab and used to fill the pool defaults in Writer - looks as if diff --git a/sw/source/core/unocore/swunohelper.cxx b/sw/source/core/unocore/swunohelper.cxx index 8044bfbc4691..ba8242fc3d08 100644 --- a/sw/source/core/unocore/swunohelper.cxx +++ b/sw/source/core/unocore/swunohelper.cxx @@ -37,8 +37,6 @@ #include <ucbhelper/contentidentifier.hxx> #include <ucbhelper/content.hxx> #include <swunohelper.hxx> - -//UUUU #include <svx/xfillit0.hxx> #include <editeng/memberids.hrc> #include <svl/itemset.hxx> @@ -259,7 +257,6 @@ bool UCB_GetFileListOfFolder( const OUString& rURL, return bOk; } -//UUUU bool needToMapFillItemsToSvxBrushItemTypes(const SfxItemSet& rSet, sal_uInt16 const nMID) { diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index 6ec8c97b48c2..5c7a4afbfd05 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -181,7 +181,7 @@ bool BaseFrameProperties_Impl::GetProperty(sal_uInt16 nWID, sal_uInt8 nMemberId, bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rToSet, const SfxItemSet& rFromSet, bool& rSizeFound) { - //UUUU assert when the target SfxItemSet has no parent. It *should* have the pDfltFrameFormat + // assert when the target SfxItemSet has no parent. It *should* have the pDfltFrameFormat // from SwDoc set as parent (or similar) to have the necessary XFILL_NONE in the ItemSet if(!rToSet.GetParent()) { @@ -202,7 +202,7 @@ bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rToSet, const SfxI rToSet.Put(aAnchor); - //UUUU check for SvxBrushItem (RES_BACKGROUND) properties + // check for SvxBrushItem (RES_BACKGROUND) properties const ::uno::Any* pCol = nullptr; GetProperty(RES_BACKGROUND, MID_BACK_COLOR, pCol ); const ::uno::Any* pRGBCol = nullptr; GetProperty(RES_BACKGROUND, MID_BACK_COLOR_R_G_B, pRGBCol ); const ::uno::Any* pColTrans = nullptr; GetProperty(RES_BACKGROUND, MID_BACK_COLOR_TRANSPARENCY, pColTrans); @@ -221,7 +221,7 @@ bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rToSet, const SfxI pColTrans || pRGBCol); - //UUUU check for FillStyle properties in the range XATTR_FILL_FIRST, XATTR_FILL_LAST + // check for FillStyle properties in the range XATTR_FILL_FIRST, XATTR_FILL_LAST const uno::Any* pXFillStyleItem = nullptr; GetProperty(XATTR_FILLSTYLE, 0, pXFillStyleItem); const uno::Any* pXFillColorItem = nullptr; GetProperty(XATTR_FILLCOLOR, 0, pXFillColorItem); @@ -295,7 +295,7 @@ bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rToSet, const SfxI // from both sets. if(bSvxBrushItemPropertiesUsed && !bXFillStyleItemUsed) { - //UUUU create a temporary SvxBrushItem, fill the attributes to it and use it to set + // create a temporary SvxBrushItem, fill the attributes to it and use it to set // the corresponding FillAttributes SvxBrushItem aBrush(RES_BACKGROUND); @@ -1410,11 +1410,10 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& if (!pEntry) throw beans::UnknownPropertyException( "Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) ); - //UUUU const sal_uInt8 nMemberId(pEntry->nMemberId & (~SFX_METRIC_ITEM)); uno::Any aValue(_rValue); - //UUUU check for needed metric translation + // check for needed metric translation if(pEntry->nMemberId & SFX_METRIC_ITEM) { bool bDoIt(true); @@ -1784,14 +1783,14 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& throw lang::IllegalArgumentException(); } else - { //UUUU + { // standard UNO API write attributes // adapt former attr from SvxBrushItem::PutValue to new items XATTR_FILL_FIRST, XATTR_FILL_LAST SfxItemSet aSet( pDoc->GetAttrPool(), RES_FRMATR_BEGIN, RES_FRMATR_END - 1, RES_UNKNOWNATR_CONTAINER, RES_UNKNOWNATR_CONTAINER, - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, 0L); @@ -1817,7 +1816,6 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& } else if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID) { - //UUUU drawing::BitmapMode eMode; if(!(aValue >>= eMode)) @@ -1842,7 +1840,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& { case MID_NAME: { - //UUUU when named items get set, replace these with the NameOrIndex items + // when named items get set, replace these with the NameOrIndex items // which exist already in the pool switch(pEntry->nWID) { @@ -1870,7 +1868,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& } case MID_GRAFURL: { - //UUUU Bitmap also has the MID_GRAFURL mode where a Bitmap URL is used + // Bitmap also has the MID_GRAFURL mode where a Bitmap URL is used switch(pEntry->nWID) { case XATTR_FILLBITMAP: @@ -2003,7 +2001,6 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName) if (!pEntry) throw beans::UnknownPropertyException( "Unknown property: " + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) ); - //UUUU const sal_uInt8 nMemberId(pEntry->nMemberId & (~SFX_METRIC_ITEM)); if(FN_UNO_ANCHOR_TYPES == pEntry->nWID) @@ -2247,7 +2244,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName) } } else - { //UUUU + { // standard UNO API read attributes // adapt former attr from SvxBrushItem::PutValue to new items XATTR_FILL_FIRST, XATTR_FILL_LAST const SwAttrSet& rSet = pFormat->GetAttrSet(); @@ -2255,7 +2252,6 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName) if(RES_BACKGROUND == pEntry->nWID) { - //UUUU const SvxBrushItem aOriginalBrushItem(getSvxBrushItemFromSourceSet(rSet, RES_BACKGROUND)); if(!aOriginalBrushItem.QueryValue(aAny, nMemberId)) @@ -2267,7 +2263,6 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName) } else if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID) { - //UUUU const XFillBmpStretchItem* pStretchItem = dynamic_cast< const XFillBmpStretchItem* >(&rSet.Get(XATTR_FILLBMP_STRETCH)); const XFillBmpTileItem* pTileItem = dynamic_cast< const XFillBmpTileItem* >(&rSet.Get(XATTR_FILLBMP_TILE)); @@ -2309,7 +2304,6 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName) else throw uno::RuntimeException(); - //UUUU if(pEntry && pEntry->aType == ::cppu::UnoType<sal_Int16>::get() && pEntry->aType != aAny.getValueType()) { // since the sfx uint16 item now exports a sal_Int32, we may have to fix this here @@ -2318,7 +2312,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName) aAny <<= (sal_Int16)nValue; } - //UUUU check for needed metric translation + // check for needed metric translation if(pEntry->nMemberId & SFX_METRIC_ITEM) { bool bDoIt(true); @@ -2412,7 +2406,6 @@ uno::Sequence< beans::PropertyState > SwXFrame::getPropertyStates( } else if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID) { - //UUUU if(SfxItemState::SET == rFormatSet.GetItemState(XATTR_FILLBMP_STRETCH, false) || SfxItemState::SET == rFormatSet.GetItemState(XATTR_FILLBMP_TILE, false)) { @@ -2423,7 +2416,7 @@ uno::Sequence< beans::PropertyState > SwXFrame::getPropertyStates( pStates[i] = beans::PropertyState_AMBIGUOUS_VALUE; } } - //UUUU for FlyFrames we need to mark the used properties from type RES_BACKGROUND + // for FlyFrames we need to mark the used properties from type RES_BACKGROUND // as beans::PropertyState_DIRECT_VALUE to let users of this property call // getPropertyValue where the member properties will be mapped from the // fill attributes to the according SvxBrushItem entries @@ -2484,7 +2477,6 @@ void SwXFrame::setPropertyToDefault( const OUString& rPropertyName ) bool bNextFrame; if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID) { - //UUUU SwDoc* pDoc = pFormat->GetDoc(); SfxItemSet aSet(pDoc->GetAttrPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); aSet.SetParent(&pFormat->GetAttrSet()); @@ -2576,7 +2568,6 @@ uno::Any SwXFrame::getPropertyDefault( const OUString& rPropertyName ) { const SfxPoolItem& rDefItem = pFormat->GetDoc()->GetAttrPool().GetDefaultItem(pEntry->nWID); - //UUUU const sal_uInt8 nMemberId(pEntry->nMemberId & (~SFX_METRIC_ITEM)); rDefItem.QueryValue(aRet, nMemberId); @@ -2713,7 +2704,7 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan RES_FRMATR_BEGIN, RES_FRMATR_END-1, RES_UNKNOWNATR_CONTAINER, RES_UNKNOWNATR_CONTAINER, - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, @@ -2728,7 +2719,7 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan SfxItemSet aFrameSet(pDoc->GetAttrPool(), aFrameAttrRange ); - //UUUU set correct parent to get the XFILL_NONE FillStyle as needed + // set correct parent to get the XFILL_NONE FillStyle as needed aFrameSet.SetParent(&pDoc->GetDfltFrameFormat()->GetAttrSet()); // no the related items need to be added to the set diff --git a/sw/source/core/unocore/unomap1.cxx b/sw/source/core/unocore/unomap1.cxx index c93effc95184..46674ebd4b6c 100644 --- a/sw/source/core/unocore/unomap1.cxx +++ b/sw/source/core/unocore/unomap1.cxx @@ -141,11 +141,11 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetParagraphPropertyMa COMMON_TEXT_CONTENT_PROPERTIES { OUString(UNO_NAME_CHAR_STYLE_NAME), RES_TXTATR_CHARFMT, cppu::UnoType<OUString>::get(), PropertyAttribute::MAYBEVOID, 0}, { OUString(UNO_NAME_CHAR_STYLE_NAMES), FN_UNO_CHARFMT_SEQUENCE, cppu::UnoType< cppu::UnoSequenceType<OUString> >::get(), PropertyAttribute::MAYBEVOID, 0}, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to style import/export - //UUUU Added for paragraph backgrounds, this is for paragraph itself + // Added for paragraph backgrounds, this is for paragraph itself FILL_PROPERTIES_SW { OUString(), 0, css::uno::Type(), 0, 0 } }; @@ -175,11 +175,11 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetAutoParaStyleProper TABSTOPS_MAP_ENTRY COMMON_TEXT_CONTENT_PROPERTIES { OUString(UNO_NAME_PARA_AUTO_STYLE_NAME), RES_AUTO_STYLE, cppu::UnoType<OUString>::get(), PropertyAttribute::MAYBEVOID, 0}, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to style import/export - //UUUU Added for paragraph backgrounds, this is for Paragraph AutoStyles + // Added for paragraph backgrounds, this is for Paragraph AutoStyles FILL_PROPERTIES_SW { OUString(), 0, css::uno::Type(), 0, 0 } }; @@ -313,11 +313,11 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetParaStylePropertyMa static SfxItemPropertyMapEntry const aParaStyleMap [] = { COMMON_PARA_STYLE_PROPERTIES - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to style import/export - //UUUU Added for paragraph backgrounds, this is for Paragraph Styles + // Added for paragraph backgrounds, this is for Paragraph Styles FILL_PROPERTIES_SW { OUString(), 0, css::uno::Type(), 0, 0 } }; @@ -332,11 +332,11 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetConditionalParaStyl COMMON_PARA_STYLE_PROPERTIES { OUString(UNO_NAME_PARA_STYLE_CONDITIONS), FN_UNO_PARA_STYLE_CONDITIONS, cppu::UnoType< cppu::UnoSequenceType<css::beans::NamedValue> >::get(), PropertyAttribute::MAYBEVOID, 0}, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to style import/export - //UUUU Added for paragraph backgrounds, this is for Paragraph Styles + // Added for paragraph backgrounds, this is for Paragraph Styles FILL_PROPERTIES_SW { OUString(), 0, css::uno::Type(), 0, 0 } @@ -428,7 +428,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetFrameStylePropertyM { OUString(UNO_NAME_HIDDEN), FN_UNO_HIDDEN, cppu::UnoType<bool>::get(), PROPERTY_NONE, 0}, { OUString(UNO_NAME_TEXT_VERT_ADJUST), RES_TEXT_VERT_ADJUST, cppu::UnoType<css::drawing::TextVerticalAdjust>::get(), PROPERTY_NONE ,0}, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to style import/export @@ -569,13 +569,13 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetPageStylePropertyMa { OUString(UNO_NAME_GRID_STANDARD_PAGE_MODE), RES_TEXTGRID, cppu::UnoType<bool>::get(), PROPERTY_NONE, MID_GRID_STANDARD_MODE}, { OUString(UNO_NAME_HIDDEN), FN_UNO_HIDDEN, cppu::UnoType<bool>::get(), PROPERTY_NONE, 0}, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to style import/export FILL_PROPERTIES_SW - //UUUU Added DrawingLayer FillStyle Properties for Header. These need an own unique name, + // Added DrawingLayer FillStyle Properties for Header. These need an own unique name, // but reuse the same WhichIDs as the regular fill. The implementation will decide to which // group of fill properties it belongs based on the start of the name (was already done in // the implementation partially), thus all SlotNames *have* to start with 'Header' @@ -606,7 +606,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetPageStylePropertyMa { OUString(UNO_NAME_HEADER_FILLTRANSPARENCEGRADIENTNAME), XATTR_FILLFLOATTRANSPARENCE, cppu::UnoType<OUString>::get(), 0, MID_NAME }, { OUString(UNO_NAME_HEADER_FILLCOLOR_2), XATTR_SECONDARYFILLCOLOR, cppu::UnoType<sal_Int32>::get(), 0, 0}, - //UUUU Added DrawingLayer FillStyle Properties for Footer, similar as for Header (see there) + // Added DrawingLayer FillStyle Properties for Footer, similar as for Header (see there) { OUString(UNO_NAME_FOOTER_FILLBMP_LOGICAL_SIZE), XATTR_FILLBMP_SIZELOG, cppu::UnoType<bool>::get() , 0, 0}, { OUString(UNO_NAME_FOOTER_FILLBMP_OFFSET_X), XATTR_FILLBMP_TILEOFFSETX, cppu::UnoType<sal_Int32>::get() , 0, 0}, { OUString(UNO_NAME_FOOTER_FILLBMP_OFFSET_Y), XATTR_FILLBMP_TILEOFFSETY, cppu::UnoType<sal_Int32>::get() , 0, 0}, @@ -767,7 +767,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetSectionPropertyMap( const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetFramePropertyMap() { static SfxItemPropertyMapEntry const aFramePropertyMap_Impl[] = - { //UUUU + { // // TODO: We should consider completely removing SvxBrushItem() stuff // add support for XATTR_FILL_FIRST, XATTR_FILL_LAST // COMMON_FRAME_PROPERTIES currently hosts the RES_BACKGROUND entries from SvxBrushItem @@ -788,7 +788,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetFramePropertyMap() { OUString(UNO_NAME_WIDTH_TYPE), RES_FRM_SIZE, cppu::UnoType<sal_Int16>::get() , PROPERTY_NONE, MID_FRMSIZE_WIDTH_TYPE }, { OUString(UNO_NAME_WRITING_MODE), RES_FRAMEDIR, cppu::UnoType<sal_Int16>::get(), PROPERTY_NONE, 0 }, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to FlyFrame import/export @@ -803,7 +803,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetFramePropertyMap() const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetGraphicPropertyMap() { static SfxItemPropertyMapEntry const aGraphicPropertyMap_Impl[] = - { //UUUU + { // TODO: We should consider completely removing SvxBrushItem() stuff // add support for XATTR_FILL_FIRST, XATTR_FILL_LAST // COMMON_FRAME_PROPERTIES currently hosts the RES_BACKGROUND entries from SvxBrushItem @@ -833,7 +833,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetGraphicPropertyMap( { OUString(UNO_NAME_TRANSPARENCY), RES_GRFATR_TRANSPARENCY, cppu::UnoType<sal_Int16>::get(), 0, 0}, { OUString(UNO_NAME_GRAPHIC_COLOR_MODE), RES_GRFATR_DRAWMODE, cppu::UnoType<css::drawing::ColorMode>::get(), 0, 0}, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to Writer GraphicObject import/export @@ -848,7 +848,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetGraphicPropertyMap( const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetEmbeddedPropertyMap() { static SfxItemPropertyMapEntry const aEmbeddedPropertyMap_Impl[] = - { //UUUU + { // // TODO: We should consider completely removing SvxBrushItem() stuff // add support for XATTR_FILL_FIRST, XATTR_FILL_LAST // COMMON_FRAME_PROPERTIES currently hosts the RES_BACKGROUND entries from SvxBrushItem @@ -865,7 +865,7 @@ const SfxItemPropertyMapEntry* SwUnoPropertyMapProvider::GetEmbeddedPropertyMap { OUString(UNO_NAME_GRAPHIC), FN_UNO_REPLACEMENT_GRAPHIC, cppu::UnoType<css::graphic::XGraphic>::get(), PropertyAttribute::MAYBEVOID, 0 }, { OUString(UNO_NAME_COMPONENT),FN_UNO_COMPONENT, cppu::UnoType<css::lang::XComponent>::get(), PropertyAttribute::READONLY, 0}, { OUString(UNO_NAME_EMBEDDED_OBJECT),FN_EMBEDDED_OBJECT, cppu::UnoType<css::embed::XEmbeddedObject>::get(), PROPERTY_NONE, 0}, - //UUUU added FillProperties for SW, same as FILL_PROPERTIES in svx + // added FillProperties for SW, same as FILL_PROPERTIES in svx // but need own defines in Writer due to later association of strings // and uno types (see loop at end of this method and definition of SW_PROP_NMID) // This entry is for adding that properties to OLE/EmbeddedObject import/export diff --git a/sw/source/core/unocore/unomapproperties.hxx b/sw/source/core/unocore/unomapproperties.hxx index c0c6ed936aec..b8b3091464d0 100644 --- a/sw/source/core/unocore/unomapproperties.hxx +++ b/sw/source/core/unocore/unomapproperties.hxx @@ -251,7 +251,7 @@ #define ANCHOR_TYPES_PROPERTY { OUString(UNO_NAME_ANCHOR_TYPES), FN_UNO_ANCHOR_TYPES, cppu::UnoType< cppu::UnoSequenceType<css::text::TextContentAnchorType> >::get(),PropertyAttribute::READONLY, 0xff}, // #i18732# #i28701# #i73249# -//UUUU all users of COMMON_FRAME_PROPERTIES add the new XATTR_FILL_FIRST, XATTR_FILL_LAST FillStyle, +// all users of COMMON_FRAME_PROPERTIES add the new XATTR_FILL_FIRST, XATTR_FILL_LAST FillStyle, // thus it may be possible to remove the RES_BACKGROUND entries from SvxBrushItem completely (this includes // all using UNO_NAME_BACK_* slots) in the future #define COMMON_FRAME_PROPERTIES \ @@ -476,7 +476,6 @@ { OUString(UNO_NAME_PARA_RIGHT_MARGIN), RES_LR_SPACE, cppu::UnoType<sal_Int32>::get(), PropertyAttribute::MAYBEVOID, MID_R_MARGIN|CONVERT_TWIPS}, \ { OUString(UNO_NAME_TABSTOPS), RES_PARATR_TABSTOP, cppu::UnoType< cppu::UnoSequenceType<css::style::TabStop> >::get(), PropertyAttribute::MAYBEVOID, CONVERT_TWIPS}, \ -//UUUU #define FILL_PROPERTIES_SW_BMP \ { OUString(UNO_NAME_SW_FILLBMP_LOGICAL_SIZE), XATTR_FILLBMP_SIZELOG, cppu::UnoType<bool>::get(), 0, 0}, \ { OUString(UNO_NAME_SW_FILLBMP_OFFSET_X), XATTR_FILLBMP_TILEOFFSETX, cppu::UnoType<sal_Int32>::get(), 0, 0}, \ @@ -490,11 +489,9 @@ { OUString(UNO_NAME_SW_FILLBMP_TILE), XATTR_FILLBMP_TILE, cppu::UnoType<bool>::get(), 0, 0},\ { OUString(UNO_NAME_SW_FILLBMP_MODE), OWN_ATTR_FILLBMP_MODE, cppu::UnoType<drawing::BitmapMode>::get(), 0, 0}, \ -//UUUU #define FILL_PROPERTIES_SW_DEFAULTS \ { OUString(UNO_NAME_SW_FILLCOLOR), XATTR_FILLCOLOR, cppu::UnoType<sal_Int32>::get(), 0, 0}, \ -//UUUU #define FILL_PROPERTIES_SW \ FILL_PROPERTIES_SW_BMP \ FILL_PROPERTIES_SW_DEFAULTS \ diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx index de1042970cce..6ad3ede2bdc3 100644 --- a/sw/source/core/unocore/unoparagraph.cxx +++ b/sw/source/core/unocore/unoparagraph.cxx @@ -46,7 +46,6 @@ #include <com/sun/star/text/TextContentAnchorType.hpp> #include <comphelper/servicehelper.hxx> -//UUUU #include <swunohelper.hxx> #include <svx/unobrushitemhelper.hxx> #include <editeng/unoipset.hxx> @@ -164,7 +163,6 @@ public: GetPropertyValues_Impl( const uno::Sequence< OUString >& rPropertyNames); - //UUUU /// @throws uno::RuntimeException void GetSinglePropertyValue_Impl( const SfxItemPropertySimpleEntry& rEntry, @@ -438,7 +436,7 @@ void SAL_CALL SwXParagraph::setPropertyValues( } } -//UUUU Support for DrawingLayer FillStyles for GetPropertyValue() usages +// Support for DrawingLayer FillStyles for GetPropertyValue() usages void SwXParagraph::Impl::GetSinglePropertyValue_Impl( const SfxItemPropertySimpleEntry& rEntry, const SfxItemSet& rSet, @@ -501,7 +499,7 @@ void SwXParagraph::Impl::GetSinglePropertyValue_Impl( } } - //UUUU check for needed metric translation + // check for needed metric translation if(rEntry.nMemberId & SFX_METRIC_ITEM) { bool bDoIt(true); @@ -561,7 +559,6 @@ uno::Sequence< uno::Any > SwXParagraph::Impl::GetPropertyValues_Impl( *pEntry, aPam, &(pValues[nProp]), eTemp, &rTextNode ); if (!bDone) { - //UUUU GetSinglePropertyValue_Impl(*pEntry, rAttrSet, pValues[nProp]); } } @@ -811,7 +808,6 @@ SwXParagraph::Impl::GetPropertyValuesTolerant_Impl( // if not found try the real paragraph attributes... if (!bDone) { - //UUUU GetSinglePropertyValue_Impl(*pEntry, rValueAttrSet, aValue); } } @@ -977,7 +973,7 @@ static beans::PropertyState lcl_SwXParagraph_getPropertyState( break; } - //UUUU DrawingLayer PropertyStyle support + // DrawingLayer PropertyStyle support case OWN_ATTR_FILLBMP_MODE: { if(*ppSet) @@ -1126,7 +1122,7 @@ SwXParagraph::setPropertyToDefault(const OUString& rPropertyName) { std::set<sal_uInt16> aWhichIds; - //UUUU For FillBitmapMode two IDs have to be reset (!) + // For FillBitmapMode two IDs have to be reset (!) if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID) { aWhichIds.insert(XATTR_FILLBMP_STRETCH); diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 593a17e54ed0..659c068c69f0 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -79,7 +79,7 @@ #include <comphelper/sequence.hxx> #include <o3tl/make_unique.hxx> -//UUUU +// #include <svx/unobrushitemhelper.hxx> #include <editeng/unoipset.hxx> #include <editeng/memberids.hrc> @@ -1492,7 +1492,7 @@ public: m_pMyItemSet.reset(new SfxItemSet(m_xNewBase->GetItemSet())); m_pItemSet = m_pMyItemSet.get(); - //UUUU set parent style to have the correct XFillStyle setting as XFILL_NONE + // set parent style to have the correct XFillStyle setting as XFILL_NONE if(!m_pItemSet->GetParent() && m_pParentStyle) m_pItemSet->SetParent(m_pParentStyle); } @@ -1982,7 +1982,7 @@ void SwXStyle::SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, const pUnoToCoreIt->second(*this, rEntry, rPropSet, rValue, rBase); else { - //UUUU adapted switch logic to a more readable state; removed goto's and made + // adapted switch logic to a more readable state; removed goto's and made // execution of standard setting of proerty in ItemSet dependent of this variable uno::Any aValue(rValue); lcl_TranslateMetric(rEntry, m_pDoc, aValue); @@ -1999,7 +1999,7 @@ void SwXStyle::SetPropertyValues_Impl(const uno::Sequence<OUString>& rPropertyNa if(rPropertyNames.getLength() != rValues.getLength()) throw lang::IllegalArgumentException(); - SwStyleBase_Impl aBaseImpl(*m_pDoc, m_sStyleName, &GetDoc()->GetDfltTextFormatColl()->GetAttrSet()); //UUUU add pDfltTextFormatColl as parent + SwStyleBase_Impl aBaseImpl(*m_pDoc, m_sStyleName, &GetDoc()->GetDfltTextFormatColl()->GetAttrSet()); // add pDfltTextFormatColl as parent if(m_pBasePool) { const sal_uInt16 nSaveMask = m_pBasePool->GetSearchMask(); @@ -2246,7 +2246,6 @@ template<> uno::Any SwXStyle::GetStyleProperty<RES_BACKGROUND>(const SfxItemPropertySimpleEntry& rEntry, const SfxItemPropertySet&, SwStyleBase_Impl& rBase) { PrepareStyleBase(rBase); - //UUUU const SfxItemSet& rSet = rBase.GetItemSet(); const SvxBrushItem aOriginalBrushItem(getSvxBrushItemFromSourceSet(rSet, RES_BACKGROUND)); const sal_uInt8 nMemberId(rEntry.nMemberId & (~SFX_METRIC_ITEM)); @@ -2259,7 +2258,6 @@ template<> uno::Any SwXStyle::GetStyleProperty<OWN_ATTR_FILLBMP_MODE>(const SfxItemPropertySimpleEntry&, const SfxItemPropertySet&, SwStyleBase_Impl& rBase) { PrepareStyleBase(rBase); - //UUUU const SfxItemSet& rSet = rBase.GetItemSet(); const XFillBmpTileItem* pTileItem = dynamic_cast<const XFillBmpTileItem*>(&rSet.Get(XATTR_FILLBMP_TILE)); if(pTileItem && pTileItem->GetValue()) @@ -2276,11 +2274,11 @@ uno::Any SwXStyle::GetStyleProperty<HINT_BEGIN>(const SfxItemPropertySimpleEntry SfxItemSet& rSet = rBase.GetItemSet(); uno::Any aResult; rPropSet.getPropertyValue(rEntry, rSet, aResult); - //UUUU + // // since the sfx uint16 item now exports a sal_Int32, we may have to fix this here if(rEntry.aType == cppu::UnoType<sal_Int16>::get() && aResult.getValueType() == cppu::UnoType<sal_Int32>::get()) aResult <<= (sal_Int16)(aResult.get<sal_Int32>()); - //UUUU check for needed metric translation + // check for needed metric translation if(rEntry.nMemberId & SFX_METRIC_ITEM && GetDoc()) { const SfxItemPool& rPool = GetDoc()->GetAttrPool(); @@ -2380,7 +2378,7 @@ uno::Any SwXStyle::getPropertyValue(const OUString& rPropertyName) throw uno::RuntimeException(); sal_Int8 nPropSetId = m_bIsConditional ? PROPERTY_MAP_CONDITIONAL_PARA_STYLE : m_rEntry.m_nPropMapType; const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId); - SwStyleBase_Impl aBase(*m_pDoc, m_sStyleName, &m_pDoc->GetDfltTextFormatColl()->GetAttrSet()); //UUUU add pDfltTextFormatColl as parent + SwStyleBase_Impl aBase(*m_pDoc, m_sStyleName, &m_pDoc->GetDfltTextFormatColl()->GetAttrSet()); // add pDfltTextFormatColl as parent return GetPropertyValue_Impl(pPropSet, aBase, rPropertyName); } @@ -2393,7 +2391,7 @@ uno::Sequence<uno::Any> SwXStyle::getPropertyValues(const uno::Sequence<OUString throw uno::RuntimeException(); sal_Int8 nPropSetId = m_bIsConditional ? PROPERTY_MAP_CONDITIONAL_PARA_STYLE : m_rEntry.m_nPropMapType; const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(nPropSetId); - SwStyleBase_Impl aBase(*m_pDoc, m_sStyleName, &m_pDoc->GetDfltTextFormatColl()->GetAttrSet()); //UUUU add pDfltTextFormatColl as parent + SwStyleBase_Impl aBase(*m_pDoc, m_sStyleName, &m_pDoc->GetDfltTextFormatColl()->GetAttrSet()); // add pDfltTextFormatColl as parent uno::Sequence<uno::Any> aValues(rPropertyNames.getLength()); // workaround for bad designed API try @@ -2490,7 +2488,6 @@ uno::Sequence<beans::PropertyState> SwXStyle::getPropertyStates(const uno::Seque { case OWN_ATTR_FILLBMP_MODE: { - //UUUU if(SfxItemState::SET == pSourceSet->GetItemState(XATTR_FILLBMP_STRETCH, false) || SfxItemState::SET == pSourceSet->GetItemState(XATTR_FILLBMP_TILE, false)) { @@ -2504,7 +2501,7 @@ uno::Sequence<beans::PropertyState> SwXStyle::getPropertyStates(const uno::Seque break; case RES_BACKGROUND: { - //UUUU for FlyFrames we need to mark the used properties from type RES_BACKGROUND + // for FlyFrames we need to mark the used properties from type RES_BACKGROUND // as beans::PropertyState_DIRECT_VALUE to let users of this property call // getPropertyValue where the member properties will be mapped from the // fill attributes to the according SvxBrushItem entries @@ -2599,7 +2596,7 @@ void SAL_CALL SwXStyle::setPropertiesToDefault(const uno::Sequence<OUString>& aP pTargetFormat->ResetFormatAttr(pEntry->nWID); if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID) { - //UUUU + // SwDoc* pDoc = pTargetFormat->GetDoc(); SfxItemSet aSet(pDoc->GetAttrPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); aSet.SetParent(&pTargetFormat->GetAttrSet()); @@ -2808,7 +2805,7 @@ void SwXPageStyle::SetPropertyValues_Impl(const uno::Sequence<OUString>& rProper const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(PROPERTY_MAP_PAGE_STYLE); const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap(); - SwStyleBase_Impl aBaseImpl(*GetDoc(), GetStyleName(), &GetDoc()->GetDfltFrameFormat()->GetAttrSet()); //UUUU add pDfltFrameFormat as parent + SwStyleBase_Impl aBaseImpl(*GetDoc(), GetStyleName(), &GetDoc()->GetDfltFrameFormat()->GetAttrSet()); // add pDfltFrameFormat as parent if(!m_pBasePool) { if(!IsDescriptor()) @@ -2874,7 +2871,7 @@ void SwXPageStyle::SetPropertyValues_Impl(const uno::Sequence<OUString>& rProper SfxItemSet aTempSet(*aBaseImpl.GetItemSet().GetPool(), RES_FRMATR_BEGIN,RES_FRMATR_END - 1, // [82 - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, // [1014 SID_ATTR_BORDER_INNER,SID_ATTR_BORDER_INNER, // [10023 @@ -2883,7 +2880,7 @@ void SwXPageStyle::SetPropertyValues_Impl(const uno::Sequence<OUString>& rProper SID_ATTR_PAGE_SHARED_FIRST,SID_ATTR_PAGE_SHARED_FIRST, 0); - //UUUU set correct parent to get the XFILL_NONE FillStyle as needed + // set correct parent to get the XFILL_NONE FillStyle as needed aTempSet.SetParent(&GetDoc()->GetDfltFrameFormat()->GetAttrSet()); aTempSet.Put(SfxBoolItem(SID_ATTR_PAGE_ON, true)); @@ -3060,7 +3057,7 @@ uno::Sequence<uno::Any> SwXPageStyle::GetPropertyValues_Impl(const uno::Sequence } const SfxItemPropertySet* pPropSet = aSwMapProvider.GetPropertySet(PROPERTY_MAP_PAGE_STYLE); const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap(); - SwStyleBase_Impl aBase(*GetDoc(), GetStyleName(), &GetDoc()->GetDfltFrameFormat()->GetAttrSet()); //UUUU add pDfltFrameFormat as parent + SwStyleBase_Impl aBase(*GetDoc(), GetStyleName(), &GetDoc()->GetDfltFrameFormat()->GetAttrSet()); // add pDfltFrameFormat as parent SfxStyleSheetBase* pBase = GetStyleSheetBase(); if(!pBase) throw uno::RuntimeException(); @@ -3478,7 +3475,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( } case IStyleAccess::AUTO_STYLE_PARA: { - pRange = aTextNodeSetRange; //UUUU checked, already added support for [XATTR_FILL_FIRST, XATTR_FILL_LAST] + pRange = aTextNodeSetRange; // checked, already added support for [XATTR_FILL_FIRST, XATTR_FILL_LAST] pPropSet = aSwMapProvider.GetPropertySet(PROPERTY_MAP_PARA_AUTO_STYLE); break; } @@ -3513,12 +3510,12 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( } else { - //UUUU set parent to ItemSet to ensure XFILL_NONE as XFillStyleItem + // set parent to ItemSet to ensure XFILL_NONE as XFillStyleItem // to make cases in RES_BACKGROUND work correct; target *is* a style // where this is the case aSet.SetParent(&m_pDocShell->GetDoc()->GetDfltTextFormatColl()->GetAttrSet()); - //UUUU here the used DrawingLayer FillStyles are imported when family is + // here the used DrawingLayer FillStyles are imported when family is // equal to IStyleAccess::AUTO_STYLE_PARA, thus we will need to serve the // used slots functionality here to do this correctly const SfxItemPropertyMap& rMap = pPropSet->getPropertyMap(); @@ -3580,7 +3577,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( { if(MID_NAME == nMemberId) { - //UUUU add set commands for FillName items + // add set commands for FillName items OUString aTempName; if(!(aValue >>= aTempName)) @@ -3595,7 +3592,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( { if(XATTR_FILLBITMAP == pEntry->nWID) { - //UUUU Bitmap also has the MID_GRAFURL mode where a Bitmap URL is used + // Bitmap also has the MID_GRAFURL mode where a Bitmap URL is used const Graphic aNullGraphic; XFillBitmapItem aXFillBitmapItem(aSet.GetPool(), aNullGraphic); @@ -3609,7 +3606,6 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( } case RES_BACKGROUND: { - //UUUU const SvxBrushItem aOriginalBrushItem(getSvxBrushItemFromSourceSet(aSet, RES_BACKGROUND, true, m_pDocShell->GetDoc()->IsInXMLImport())); SvxBrushItem aChangedBrushItem(aOriginalBrushItem); @@ -3625,7 +3621,6 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( } case OWN_ATTR_FILLBMP_MODE: { - //UUUU drawing::BitmapMode eMode; if(!(aValue >>= eMode)) @@ -3666,11 +3661,11 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( } } - //UUUU clear parent again + // clear parent again aSet.SetParent(nullptr); } - //UUUU need to ensure uniqueness of evtl. added NameOrIndex items + // need to ensure uniqueness of evtl. added NameOrIndex items // currently in principle only needed when bTakeCareOfDrawingLayerFillStyle, // but does not hurt and is easily forgotten later eventually, so keep it // as common case @@ -3777,7 +3772,7 @@ uno::Any SwXAutoStylesEnumerator::nextElement( ) return aRet; } -//UUUU SwXAutoStyle with the family IStyleAccess::AUTO_STYLE_PARA (or +// SwXAutoStyle with the family IStyleAccess::AUTO_STYLE_PARA (or // PROPERTY_MAP_PARA_AUTO_STYLE) now uses DrawingLayer FillStyles to allow // unified paragraph background fill, thus the UNO API implementation has to // support the needed slots for these. This seems to be used only for reading @@ -3938,7 +3933,7 @@ uno::Sequence< uno::Any > SwXAutoStyle::GetPropertyValues_Impl( } else if(bTakeCareOfDrawingLayerFillStyle) { - //UUUU add support for DrawingLayer FillStyle slots + // add support for DrawingLayer FillStyle slots switch(pEntry->nWID) { case RES_BACKGROUND: @@ -4130,7 +4125,7 @@ uno::Sequence< beans::PropertyState > SwXAutoStyle::getPropertyStates( if(bTakeCareOfDrawingLayerFillStyle) { - //UUUU DrawingLayer PropertyStyle support + // DrawingLayer PropertyStyle support switch(pEntry->nWID) { case OWN_ATTR_FILLBMP_MODE: diff --git a/sw/source/ui/chrdlg/pardlg.cxx b/sw/source/ui/chrdlg/pardlg.cxx index 6fe5ddeef3d0..84697cd7b968 100644 --- a/sw/source/ui/chrdlg/pardlg.cxx +++ b/sw/source/ui/chrdlg/pardlg.cxx @@ -143,18 +143,18 @@ SwParaDlg::SwParaDlg(vcl::Window *pParent, if(!bHtmlMode || (nHtmlMode & (HTMLMODE_SOME_STYLES|HTMLMODE_FULL_STYLES))) { - //UUUU remove? + // remove? //OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), "GetTabPageCreatorFunc fail!"); //OSL_ENSURE(pFact->GetTabPageRangesFunc( RID_SVXPAGE_BACKGROUND ), "GetTabPageRangesFunc fail!"); //m_nParaBckGrnd = AddTabPage("labelTP_BACKGROUND", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_BACKGROUND ) ); // - //UUUU add Area and Transparence TabPages + // add Area and Transparence TabPages m_nAreaId = AddTabPage("area", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_AREA ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_AREA )); m_nTransparenceId = AddTabPage("transparence", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_TRANSPARENCE ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_TRANSPARENCE ) ); } else { - //UUUU RemoveTabPage("labelTP_BACKGROUND"); + // RemoveTabPage("labelTP_BACKGROUND"); RemoveTabPage("area"); RemoveTabPage("transparence"); } @@ -257,7 +257,7 @@ void SwParaDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage) for(std::set<OUString>::const_iterator it = aNames.begin(); it != aNames.end(); ++it) rBox.InsertEntry(*it); } - //UUUU inits for Area and Transparency TabPages + // inits for Area and Transparency TabPages // The selection attribute lists (XPropertyList derivates, e.g. XColorList for // the color table) need to be added as items (e.g. SvxColorTableItem) to make // these pages find the needed attributes for fill style suggestions. diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx index f5e431423057..bb5fb940360d 100644 --- a/sw/source/ui/fmtui/tmpdlg.cxx +++ b/sw/source/ui/fmtui/tmpdlg.cxx @@ -200,7 +200,7 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent, m_nDropCapsId = AddTabPage("dropcaps", SwDropCapsPage::Create, SwDropCapsPage::GetRanges ); - //UUUU add Area and Transparence TabPages + // add Area and Transparence TabPages m_nAreaId = AddTabPage("area", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_AREA ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_AREA )); m_nTransparenceId = AddTabPage("transparence", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_TRANSPARENCE ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_TRANSPARENCE ) ); @@ -249,7 +249,7 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent, m_nWrapId = AddTabPage("wrap", SwWrapTabPage::Create, SwWrapTabPage::GetRanges); - //UUUU add Area and Transparence TabPages + // add Area and Transparence TabPages m_nAreaId = AddTabPage("area", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_AREA ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_AREA )); m_nTransparenceId = AddTabPage("transparence", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_TRANSPARENCE ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_TRANSPARENCE ) ); @@ -265,12 +265,12 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent, // page styles case SfxStyleFamily::Page: { - //UUUU remove? + // remove? //OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), "GetTabPageCreatorFunc fail!"); //OSL_ENSURE(pFact->GetTabPageRangesFunc( RID_SVXPAGE_BACKGROUND ), "GetTabPageRangesFunc fail!"); //m_nBackgroundId = AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_BACKGROUND ) ); - //UUUU add Area and Transparence TabPages + // add Area and Transparence TabPages m_nAreaId = AddTabPage("area", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_AREA ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_AREA )); m_nTransparenceId = AddTabPage("transparence", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_TRANSPARENCE ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_TRANSPARENCE ) ); @@ -466,7 +466,7 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) static_cast<SwColumnPage&>(rPage).SetFrameMode(true); static_cast<SwColumnPage&>(rPage).SetFormatUsed( true ); } - //UUUU do not remove; many other style dialog combinations still use the SfxTabPage + // do not remove; many other style dialog combinations still use the SfxTabPage // for the SvxBrushItem (see RID_SVXPAGE_BACKGROUND) else if (nId == m_nBackgroundId) { @@ -501,7 +501,7 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) pFirstStyle = pStyleSheetPool->Next(); } } - //UUUU set DrawingLayer FillStyles active + // set DrawingLayer FillStyles active aSet.Put(SfxBoolItem(SID_DRAWINGLAYER_FILLSTYLES, true)); aSet.Put(SfxStringListItem(SID_COLLECT_LIST, &aList)); rPage.PageCreated(aSet); @@ -562,7 +562,7 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) static_cast<SvxHeaderPage&>(rPage).EnableDynamicSpacing(); } - //UUUU set DrawingLayer FillStyles active + // set DrawingLayer FillStyles active aSet.Put(SfxBoolItem(SID_DRAWINGLAYER_FILLSTYLES, true)); rPage.PageCreated(aSet); } @@ -573,7 +573,7 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) static_cast<SvxFooterPage&>(rPage).EnableDynamicSpacing(); } - //UUUU set DrawingLayer FillStyles active + // set DrawingLayer FillStyles active aSet.Put(SfxBoolItem(SID_DRAWINGLAYER_FILLSTYLES, true)); rPage.PageCreated(aSet); } @@ -589,7 +589,7 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) } rPage.PageCreated(aSet); } - //UUUU inits for Area and Transparency TabPages + // inits for Area and Transparency TabPages // The selection attribute lists (XPropertyList derivates, e.g. XColorList for // the color table) need to be added as items (e.g. SvxColorTableItem) to make // these pages find the needed attributes for fill style suggestions. diff --git a/sw/source/ui/frmdlg/frmdlg.cxx b/sw/source/ui/frmdlg/frmdlg.cxx index 30c411cfb19a..3dab469a0cc1 100644 --- a/sw/source/ui/frmdlg/frmdlg.cxx +++ b/sw/source/ui/frmdlg/frmdlg.cxx @@ -100,10 +100,10 @@ SwFrameDlg::SwFrameDlg( SfxViewFrame* pViewFrame, SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); OSL_ENSURE(pFact, "Dialog creation failed!"); - //UUUU remove? + // remove? // m_nBackgroundId = AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), 0); - //UUUU add Area and Transparence TabPages + // add Area and Transparence TabPages m_nAreaId = AddTabPage("area", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_AREA ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_AREA )); m_nTransparenceId = AddTabPage("transparence", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_TRANSPARENCE ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_TRANSPARENCE ) ); @@ -123,7 +123,7 @@ SwFrameDlg::SwFrameDlg( SfxViewFrame* pViewFrame, RemoveTabPage("crop"); if( m_sDlgType != "FrameDialog" ) { - //UUUU RemoveTabPage("background"); + // RemoveTabPage("background"); RemoveTabPage("area"); RemoveTabPage("transparence"); } @@ -180,22 +180,12 @@ void SwFrameDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) rPage.SetFrame( m_pWrtShell->GetView().GetViewFrame()->GetFrame().GetFrameInterface() ); rPage.PageCreated(aNewSet); } - //UUUU - //else if (nId == m_nBackgroundId && m_sDlgType == "FrameDialog") - //{ - // sal_Int32 nFlagType = SVX_SHOW_SELECTOR; - // if (!m_bHTMLMode) - // nFlagType |= SVX_ENABLE_TRANSPARENCY; - // aSet.Put (SfxUInt32Item(SID_FLAG_TYPE, nFlagType)); - // - // rPage.PageCreated(aSet); - //} else if (nId == m_nBorderId) { aSet.Put (SfxUInt16Item(SID_SWMODE_TYPE,static_cast<sal_uInt16>(SwBorderModes::FRAME))); rPage.PageCreated(aSet); } - //UUUU inits for Area and Transparency TabPages + // inits for Area and Transparency TabPages // The selection attribute lists (XPropertyList derivates, e.g. XColorList for // the color table) need to be added as items (e.g. SvxColorListItem) to make // these pages find the needed attributes for fill style suggestions. diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index f83924f7c6ec..7ae5a2fbb700 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -611,7 +611,6 @@ IMPL_LINK_NOARG(ApplyStyle, ApplyHdl, LinkParamNone*, void) } } - //UUUU if(m_bNew) { if(SfxStyleFamily::Frame == m_nFamily || SfxStyleFamily::Para == m_nFamily) @@ -786,7 +785,7 @@ sal_uInt16 SwDocShell::Edit( if(SfxStyleFamily::Page == nFamily || SfxStyleFamily::Para == nFamily) { - //UUUU create needed items for XPropertyList entries from the DrawModel so that + // create needed items for XPropertyList entries from the DrawModel so that // the Area TabPage can access them SfxItemSet& rSet = xTmp->GetItemSet(); const SwDrawModel* pDrawModel = GetDoc()->getIDocumentDrawModelAccess().GetDrawModel(); diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx index a4257fa71fb3..ff9a10de82c3 100644 --- a/sw/source/uibase/app/docstyle.cxx +++ b/sw/source/uibase/app/docstyle.cxx @@ -461,14 +461,14 @@ SwDocStyleSheet::SwDocStyleSheet( SwDoc& rDocument, pTableFormat(nullptr), pBoxFormat(nullptr), rDoc(rDocument), - aCoreSet(GetPool().GetPool(), //UUUU sorted by indices, one double removed + aCoreSet(GetPool().GetPool(), // sorted by indices, one double removed RES_CHRATR_BEGIN, RES_CHRATR_END - 1, // [1 RES_PARATR_BEGIN, RES_PARATR_END - 1, // [60 RES_PARATR_LIST_BEGIN, RES_PARATR_LIST_END - 1, // [77 RES_FRMATR_BEGIN, RES_FRMATR_END - 1, // [82 RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, // [143 - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, // [1014 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, // [10023 @@ -476,7 +476,7 @@ SwDocStyleSheet::SwDocStyleSheet( SwDoc& rDocument, SID_ATTR_PAGE_HEADERSET,SID_ATTR_PAGE_FOOTERSET, // [10058 SID_ATTR_PARA_MODEL, SID_ATTR_PARA_MODEL, // [10065 - //UUUU items to hand over XPropertyList things like + // items to hand over XPropertyList things like // XColorList, XHatchList, XGradientList and XBitmapList // to the Area TabPage SID_COLOR_TABLE, SID_PATTERN_LIST, // [10179 @@ -893,7 +893,7 @@ OUString SwDocStyleSheet::GetDescription(MapUnit eUnit) bool bHasCJKFontPrefix = false; SvtCJKOptions aCJKOptions; - //UUUU Get currently used FillStyle and remember, also need the XFillFloatTransparenceItem + // Get currently used FillStyle and remember, also need the XFillFloatTransparenceItem // to decide if gradient transparence is used const drawing::FillStyle eFillStyle(static_cast< const XFillStyleItem& >(pSet->Get(XATTR_FILLSTYLE)).GetValue()); const bool bUseFloatTransparence(static_cast< const XFillFloatTransparenceItem& >(pSet->Get(XATTR_FILLFLOATTRANSPARENCE)).IsEnabled()); @@ -923,7 +923,6 @@ OUString SwDocStyleSheet::GetDescription(MapUnit eUnit) bool bIsDefault = false; switch ( pItem->Which() ) { - //UUUU case XATTR_FILLCOLOR: { // only use active FillStyle information @@ -1369,7 +1368,7 @@ SfxItemSet& SwDocStyleSheet::GetItemSet() if(pFrameFormat->DerivedFrom()) aCoreSet.SetParent(&pFrameFormat->DerivedFrom()->GetAttrSet()); - //UUUU create needed items for XPropertyList entries from the DrawModel so that + // create needed items for XPropertyList entries from the DrawModel so that // the Area TabPage can access them const SwDrawModel* pDrawModel = rDoc.getIDocumentDrawModelAccess().GetDrawModel(); @@ -1384,7 +1383,7 @@ SfxItemSet& SwDocStyleSheet::GetItemSet() case SfxStyleFamily::Page : { - //UUUU set correct parent to get the drawing::FillStyle_NONE FillStyle as needed + // set correct parent to get the drawing::FillStyle_NONE FillStyle as needed if(!aCoreSet.GetParent()) { aCoreSet.SetParent(&rDoc.GetDfltFrameFormat()->GetAttrSet()); @@ -1690,7 +1689,7 @@ void SwDocStyleSheet::SetItemSet( const SfxItemSet& rSet, if(SfxStyleFamily::Frame == nFamily) { - //UUUU Need to check for unique item for DrawingLayer items of type NameOrIndex + // Need to check for unique item for DrawingLayer items of type NameOrIndex // and evtl. correct that item to ensure unique names for that type. This call may // modify/correct entries inside of the given SfxItemSet rDoc.CheckForUniqueItemForLineFillNameOrIndex(aSet); diff --git a/sw/source/uibase/frmdlg/colex.cxx b/sw/source/uibase/frmdlg/colex.cxx index a71f884dab30..01ae1d42056f 100644 --- a/sw/source/uibase/frmdlg/colex.cxx +++ b/sw/source/uibase/frmdlg/colex.cxx @@ -37,8 +37,6 @@ #include <viewopt.hxx> #include "colex.hxx" #include "colmgr.hxx" - -//UUUU #include <svx/unobrushitemhelper.hxx> // Taking the updated values from the set @@ -129,7 +127,7 @@ void SwPageExample::UpdateExample( const SfxItemSet& rSet ) if(SfxItemState::SET == rHeaderSet.GetItemState(RES_BACKGROUND)) { - //UUUU create FillAttributes from SvxBrushItem //SetHdColor(rItem.GetColor()); + // create FillAttributes from SvxBrushItem //SetHdColor(rItem.GetColor()); const SvxBrushItem& rItem = static_cast< const SvxBrushItem& >(rHeaderSet.Get(RES_BACKGROUND)); SfxItemSet aTempSet(*rHeaderSet.GetPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); @@ -175,7 +173,7 @@ void SwPageExample::UpdateExample( const SfxItemSet& rSet ) if( rFooterSet.GetItemState( RES_BACKGROUND ) == SfxItemState::SET ) { - //UUUU create FillAttributes from SvxBrushItem //SetFtColor(rItem.GetColor()); + // create FillAttributes from SvxBrushItem //SetFtColor(rItem.GetColor()); const SvxBrushItem& rItem = static_cast< const SvxBrushItem& >(rFooterSet.Get(RES_BACKGROUND)); SfxItemSet aTempSet(*rFooterSet.GetPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); @@ -198,7 +196,7 @@ void SwPageExample::UpdateExample( const SfxItemSet& rSet ) if(SfxItemState::SET == rSet.GetItemState(RES_BACKGROUND, false, &pItem)) { - //UUUU create FillAttributes from SvxBrushItem + // create FillAttributes from SvxBrushItem const SvxBrushItem& rItem = static_cast< const SvxBrushItem& >(*pItem); SfxItemSet aTempSet(*rSet.GetPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); @@ -239,15 +237,12 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr aRect.Bottom()= rOrg.Y() + GetSize().Height() - GetBottom() - GetFtHeight() - GetFtDist(); rRenderContext.DrawRect(aRect); - //UUUU const Rectangle aDefineRect(aRect); - - //UUUU const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& rFillAttributes = getPageFillAttributes(); if (!rFillAttributes.get() || !rFillAttributes->isUsed()) { - //UUUU If there is no fill, use fallback color + // If there is no fill, use fallback color const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings(); const Color& rFieldColor = rStyleSettings.GetFieldColor(); @@ -277,7 +272,7 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr else aRect.Bottom() = aRect.Top() + nAutoColWidth; - //UUUU use primitive draw command + // use primitive draw command drawFillAttributes(rRenderContext, getPageFillAttributes(), aRect, aDefineRect); if (i < nColumnCount - 1) diff --git a/sw/source/uibase/frmdlg/frmmgr.cxx b/sw/source/uibase/frmdlg/frmmgr.cxx index 9f55d2d70947..0f91925b7e9b 100644 --- a/sw/source/uibase/frmdlg/frmmgr.cxx +++ b/sw/source/uibase/frmdlg/frmmgr.cxx @@ -47,7 +47,7 @@ using namespace ::com::sun::star; static sal_uInt16 aFrameMgrRange[] = { RES_FRMATR_BEGIN, RES_FRMATR_END-1, - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, diff --git a/sw/source/uibase/inc/frmsh.hxx b/sw/source/uibase/inc/frmsh.hxx index 10ce123d2953..3965ca82cfa8 100644 --- a/sw/source/uibase/inc/frmsh.hxx +++ b/sw/source/uibase/inc/frmsh.hxx @@ -40,11 +40,9 @@ public: void GetLineStyleState(SfxItemSet &rSet); void StateInsert(SfxItemSet &rSet); - //UUUU void GetDrawAttrStateTextFrame(SfxItemSet &rSet); void ExecDrawAttrArgsTextFrame(SfxRequest& rReq); - //UUUU void ExecDrawDlgTextFrame(SfxRequest& rReq); void DisableStateTextFrame(SfxItemSet &rSet); }; diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index b62d8e58db68..dd18d849a30b 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -2214,7 +2214,7 @@ void SwBaseShell::GetBckColState(SfxItemSet &rSet) } else { - //UUUU Adapt to new DrawingLayer FillStyle; use a parent which has XFILL_NONE set + // Adapt to new DrawingLayer FillStyle; use a parent which has XFILL_NONE set SfxItemSet aCoreSet(GetPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); aCoreSet.SetParent(&GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet()); @@ -2274,7 +2274,7 @@ void SwBaseShell::ExecBckCol(SfxRequest& rReq) } else { - //UUUU Adapt to new DrawingLayer FillStyle; use a parent which has XFILL_NONE set + // Adapt to new DrawingLayer FillStyle; use a parent which has XFILL_NONE set SfxItemSet aCoreSet(GetPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); aCoreSet.SetParent(&GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet()); @@ -2333,7 +2333,7 @@ void SwBaseShell::ExecBckCol(SfxRequest& rReq) } else { - //UUUU Adapt to new DrawingLayer FillStyle; use a parent which has XFILL_NONE set + // Adapt to new DrawingLayer FillStyle; use a parent which has XFILL_NONE set SfxItemSet aCoreSet(GetPool(), XATTR_FILL_FIRST, XATTR_FILL_LAST); aCoreSet.SetParent(&GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet()); diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index b2b6a19e9242..91d0c8e77dbb 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -386,10 +386,10 @@ void SwFrameShell::Execute(SfxRequest &rReq) } else { - SfxItemSet aSet(GetPool(), //UUUU sorted by indices + SfxItemSet aSet(GetPool(), // sorted by indices RES_FRMATR_BEGIN, RES_FRMATR_END-1, // [82 - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, // [1014 SID_DOCFRAME, SID_DOCFRAME, // [5598 @@ -399,7 +399,7 @@ void SwFrameShell::Execute(SfxRequest &rReq) SID_ATTR_LRSPACE, SID_ATTR_ULSPACE, // [10048 SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE, // [10051 - //UUUU items to hand over XPropertyList things like + // items to hand over XPropertyList things like // XColorList, XHatchList, XGradientList and XBitmapList // to the Area TabPage SID_COLOR_TABLE, SID_PATTERN_LIST, // [10179 @@ -414,7 +414,7 @@ void SwFrameShell::Execute(SfxRequest &rReq) 0); - //UUUU create needed items for XPropertyList entries from the DrawModel so that + // create needed items for XPropertyList entries from the DrawModel so that // the Area TabPage can access them const SwDrawModel* pDrawModel = rSh.GetView().GetDocShell()->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel(); pDrawModel->PutAreaListItems(aSet); @@ -1204,7 +1204,6 @@ void SwFrameShell::StateInsert(SfxItemSet &rSet) } } -//UUUU void SwFrameShell::GetDrawAttrStateTextFrame(SfxItemSet &rSet) { SwWrtShell &rSh = GetShell(); @@ -1224,7 +1223,6 @@ void SwFrameShell::GetDrawAttrStateTextFrame(SfxItemSet &rSet) } } -//UUUU void SwFrameShell::ExecDrawAttrArgsTextFrame(SfxRequest& rReq) { const SfxItemSet* pArgs = rReq.GetArgs(); @@ -1267,7 +1265,6 @@ void SwFrameShell::ExecDrawAttrArgsTextFrame(SfxRequest& rReq) } } -//UUUU void SwFrameShell::ExecDrawDlgTextFrame(SfxRequest& rReq) { switch(rReq.GetSlot()) @@ -1323,7 +1320,6 @@ void SwFrameShell::ExecDrawDlgTextFrame(SfxRequest& rReq) } } -//UUUU void SwFrameShell::DisableStateTextFrame(SfxItemSet &rSet) { SfxWhichIter aIter(rSet); diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx index 0405fc7a4b67..bbff31c07da0 100644 --- a/sw/source/uibase/shells/grfsh.cxx +++ b/sw/source/uibase/shells/grfsh.cxx @@ -219,12 +219,12 @@ void SwGrfShell::Execute(SfxRequest &rReq) const SwViewOption* pVOpt = rSh.GetViewOptions(); SwViewOption aUsrPref( *pVOpt ); - SfxItemSet aSet(GetPool(), //UUUU sorted by indices + SfxItemSet aSet(GetPool(), // sorted by indices RES_FRMATR_BEGIN,RES_FRMATR_END - 1, // [ 82 RES_GRFATR_MIRRORGRF,RES_GRFATR_CROPGRF, // [ 123 - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, // [ 1014 SID_DOCFRAME,SID_DOCFRAME, // [ 5598 @@ -233,7 +233,7 @@ void SwGrfShell::Execute(SfxRequest &rReq) SID_ATTR_GRAF_KEEP_ZOOM,SID_ATTR_GRAF_KEEP_ZOOM, // [10882 SID_ATTR_GRAF_FRMSIZE,SID_ATTR_GRAF_GRAPHIC, // [10884, contains SID_ATTR_GRAF_FRMSIZE_PERCENT - //UUUU items to hand over XPropertyList things like + // items to hand over XPropertyList things like // XColorList, XHatchList, XGradientList and XBitmapList // to the Area TabPage SID_COLOR_TABLE, SID_PATTERN_LIST, // [10179 @@ -247,7 +247,7 @@ void SwGrfShell::Execute(SfxRequest &rReq) SID_REFERER, SID_REFERER, 0); - //UUUU create needed items for XPropertyList entries from the DrawModel so that + // create needed items for XPropertyList entries from the DrawModel so that // the Area TabPage can access them const SwDrawModel* pDrawModel = rSh.GetView().GetDocShell()->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel(); diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 0a9c346e3c28..aecf52c6b51c 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -909,12 +909,12 @@ void SwTextShell::Execute(SfxRequest &rReq) bool bApplyCharUnit = ::HasCharUnit( dynamic_cast<SwWebView*>( &GetView()) != nullptr ); SW_MOD()->PutItem(SfxBoolItem(SID_ATTR_APPLYCHARUNIT, bApplyCharUnit)); - SfxItemSet aCoreSet( GetPool(), //UUUU sorted by indices, one group of three concatenated + SfxItemSet aCoreSet( GetPool(), // sorted by indices, one group of three concatenated RES_PARATR_BEGIN, RES_PARATR_END - 1, // [60 RES_PARATR_LIST_BEGIN, RES_PARATR_LIST_END - 1, // [77 RES_FRMATR_BEGIN, RES_FRMATR_END - 1, // [82 - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, // [1014 // includes SID_ATTR_TABSTOP_POS @@ -923,7 +923,7 @@ void SwTextShell::Execute(SfxRequest &rReq) SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, // [10023 SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP, // [10065 - //UUUU items to hand over XPropertyList things like + // items to hand over XPropertyList things like // XColorList, XHatchList, XGradientList and XBitmapList // to the Area TabPage SID_COLOR_TABLE, SID_PATTERN_LIST, // [10179 @@ -938,7 +938,7 @@ void SwTextShell::Execute(SfxRequest &rReq) // get also the list level indent values merged as LR-SPACE item, if needed. rWrtSh.GetPaMAttr( pPaM, aCoreSet, true ); - //UUUU create needed items for XPropertyList entries from the DrawModel so that + // create needed items for XPropertyList entries from the DrawModel so that // the Area TabPage can access them // Do this after GetCurAttr, this resets the ItemSet content again const SwDrawModel* pDrawModel = GetView().GetDocShell()->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel(); diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx index 0bfeda9fd1e8..519e6c396e76 100644 --- a/sw/source/uibase/uiview/viewstat.cxx +++ b/sw/source/uibase/uiview/viewstat.cxx @@ -60,7 +60,6 @@ #include <cmdid.h> #include <IDocumentRedlineAccess.hxx> -//UUUU #include <doc.hxx> using namespace ::com::sun::star; @@ -158,7 +157,7 @@ void SwView::GetState(SfxItemSet &rSet) const size_t nCurIdx = m_pWrtShell->GetCurPageDesc(); const SwPageDesc& rDesc = m_pWrtShell->GetPageDesc( nCurIdx ); - //UUUU set correct parent to get the XFILL_NONE FillStyle as needed + // set correct parent to get the XFILL_NONE FillStyle as needed if(!rSet.GetParent()) { const SwFrameFormat& rMaster = rDesc.GetMaster(); diff --git a/sw/source/uibase/utlui/uitool.cxx b/sw/source/uibase/utlui/uitool.cxx index 6f4c20ae016b..09b5841f3cf0 100644 --- a/sw/source/uibase/utlui/uitool.cxx +++ b/sw/source/uibase/utlui/uitool.cxx @@ -467,7 +467,7 @@ void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet) SfxItemSet aHeaderSet(*rSet.GetPool(), RES_FRMATR_BEGIN,RES_FRMATR_END - 1, // [82 - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, // [1014 SID_ATTR_BORDER_INNER,SID_ATTR_BORDER_INNER, // [10023 @@ -476,7 +476,7 @@ void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet) SID_ATTR_PAGE_SHARED_FIRST,SID_ATTR_PAGE_SHARED_FIRST, 0, 0); - //UUUU set correct parent to get the XFILL_NONE FillStyle as needed + // set correct parent to get the XFILL_NONE FillStyle as needed aHeaderSet.SetParent(&rMaster.GetDoc()->GetDfltFrameFormat()->GetAttrSet()); // Dynamic or fixed height @@ -518,7 +518,7 @@ void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet) SfxItemSet aFooterSet(*rSet.GetPool(), RES_FRMATR_BEGIN,RES_FRMATR_END - 1, // [82 - //UUUU FillAttribute support + // FillAttribute support XATTR_FILL_FIRST, XATTR_FILL_LAST, // [1014 SID_ATTR_BORDER_INNER,SID_ATTR_BORDER_INNER, // [10023 @@ -527,7 +527,7 @@ void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet) SID_ATTR_PAGE_SHARED_FIRST,SID_ATTR_PAGE_SHARED_FIRST, 0, 0); - //UUUU set correct parent to get the XFILL_NONE FillStyle as needed + // set correct parent to get the XFILL_NONE FillStyle as needed aFooterSet.SetParent(&rMaster.GetDoc()->GetDfltFrameFormat()->GetAttrSet()); // Dynamic or fixed height |