Kaydet (Commit) ac8d599c authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Caolán McNamara

Refactored Writer's unomap

Writer's unomap.cxx takes by far the longest to compile.
On Windows, in Release configuration, the file alone
takes 270.5 seconds to compile (measured by cl's
built-in front- and back-end timers.)

The file is split into a new unomap1.cxx which
implements a number of functions to return the
property entries that are set in the map.

The two files compile in a combined time of 9.5 seconds
which is reduced to under 6 seconds in parallel.

Change-Id: I3f722189b94dbef7309bd0447e2c73033d1117a6
Reviewed-on: https://gerrit.libreoffice.org/19973Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 06116bd1
......@@ -467,6 +467,7 @@ $(eval $(call gb_Library_add_exception_objects,sw,\
sw/source/core/unocore/unoftn \
sw/source/core/unocore/unoidx \
sw/source/core/unocore/unomap \
sw/source/core/unocore/unomap1 \
sw/source/core/unocore/unoobj \
sw/source/core/unocore/unoobj2 \
sw/source/core/unocore/unoparagraph \
......
......@@ -330,6 +330,34 @@ public:
const SfxItemPropertyMapEntry* GetPropertyMapEntries(sal_uInt16 PropertyId);
const SfxItemPropertySet* GetPropertySet( sal_uInt16 PropertyId );
private:
static const SfxItemPropertyMapEntry* GetTextCursorPropertyMap();
static const SfxItemPropertyMapEntry* GetAccessibilityTextAttrPropertyMap();
static const SfxItemPropertyMapEntry* GetParagraphPropertyMap();
static const SfxItemPropertyMapEntry* GetAutoParaStylePropertyMap();
static const SfxItemPropertyMapEntry* GetCharStylePropertyMap();
static const SfxItemPropertyMapEntry* GetAutoCharStylePropertyMap();
static const SfxItemPropertyMapEntry* GetParaStylePropertyMap();
static const SfxItemPropertyMapEntry* GetConditionalParaStylePropertyMap();
static const SfxItemPropertyMapEntry* GetFrameStylePropertyMap();
static const SfxItemPropertyMapEntry* GetPageStylePropertyMap();
static const SfxItemPropertyMapEntry* GetTablePropertyMap();
static const SfxItemPropertyMapEntry* GetRangePropertyMap();
static const SfxItemPropertyMapEntry* GetSectionPropertyMap();
static const SfxItemPropertyMapEntry* GetFramePropertyMap();
static const SfxItemPropertyMapEntry* GetGraphicPropertyMap();
static const SfxItemPropertyMapEntry* GetEmbeddedPropertyMap();
static const SfxItemPropertyMapEntry* GetIndexMarkPropertyMap();
static const SfxItemPropertyMapEntry* GetContentMarkPropertyMap();
static const SfxItemPropertyMapEntry* GetUserMarkPropertyMap();
static const SfxItemPropertyMapEntry* GetTextTableCursorPropertyMap();
static const SfxItemPropertyMapEntry* GetBookmarkPropertyMap();
static const SfxItemPropertyMapEntry* GetParagraphExtensionsPropertyMap();
static const SfxItemPropertyMapEntry* GetTextPortionExtensionPropertyMap();
static const SfxItemPropertyMapEntry* GetFootnotePropertyMap();
static const SfxItemPropertyMapEntry* GetRedlinePropertyMap();
static const SfxItemPropertyMapEntry* GetRedlinePortionPropertyMap();
static SfxItemPropertyMapEntry* GetTextDefaultPropertyMap();
};
extern SwUnoPropertyMapProvider aSwMapProvider;
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment