2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_INC_SWATRSET_HXX
|
|
|
|
#define INCLUDED_SW_INC_SWATRSET_HXX
|
2014-02-20 10:48:55 +01:00
|
|
|
#include <tools/solar.h>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <tools/mempool.hxx>
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/itemset.hxx>
|
|
|
|
#include <svl/itempool.hxx>
|
2009-01-05 14:06:42 +00:00
|
|
|
#include <swdllapi.h>
|
2007-11-23 15:22:34 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwModify;
|
|
|
|
class SwDoc;
|
2002-12-10 08:42:08 +00:00
|
|
|
class OutputDevice;
|
2006-08-14 14:32:11 +00:00
|
|
|
class IDocumentSettingAccess;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SfxBoolItem;
|
|
|
|
class SvxPostureItem;
|
|
|
|
class SvxWeightItem;
|
|
|
|
class SvxShadowedItem;
|
|
|
|
class SvxAutoKernItem;
|
|
|
|
class SvxWordLineModeItem;
|
|
|
|
class SvxContourItem;
|
|
|
|
class SvxKerningItem;
|
|
|
|
class SvxUnderlineItem;
|
2009-01-05 17:49:45 +00:00
|
|
|
class SvxOverlineItem;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SvxCrossedOutItem;
|
|
|
|
class SvxFontHeightItem;
|
|
|
|
class SvxPropSizeItem;
|
|
|
|
class SvxFontItem;
|
|
|
|
class SvxColorItem;
|
|
|
|
class SvxCharSetColorItem;
|
|
|
|
class SvxLanguageItem;
|
|
|
|
class SvxEscapementItem;
|
|
|
|
class SvxCaseMapItem;
|
|
|
|
class SvxNoHyphenItem;
|
|
|
|
class SvxBlinkItem;
|
2000-10-30 11:51:04 +00:00
|
|
|
class SvxEmphasisMarkItem;
|
2000-11-16 20:31:21 +00:00
|
|
|
class SvxTwoLinesItem;
|
2001-02-15 19:10:39 +00:00
|
|
|
class SvxCharScaleWidthItem;
|
|
|
|
class SvxCharRotateItem;
|
2001-03-05 12:50:48 +00:00
|
|
|
class SvxCharReliefItem;
|
2004-02-26 14:24:06 +00:00
|
|
|
class SvxCharHiddenItem;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 22:25:24 +02:00
|
|
|
// Frame attributes
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFormatFillOrder;
|
2015-11-25 06:03:10 -05:00
|
|
|
class SwFormatFrameSize;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SvxPaperBinItem;
|
|
|
|
class SvxLRSpaceItem;
|
|
|
|
class SvxULSpaceItem;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFormatContent;
|
|
|
|
class SwFormatHeader;
|
|
|
|
class SwFormatFooter;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SvxPrintItem;
|
|
|
|
class SvxOpaqueItem;
|
|
|
|
class SvxProtectItem;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFormatSurround;
|
|
|
|
class SwFormatVertOrient;
|
|
|
|
class SwFormatHoriOrient;
|
|
|
|
class SwFormatAnchor;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SvxBoxItem;
|
|
|
|
class SvxBrushItem;
|
|
|
|
class SvxShadowItem;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFormatPageDesc;
|
|
|
|
class SvxFormatBreakItem;
|
|
|
|
class SwFormatCol;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SvxMacroItem;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SvxFormatKeepItem;
|
|
|
|
class SwFormatURL;
|
|
|
|
class SwFormatLineNumber;
|
|
|
|
class SwFormatEditInReadonly;
|
|
|
|
class SwFormatLayoutSplit;
|
|
|
|
class SwFormatRowSplit;
|
|
|
|
class SwFormatChain;
|
|
|
|
class SwFormatFootnoteAtTextEnd;
|
|
|
|
class SwFormatEndAtTextEnd;
|
|
|
|
class SwFormatNoBalancedColumns;
|
2002-01-25 15:32:27 +00:00
|
|
|
class SvxFrameDirectionItem;
|
2002-02-06 15:07:13 +00:00
|
|
|
class SwTextGridItem;
|
2002-08-05 09:55:12 +00:00
|
|
|
class SwHeaderAndFooterEatSpacingItem;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFormatFollowTextFlow;
|
|
|
|
class SwFormatWrapInfluenceOnObjPos;
|
2014-02-08 02:06:32 +01:00
|
|
|
class SdrTextVertAdjustItem;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-10-31 18:28:43 +02:00
|
|
|
// Graphic attributes
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwMirrorGrf;
|
|
|
|
class SwCropGrf;
|
|
|
|
class SwRotationGrf;
|
|
|
|
class SwLuminanceGrf;
|
|
|
|
class SwContrastGrf;
|
|
|
|
class SwChannelRGrf;
|
|
|
|
class SwChannelGGrf;
|
|
|
|
class SwChannelBGrf;
|
|
|
|
class SwGammaGrf;
|
|
|
|
class SwInvertGrf;
|
|
|
|
class SwTransparencyGrf;
|
|
|
|
class SwDrawModeGrf;
|
|
|
|
|
2010-10-31 18:28:43 +02:00
|
|
|
// Paragraph attributes
|
2000-09-18 16:15:01 +00:00
|
|
|
class SvxLineSpacingItem;
|
|
|
|
class SvxAdjustItem;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SvxFormatSplitItem;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwRegisterItem;
|
|
|
|
class SwNumRuleItem;
|
|
|
|
class SvxWidowsItem;
|
|
|
|
class SvxOrphansItem;
|
|
|
|
class SvxTabStopItem;
|
|
|
|
class SvxHyphenZoneItem;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFormatDrop;
|
2000-11-20 08:41:15 +00:00
|
|
|
class SvxScriptSpaceItem;
|
|
|
|
class SvxHangingPunctuationItem;
|
2000-11-29 16:20:06 +00:00
|
|
|
class SvxForbiddenRuleItem;
|
2001-04-10 13:18:33 +00:00
|
|
|
class SvxParaVertAlignItem;
|
2002-02-06 15:07:13 +00:00
|
|
|
class SvxParaGridItem;
|
2003-05-27 15:10:00 +00:00
|
|
|
class SwParaConnectBorderItem;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-10-31 18:28:43 +02:00
|
|
|
// TableBox attributes
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwTableBoxNumFormat;
|
|
|
|
class SwTableBoxFormula;
|
|
|
|
class SwTableBoxValue;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-04-16 10:01:37 +02:00
|
|
|
class SwAttrPool : public SfxItemPool
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-03-19 16:17:02 +00:00
|
|
|
private:
|
2017-03-14 09:14:53 +02:00
|
|
|
// helpers to add/rmove DrawingLayer ItemPool, used in constructor
|
2014-06-02 15:00:50 +00:00
|
|
|
// and destructor; still isolated to evtl. allow other use later, but
|
|
|
|
// used bz default now to have it instantly as needed for DrawingLayer
|
|
|
|
// FillStyle support
|
2014-03-19 16:17:02 +00:00
|
|
|
void createAndAddSecondaryPools();
|
|
|
|
void removeAndDeleteSecondaryPools();
|
|
|
|
|
2016-04-22 10:08:07 +02:00
|
|
|
friend void InitCore(); // For creating/deleting of version maps.
|
|
|
|
friend void FinitCore();
|
2011-01-17 15:06:54 +01:00
|
|
|
static sal_uInt16* pVersionMap1;
|
|
|
|
static sal_uInt16* pVersionMap2;
|
|
|
|
static sal_uInt16* pVersionMap3;
|
|
|
|
static sal_uInt16* pVersionMap4;
|
2010-10-31 18:28:43 +02:00
|
|
|
// due to extension of attribute set a new version
|
2004-02-02 17:15:36 +00:00
|
|
|
// map for binary filter is necessary (version map 5).
|
2011-01-17 15:06:54 +01:00
|
|
|
static sal_uInt16* pVersionMap5;
|
|
|
|
static sal_uInt16* pVersionMap6;
|
2013-08-21 21:30:41 +02:00
|
|
|
static sal_uInt16* pVersionMap7;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-11-03 08:37:52 +01:00
|
|
|
SwDoc* m_pDoc;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
SwAttrPool( SwDoc* pDoc );
|
CWS-TOOLING: integrate CWS aw063
2009-02-12 13:10:24 +0100 aw r267649 : #i99123# when a primitive is invisible, it is not sufficient to produce no output when decomposing, but to add invisible data using HitTestPrimitive2D. This is needed for the slideshow which relies on geometry data in MetaFiles when painting invisible objects
2009-02-12 13:08:39 +0100 aw r267648 : #i99123# do not ignore HitTestPrimitive2D, but draw empty rectangles instead. This is needed since Slideshow is based on getting MetaFile content when painting invisible objects
2009-02-11 16:04:28 +0100 aw r267620 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:04:10 +0100 aw r267619 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:56 +0100 aw r267618 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:39 +0100 aw r267617 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:21 +0100 aw r267615 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:48 +0100 aw r267614 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:24 +0100 aw r267613 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:01 +0100 aw r267612 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:32 +0100 aw r267611 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:05 +0100 aw r267610 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:00:15 +0100 aw r267608 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 11:27:33 +0100 aw r267585 : #i98788# added missing include for STL
2009-02-10 17:46:50 +0100 aw r267570 : #i98788# added reaction on pool destruction
2009-02-10 17:11:58 +0100 aw r267562 : #i98788# added messaging mechanism to register for pool destruction
2009-02-10 13:35:35 +0100 aw r267549 : #i98788# removing changes, too complicated and risky for 3.1
2009-02-10 12:13:48 +0100 aw r267546 : #i98788# 4th round
2009-02-10 12:13:37 +0100 aw r267545 : #i98788# 4th round
2009-02-10 12:13:26 +0100 aw r267544 : #i98788# 4th round
2009-02-10 12:13:14 +0100 aw r267543 : #i98788# 4th round
2009-02-10 12:13:03 +0100 aw r267542 : #i98788# 4th round
2009-02-10 12:12:50 +0100 aw r267541 : #i98788# 4th round
2009-02-10 12:12:37 +0100 aw r267540 : #i98788# 4th round
2009-02-08 14:38:22 +0100 aw r267495 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:38:06 +0100 aw r267494 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:48 +0100 aw r267493 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:17 +0100 aw r267492 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:56 +0100 aw r267491 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:44 +0100 aw r267490 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:29 +0100 aw r267489 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:16 +0100 aw r267488 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:02 +0100 aw r267487 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:35:46 +0100 aw r267486 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-05 12:20:39 +0100 aw r267415 : #i98788# 2nd batch of adaptions for SfxItemPoolHolder addition
2009-02-04 15:12:54 +0100 aw r267385 : #i98788# added newline at EOF
2009-02-04 13:26:04 +0100 aw r267379 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:40 +0100 aw r267378 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:08 +0100 aw r267377 : #i98788# make SfxItemPool holdable
2009-02-04 13:24:42 +0100 aw r267376 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:14 +0100 aw r267375 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:02 +0100 aw r267374 : #i98788# make SfxItemPool holdable
2009-01-29 17:08:31 +0100 aw r267159 : #i97628# completed the fix
2009-01-29 17:08:15 +0100 aw r267158 : #i97628# completed the fix
2009-01-29 14:09:07 +0100 aw r267132 : #i97628# Corrected usage of ParagraphData in headers
2009-01-29 14:06:58 +0100 iha r267131 : #i98344# incorrect font size in charts
2009-01-29 12:13:46 +0100 aw r267115 : #i97628# back to old state; triggers too many errors in other modules
2009-01-29 12:03:51 +0100 aw r267114 : #i97628# enabled exceptions due to STL vector include
2009-01-29 11:21:37 +0100 aw r267107 : #i97628# added needed include
2009-01-28 17:58:29 +0100 aw r267077 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:58:12 +0100 aw r267076 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:51 +0100 aw r267074 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:21 +0100 aw r267073 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-27 17:07:33 +0100 aw r267011 : #i98402# added support for ViewRange when exporting MetaFiles in ObjectContactOfPageView::DoProcessDisplay to avoid to paint too much
2009-01-27 11:45:48 +0100 aw r266973 : #i98404# Added a warning to a place where a conversion to rectangle should not be copied from
2009-01-26 21:44:36 +0100 iha r266949 : #i98497# 3D charts are rendered with wrong size
2009-01-26 20:47:07 +0100 aw r266947 : #i98404# handle BackgroundColorPrimitive2D directly in PixelRenderers and avoid AA under all circumstances
2009-01-26 14:50:36 +0100 aw r266926 : #i98386# secured cloning of SdrObject in IMapUserData by boost::shared_prt usage
2009-01-26 12:51:30 +0100 aw r266916 : #i96581# added separated FontStretching and fallback for small X!=Y scale differences
2009-01-23 16:14:55 +0100 aw r266834 : #i96475# added missing implementation of TextDecoratedPortionPrimitive2D::getB2DRange
2009-01-23 15:24:34 +0100 aw r266826 : #i98405# fixed fallback to DrawAlphaRect to use the correctly sized rectangle
2009-01-23 13:34:43 +0100 aw r266813 : #i96474# fixed impSplitSingleWords for an unexpected case
2009-01-23 10:47:31 +0100 aw r266786 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:20 +0100 aw r266785 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:09 +0100 aw r266783 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:58 +0100 aw r266782 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:48 +0100 aw r266781 : #i98289#,#i96474# tooling and new flags for tasks
2009-03-04 14:16:02 +00:00
|
|
|
protected:
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SwAttrPool() override;
|
CWS-TOOLING: integrate CWS aw063
2009-02-12 13:10:24 +0100 aw r267649 : #i99123# when a primitive is invisible, it is not sufficient to produce no output when decomposing, but to add invisible data using HitTestPrimitive2D. This is needed for the slideshow which relies on geometry data in MetaFiles when painting invisible objects
2009-02-12 13:08:39 +0100 aw r267648 : #i99123# do not ignore HitTestPrimitive2D, but draw empty rectangles instead. This is needed since Slideshow is based on getting MetaFile content when painting invisible objects
2009-02-11 16:04:28 +0100 aw r267620 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:04:10 +0100 aw r267619 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:56 +0100 aw r267618 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:39 +0100 aw r267617 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:21 +0100 aw r267615 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:48 +0100 aw r267614 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:24 +0100 aw r267613 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:01 +0100 aw r267612 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:32 +0100 aw r267611 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:05 +0100 aw r267610 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:00:15 +0100 aw r267608 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 11:27:33 +0100 aw r267585 : #i98788# added missing include for STL
2009-02-10 17:46:50 +0100 aw r267570 : #i98788# added reaction on pool destruction
2009-02-10 17:11:58 +0100 aw r267562 : #i98788# added messaging mechanism to register for pool destruction
2009-02-10 13:35:35 +0100 aw r267549 : #i98788# removing changes, too complicated and risky for 3.1
2009-02-10 12:13:48 +0100 aw r267546 : #i98788# 4th round
2009-02-10 12:13:37 +0100 aw r267545 : #i98788# 4th round
2009-02-10 12:13:26 +0100 aw r267544 : #i98788# 4th round
2009-02-10 12:13:14 +0100 aw r267543 : #i98788# 4th round
2009-02-10 12:13:03 +0100 aw r267542 : #i98788# 4th round
2009-02-10 12:12:50 +0100 aw r267541 : #i98788# 4th round
2009-02-10 12:12:37 +0100 aw r267540 : #i98788# 4th round
2009-02-08 14:38:22 +0100 aw r267495 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:38:06 +0100 aw r267494 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:48 +0100 aw r267493 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:17 +0100 aw r267492 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:56 +0100 aw r267491 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:44 +0100 aw r267490 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:29 +0100 aw r267489 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:16 +0100 aw r267488 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:02 +0100 aw r267487 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:35:46 +0100 aw r267486 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-05 12:20:39 +0100 aw r267415 : #i98788# 2nd batch of adaptions for SfxItemPoolHolder addition
2009-02-04 15:12:54 +0100 aw r267385 : #i98788# added newline at EOF
2009-02-04 13:26:04 +0100 aw r267379 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:40 +0100 aw r267378 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:08 +0100 aw r267377 : #i98788# make SfxItemPool holdable
2009-02-04 13:24:42 +0100 aw r267376 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:14 +0100 aw r267375 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:02 +0100 aw r267374 : #i98788# make SfxItemPool holdable
2009-01-29 17:08:31 +0100 aw r267159 : #i97628# completed the fix
2009-01-29 17:08:15 +0100 aw r267158 : #i97628# completed the fix
2009-01-29 14:09:07 +0100 aw r267132 : #i97628# Corrected usage of ParagraphData in headers
2009-01-29 14:06:58 +0100 iha r267131 : #i98344# incorrect font size in charts
2009-01-29 12:13:46 +0100 aw r267115 : #i97628# back to old state; triggers too many errors in other modules
2009-01-29 12:03:51 +0100 aw r267114 : #i97628# enabled exceptions due to STL vector include
2009-01-29 11:21:37 +0100 aw r267107 : #i97628# added needed include
2009-01-28 17:58:29 +0100 aw r267077 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:58:12 +0100 aw r267076 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:51 +0100 aw r267074 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:21 +0100 aw r267073 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-27 17:07:33 +0100 aw r267011 : #i98402# added support for ViewRange when exporting MetaFiles in ObjectContactOfPageView::DoProcessDisplay to avoid to paint too much
2009-01-27 11:45:48 +0100 aw r266973 : #i98404# Added a warning to a place where a conversion to rectangle should not be copied from
2009-01-26 21:44:36 +0100 iha r266949 : #i98497# 3D charts are rendered with wrong size
2009-01-26 20:47:07 +0100 aw r266947 : #i98404# handle BackgroundColorPrimitive2D directly in PixelRenderers and avoid AA under all circumstances
2009-01-26 14:50:36 +0100 aw r266926 : #i98386# secured cloning of SdrObject in IMapUserData by boost::shared_prt usage
2009-01-26 12:51:30 +0100 aw r266916 : #i96581# added separated FontStretching and fallback for small X!=Y scale differences
2009-01-23 16:14:55 +0100 aw r266834 : #i96475# added missing implementation of TextDecoratedPortionPrimitive2D::getB2DRange
2009-01-23 15:24:34 +0100 aw r266826 : #i98405# fixed fallback to DrawAlphaRect to use the correctly sized rectangle
2009-01-23 13:34:43 +0100 aw r266813 : #i96474# fixed impSplitSingleWords for an unexpected case
2009-01-23 10:47:31 +0100 aw r266786 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:20 +0100 aw r266785 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:09 +0100 aw r266783 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:58 +0100 aw r266782 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:48 +0100 aw r266781 : #i98289#,#i96474# tooling and new flags for tasks
2009-03-04 14:16:02 +00:00
|
|
|
public:
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-11-03 08:37:52 +01:00
|
|
|
SwDoc* GetDoc() { return m_pDoc; }
|
|
|
|
const SwDoc* GetDoc() const { return m_pDoc; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2009-01-05 14:06:42 +00:00
|
|
|
class SW_DLLPUBLIC SwAttrSet : public SfxItemSet
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2010-10-31 18:28:43 +02:00
|
|
|
// Pointer for Modify-System
|
2015-11-03 08:40:22 +01:00
|
|
|
SwAttrSet *m_pOldSet, *m_pNewSet;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
// Notification-Callback
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew ) override;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
void PutChgd( const SfxPoolItem& rI ) { SfxItemSet::PutDirect( rI ); }
|
|
|
|
public:
|
2011-01-17 15:06:54 +01:00
|
|
|
SwAttrSet( SwAttrPool&, sal_uInt16 nWhich1, sal_uInt16 nWhich2 );
|
|
|
|
SwAttrSet( SwAttrPool&, const sal_uInt16* nWhichPairTable );
|
2000-09-18 16:15:01 +00:00
|
|
|
SwAttrSet( const SwAttrSet& );
|
|
|
|
|
2015-11-10 10:25:48 +01:00
|
|
|
virtual SfxItemSet* Clone(bool bItems = true, SfxItemPool *pToPool = nullptr) const override;
|
2006-12-01 14:33:55 +00:00
|
|
|
|
2014-01-17 17:11:45 +01:00
|
|
|
bool Put_BC( const SfxPoolItem& rAttr, SwAttrSet* pOld, SwAttrSet* pNew );
|
|
|
|
bool Put_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 22:25:24 +02:00
|
|
|
// Delete an item or a range.
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 ClearItem_BC( sal_uInt16 nWhich, SwAttrSet* pOld, SwAttrSet* pNew );
|
|
|
|
sal_uInt16 ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
|
2015-11-10 10:25:48 +01:00
|
|
|
SwAttrSet* pOld = nullptr, SwAttrSet* pNew = nullptr );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
int Intersect_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
|
|
|
|
|
|
|
|
void GetPresentation( SfxItemPresentation ePres,
|
2016-08-19 09:31:35 +01:00
|
|
|
MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-11-10 09:39:17 +02:00
|
|
|
SwAttrPool* GetPool() const { return static_cast<SwAttrPool*>(SfxItemSet::GetPool()); }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 22:25:24 +02:00
|
|
|
// Copy attributes, if necessary across documents.
|
2000-09-18 16:15:01 +00:00
|
|
|
void CopyToModify( SwModify& rMod ) const;
|
|
|
|
|
2011-04-18 22:25:24 +02:00
|
|
|
// Special treatment for some attributes.
|
|
|
|
// Set Modify-pointer (the old pDefinedIn) at the following attributes:
|
2015-05-20 13:05:49 +02:00
|
|
|
// - SwFormatDropCaps
|
|
|
|
// - SwFormatPageDesc
|
2011-04-18 22:25:24 +02:00
|
|
|
// (Is called at insert in formats/nodes.)
|
2015-05-20 13:05:49 +02:00
|
|
|
// Second version is for the SwAttrSet handles of SwContentNode.
|
2006-12-01 14:33:55 +00:00
|
|
|
bool SetModifyAtAttr( const SwModify* pModify );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 22:25:24 +02:00
|
|
|
// Document is set at SwAttrPool. Therefore it is always accessible.
|
2000-09-18 16:15:01 +00:00
|
|
|
const SwDoc *GetDoc() const { return GetPool()->GetDoc(); }
|
|
|
|
SwDoc *GetDoc() { return GetPool()->GetDoc(); }
|
|
|
|
|
2014-11-08 14:19:22 +01:00
|
|
|
// Get methods: bool indicates whether to search only in Set (when false)
|
2011-04-18 22:25:24 +02:00
|
|
|
// or also in parents. If nothing is found then default attribute is returned.
|
|
|
|
// Character attributes. Implementation in charatr.hxx.
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxPostureItem &GetPosture( bool = true ) const;
|
|
|
|
inline const SvxWeightItem &GetWeight( bool = true ) const;
|
|
|
|
inline const SvxShadowedItem &GetShadowed( bool = true ) const;
|
|
|
|
inline const SvxAutoKernItem &GetAutoKern( bool = true ) const;
|
|
|
|
inline const SvxWordLineModeItem &GetWordLineMode( bool = true ) const;
|
|
|
|
inline const SvxContourItem &GetContour( bool = true ) const;
|
|
|
|
inline const SvxKerningItem &GetKerning( bool = true ) const;
|
|
|
|
inline const SvxUnderlineItem &GetUnderline( bool = true ) const;
|
|
|
|
inline const SvxOverlineItem &GetOverline( bool = true ) const;
|
|
|
|
inline const SvxCrossedOutItem &GetCrossedOut( bool = true ) const;
|
|
|
|
inline const SvxFontHeightItem &GetSize( bool = true ) const;
|
|
|
|
inline const SvxFontItem &GetFont( bool = true ) const;
|
|
|
|
inline const SvxColorItem &GetColor( bool = true ) const;
|
|
|
|
inline const SvxLanguageItem &GetLanguage( bool = true ) const;
|
|
|
|
inline const SvxEscapementItem &GetEscapement( bool = true ) const;
|
|
|
|
inline const SvxCaseMapItem &GetCaseMap( bool = true ) const;
|
|
|
|
inline const SvxNoHyphenItem &GetNoHyphenHere( bool = true ) const;
|
|
|
|
inline const SvxBlinkItem &GetBlink( bool = true ) const;
|
|
|
|
inline const SvxFontItem &GetCJKFont( bool = true ) const;
|
|
|
|
inline const SvxFontHeightItem &GetCJKSize( bool = true ) const;
|
|
|
|
inline const SvxLanguageItem &GetCJKLanguage( bool = true ) const;
|
|
|
|
inline const SvxPostureItem &GetCJKPosture( bool = true ) const;
|
|
|
|
inline const SvxWeightItem &GetCJKWeight( bool = true ) const;
|
|
|
|
inline const SvxFontItem &GetCTLFont( bool = true ) const;
|
|
|
|
inline const SvxFontHeightItem &GetCTLSize( bool = true ) const;
|
|
|
|
inline const SvxLanguageItem &GetCTLLanguage( bool = true ) const;
|
|
|
|
inline const SvxPostureItem &GetCTLPosture( bool = true ) const;
|
|
|
|
inline const SvxWeightItem &GetCTLWeight( bool = true ) const;
|
|
|
|
inline const SvxEmphasisMarkItem &GetEmphasisMark( bool = true ) const;
|
|
|
|
inline const SvxTwoLinesItem &Get2Lines( bool = true ) const;
|
|
|
|
inline const SvxCharScaleWidthItem &GetCharScaleW( bool = true ) const;
|
|
|
|
inline const SvxCharRotateItem &GetCharRotate( bool = true ) const;
|
|
|
|
inline const SvxCharReliefItem &GetCharRelief( bool = true ) const;
|
|
|
|
inline const SvxCharHiddenItem &GetCharHidden( bool = true ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 22:25:24 +02:00
|
|
|
// Frame attributes. Implementation in frmatr.hxx.
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwFormatFillOrder &GetFillOrder( bool = true ) const;
|
2015-11-25 06:03:10 -05:00
|
|
|
inline const SwFormatFrameSize &GetFrameSize( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxPaperBinItem &GetPaperBin( bool = true ) const;
|
|
|
|
inline const SvxLRSpaceItem &GetLRSpace( bool = true ) const;
|
|
|
|
inline const SvxULSpaceItem &GetULSpace( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwFormatContent &GetContent( bool = true ) const;
|
|
|
|
inline const SwFormatHeader &GetHeader( bool = true ) const;
|
|
|
|
inline const SwFormatFooter &GetFooter( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxPrintItem &GetPrint( bool = true ) const;
|
|
|
|
inline const SvxOpaqueItem &GetOpaque( bool = true ) const;
|
|
|
|
inline const SvxProtectItem &GetProtect( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwFormatSurround &GetSurround( bool = true ) const;
|
|
|
|
inline const SwFormatVertOrient &GetVertOrient( bool = true ) const;
|
|
|
|
inline const SwFormatHoriOrient &GetHoriOrient( bool = true ) const;
|
|
|
|
inline const SwFormatAnchor &GetAnchor( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxBoxItem &GetBox( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SvxFormatKeepItem &GetKeep( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxBrushItem &GetBackground( bool = true ) const;
|
|
|
|
inline const SvxShadowItem &GetShadow( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwFormatPageDesc &GetPageDesc( bool = true ) const;
|
|
|
|
inline const SvxFormatBreakItem &GetBreak( bool = true ) const;
|
|
|
|
inline const SwFormatCol &GetCol( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxMacroItem &GetMacro( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwFormatURL &GetURL( bool = true ) const;
|
|
|
|
inline const SwFormatEditInReadonly &GetEditInReadonly( bool = true ) const;
|
|
|
|
inline const SwFormatLayoutSplit &GetLayoutSplit( bool = true ) const;
|
|
|
|
inline const SwFormatRowSplit &GetRowSplit( bool = true ) const;
|
|
|
|
inline const SwFormatChain &GetChain( bool = true ) const;
|
|
|
|
inline const SwFormatLineNumber &GetLineNumber( bool = true ) const;
|
|
|
|
inline const SwFormatFootnoteAtTextEnd &GetFootnoteAtTextEnd( bool = true ) const;
|
|
|
|
inline const SwFormatEndAtTextEnd &GetEndAtTextEnd( bool = true ) const;
|
|
|
|
inline const SwFormatNoBalancedColumns &GetBalancedColumns( bool = true ) const;
|
2015-11-25 06:03:10 -05:00
|
|
|
inline const SvxFrameDirectionItem &GetFrameDir( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SwHeaderAndFooterEatSpacingItem &GetHeaderAndFooterEatSpacing( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwFormatFollowTextFlow &GetFollowTextFlow(bool = true) const;
|
|
|
|
inline const SwFormatWrapInfluenceOnObjPos& GetWrapInfluenceOnObjPos(bool = true) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SdrTextVertAdjustItem& GetTextVertAdjust(bool = true) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-10-31 18:28:43 +02:00
|
|
|
// Graphic attributes - implementation in grfatr.hxx
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SwMirrorGrf &GetMirrorGrf( bool = true ) const;
|
|
|
|
inline const SwCropGrf &GetCropGrf( bool = true ) const;
|
|
|
|
inline const SwRotationGrf &GetRotationGrf(bool = true ) const;
|
|
|
|
inline const SwLuminanceGrf &GetLuminanceGrf(bool = true ) const;
|
|
|
|
inline const SwContrastGrf &GetContrastGrf(bool = true ) const;
|
|
|
|
inline const SwChannelRGrf &GetChannelRGrf(bool = true ) const;
|
|
|
|
inline const SwChannelGGrf &GetChannelGGrf(bool = true ) const;
|
|
|
|
inline const SwChannelBGrf &GetChannelBGrf(bool = true ) const;
|
|
|
|
inline const SwGammaGrf &GetGammaGrf(bool = true ) const;
|
|
|
|
inline const SwInvertGrf &GetInvertGrf(bool = true ) const;
|
|
|
|
inline const SwTransparencyGrf &GetTransparencyGrf(bool = true ) const;
|
|
|
|
inline const SwDrawModeGrf &GetDrawModeGrf(bool = true ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-10-31 18:28:43 +02:00
|
|
|
// Paragraph attributes - implementation in paratr.hxx
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxLineSpacingItem &GetLineSpacing( bool = true ) const;
|
|
|
|
inline const SvxAdjustItem &GetAdjust( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SvxFormatSplitItem &GetSplit( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SwRegisterItem &GetRegister( bool = true ) const;
|
|
|
|
inline const SwNumRuleItem &GetNumRule( bool = true ) const;
|
|
|
|
inline const SvxWidowsItem &GetWidows( bool = true ) const;
|
|
|
|
inline const SvxOrphansItem &GetOrphans( bool = true ) const;
|
|
|
|
inline const SvxTabStopItem &GetTabStops( bool = true ) const;
|
|
|
|
inline const SvxHyphenZoneItem &GetHyphenZone( bool = true ) const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwFormatDrop &GetDrop( bool = true ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline const SvxScriptSpaceItem &GetScriptSpace(bool = true) const;
|
|
|
|
inline const SvxHangingPunctuationItem &GetHangingPunctuation(bool = true) const;
|
|
|
|
inline const SvxForbiddenRuleItem &GetForbiddenRule(bool = true) const;
|
|
|
|
inline const SvxParaVertAlignItem &GetParaVertAlign(bool = true) const;
|
|
|
|
inline const SvxParaGridItem &GetParaGrid(bool = true) const;
|
|
|
|
inline const SwParaConnectBorderItem &GetParaConnectBorder(bool = true ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-10-31 18:28:43 +02:00
|
|
|
// Tablebox attributes - implementation in cellatr.hxx
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwTableBoxNumFormat &GetTableBoxNumFormat( bool = true ) const;
|
|
|
|
inline const SwTableBoxFormula &GetTableBoxFormula( bool = true ) const;
|
|
|
|
inline const SwTableBoxValue &GetTableBoxValue( bool = true ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
DECL_FIXEDMEMPOOL_NEWDEL(SwAttrSet)
|
|
|
|
};
|
|
|
|
|
2002-12-10 08:42:08 +00:00
|
|
|
//Helper for filters to find true lineheight of a font
|
2009-01-05 14:06:42 +00:00
|
|
|
SW_DLLPUBLIC long AttrSetToLineHeight( const IDocumentSettingAccess& rIDocumentSettingAccess,
|
2006-08-14 14:32:11 +00:00
|
|
|
const SwAttrSet &rSet,
|
|
|
|
const OutputDevice &rOut, sal_Int16 nScript);
|
2000-09-18 16:15:01 +00:00
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|