|
LibreOffice Module sw (master) 1
|
#include <sal/config.h>#include <o3tl/safeint.hxx>#include <o3tl/string_view.hxx>#include <comphelper/propertysequence.hxx>#include <hintids.hxx>#include <utility>#include <vcl/svapp.hxx>#include <svl/hint.hxx>#include <svtools/ctrltool.hxx>#include <svl/style.hxx>#include <svl/itemiter.hxx>#include <svl/listener.hxx>#include <svl/numformat.hxx>#include <svl/zforlist.hxx>#include <svl/zformat.hxx>#include <svx/pageitem.hxx>#include <editeng/colritem.hxx>#include <editeng/contouritem.hxx>#include <editeng/crossedoutitem.hxx>#include <editeng/fontitem.hxx>#include <editeng/sizeitem.hxx>#include <editeng/udlnitem.hxx>#include <editeng/ulspitem.hxx>#include <editeng/lrspitem.hxx>#include <editeng/boxitem.hxx>#include <editeng/postitem.hxx>#include <editeng/shdditem.hxx>#include <editeng/brushitem.hxx>#include <editeng/flstitem.hxx>#include <editeng/fhgtitem.hxx>#include <editeng/paperinf.hxx>#include <editeng/wghtitem.hxx>#include <autostyle_helper.hxx>#include <pagedesc.hxx>#include <doc.hxx>#include <IDocumentUndoRedo.hxx>#include <IDocumentDeviceAccess.hxx>#include <IDocumentStylePoolAccess.hxx>#include <docary.hxx>#include <charfmt.hxx>#include <cmdid.h>#include <unomid.h>#include <unomap.hxx>#include <unostyle.hxx>#include <unosett.hxx>#include <docsh.hxx>#include <paratr.hxx>#include <unoprnms.hxx>#include <shellio.hxx>#include <docstyle.hxx>#include <unotextbodyhf.hxx>#include <fmthdft.hxx>#include <fmtpdsc.hxx>#include <strings.hrc>#include <poolfmt.hxx>#include <unoevent.hxx>#include <fmtruby.hxx>#include <SwStyleNameMapper.hxx>#include <sfx2/printer.hxx>#include <com/sun/star/frame/XModel.hpp>#include <com/sun/star/io/IOException.hpp>#include <com/sun/star/style/ParagraphStyleCategory.hpp>#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>#include <com/sun/star/beans/PropertyAttribute.hpp>#include <com/sun/star/beans/NamedValue.hpp>#include <com/sun/star/drawing/BitmapMode.hpp>#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>#include <com/sun/star/lang/IllegalArgumentException.hpp>#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>#include <com/sun/star/document/XEventsSupplier.hpp>#include <com/sun/star/io/XInputStream.hpp>#include <istyleaccess.hxx>#include <fmtfsize.hxx>#include <numrule.hxx>#include <tblafmt.hxx>#include <frameformats.hxx>#include <comphelper/servicehelper.hxx>#include <cppuhelper/exc_hlp.hxx>#include <cppuhelper/supportsservice.hxx>#include <cppuhelper/typeprovider.hxx>#include <comphelper/sequence.hxx>#include <sal/log.hxx>#include <svl/stylepool.hxx>#include <svx/unobrushitemhelper.hxx>#include <editeng/unoipset.hxx>#include <editeng/memberids.h>#include <svx/unomid.hxx>#include <svx/unoshape.hxx>#include <svx/xflbstit.hxx>#include <svx/xflbmtit.hxx>#include <swunohelper.hxx>#include <svx/xbtmpit.hxx>#include <ccoll.hxx>#include <hints.hxx>#include <uiitems.hxx>#include <cassert>#include <memory>#include <set>#include <string_view>#include <limits>Go to the source code of this file.
Classes | |
| class | SwAutoStylesEnumImpl |
Functions | |
| static bool | lcl_GetHeaderFooterItem (SfxItemSet const &rSet, std::u16string_view rPropName, bool const bFooter, SvxSetItem const *&o_rpItem) |
| static SwGetPoolIdFromName | lcl_GetSwEnumFromSfxEnum (SfxStyleFamily eFamily) |
| static uno::Reference< beans::XPropertySet > | lcl_InitStandardStyle (const SfxStyleFamily eFamily, uno::Reference< container::XNameAccess > const &rxStyleFamily) |
| static uno::Reference< container::XNameAccess > | lcl_InitStyleFamily (SwDoc *pDoc, const StyleFamilyEntry &rEntry) |
| static bool | lcl_InitConditional (SfxStyleSheetBasePool *pBasePool, const SfxStyleFamily eFamily, const OUString &rStyleName) |
| static const StyleFamilyEntry & | lcl_GetStyleEntry (const SfxStyleFamily eFamily) |
| static sal_uInt8 | lcl_TranslateMetric (const SfxItemPropertyMapEntry &rEntry, SwDoc *pDoc, uno::Any &o_aValue) |
| static const SfxItemSet * | lcl_GetItemsetForProperty (const SfxItemSet &rSet, SfxStyleFamily eFamily, std::u16string_view rPropertyName) |
| static SwFormat * | lcl_GetFormatForStyle (SwDoc const *pDoc, const rtl::Reference< SwDocStyleSheet > &xStyle, const SfxStyleFamily eFamily) |
| static uno::Reference< text::XText > | lcl_makeHeaderFooter (const sal_uInt16 nRes, const bool bHeader, SwFrameFormat const *const pFrameFormat) |
| std::shared_ptr< SfxItemSet > | PropValuesToAutoStyleItemSet (SwDoc &rDoc, IStyleAccess::SwAutoStyleFamily eFamily, const uno::Sequence< beans::PropertyValue > &Values, SwAttrSet &aSet) |
Variables | |
| const IStyleAccess::SwAutoStyleFamily | aAutoStyleByIndex [] |
| #define AUTOSTYLE_FAMILY_COUNT 3 |
Definition at line 3381 of file unostyle.cxx.
| #define nPoolChrHtmlRange (RES_POOLCHR_HTML_END - RES_POOLCHR_HTML_BEGIN) |
Definition at line 136 of file unostyle.cxx.
| #define nPoolChrNormalRange (RES_POOLCHR_NORMAL_END - RES_POOLCHR_NORMAL_BEGIN) |
Definition at line 135 of file unostyle.cxx.
| #define nPoolCollDocRange ( RES_POOLCOLL_DOC_END - RES_POOLCOLL_DOC_BEGIN) |
Definition at line 141 of file unostyle.cxx.
| #define nPoolCollDocStackedStart ( nPoolCollRegisterStackedStart + nPoolCollRegisterRange) |
Definition at line 149 of file unostyle.cxx.
| #define nPoolCollExtraRange ( RES_POOLCOLL_EXTRA_END - RES_POOLCOLL_EXTRA_BEGIN) |
Definition at line 139 of file unostyle.cxx.
| #define nPoolCollExtraStackedStart ( nPoolCollListsStackedStart + nPoolCollListsRange) |
Definition at line 147 of file unostyle.cxx.
| #define nPoolCollHtmlRange ( RES_POOLCOLL_HTML_END - RES_POOLCOLL_HTML_BEGIN) |
Definition at line 142 of file unostyle.cxx.
| #define nPoolCollHtmlStackedStart ( nPoolCollDocStackedStart + nPoolCollDocRange) |
Definition at line 150 of file unostyle.cxx.
| #define nPoolCollListsRange ( RES_POOLCOLL_LISTS_END - RES_POOLCOLL_LISTS_BEGIN) |
Definition at line 138 of file unostyle.cxx.
| #define nPoolCollListsStackedStart ( nPoolCollTextRange) |
Definition at line 146 of file unostyle.cxx.
| #define nPoolCollRegisterRange ( RES_POOLCOLL_REGISTER_END - RES_POOLCOLL_REGISTER_BEGIN) |
Definition at line 140 of file unostyle.cxx.
| #define nPoolCollRegisterStackedStart ( nPoolCollExtraStackedStart + nPoolCollExtraRange) |
Definition at line 148 of file unostyle.cxx.
| #define nPoolCollTextRange ( RES_POOLCOLL_TEXT_END - RES_POOLCOLL_TEXT_BEGIN) |
Definition at line 137 of file unostyle.cxx.
| #define nPoolFrameRange ( RES_POOLFRM_END - RES_POOLFRM_BEGIN) |
Definition at line 143 of file unostyle.cxx.
| #define nPoolNumRange ( RES_POOLNUMRULE_END - RES_POOLNUMRULE_BEGIN) |
Definition at line 145 of file unostyle.cxx.
| #define nPoolPageRange ( RES_POOLPAGE_END - RES_POOLPAGE_BEGIN) |
Definition at line 144 of file unostyle.cxx.
|
static |
Definition at line 2596 of file unostyle.cxx.
References SwDoc::FindPageDesc(), and SwPageDesc::GetMaster().
|
static |
Definition at line 982 of file unostyle.cxx.
References SfxItemSet::GetItemIfSet(), rSet, and UNO_NAME_FIRST_IS_SHARED.
Referenced by lcl_GetItemsetForProperty().
|
static |
Definition at line 2467 of file unostyle.cxx.
References lcl_GetHeaderFooterItem(), rSet, o3tl::starts_with(), u, and UNO_NAME_FIRST_IS_SHARED.
|
static |
Definition at line 1346 of file unostyle.cxx.
|
static |
Definition at line 1239 of file unostyle.cxx.
|
static |
Definition at line 1332 of file unostyle.cxx.
References SfxStyleSheetBasePool::Find(), SwStyleNameMapper::GetPoolIdFromUIName(), IsConditionalByPoolId(), nId, RES_CONDTXTFMTCOLL(), SAL_WARN_IF, and TxtColl.
|
static |
Definition at line 1305 of file unostyle.cxx.
References lcl_InitStandardStyle().
Referenced by lcl_InitStandardStyle().
|
static |
Definition at line 1316 of file unostyle.cxx.
References SfxObjectShell::GetBaseModel(), SwDoc::GetDocShell(), lcl_InitStyleFamily(), and xModel.
Referenced by lcl_InitStyleFamily().
|
static |
Definition at line 3068 of file unostyle.cxx.
References SwXHeadFootText::CreateXHeadFootText(), SwFormat::GetAttrSet(), SwFormatFooter::GetFooterFormat(), SwFormatHeader::GetHeaderFormat(), SfxItemSet::GetItemState(), and rSet.
|
static |
Definition at line 1560 of file unostyle.cxx.
References SwDoc::GetAttrPool(), SfxItemPool::GetMetric(), SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nMoreFlags, SfxItemPropertyMapEntry::nWID, SvxUnoConvertFromMM(), XATTR_FILLBMP_SIZEX(), and XATTR_FILLBMP_SIZEY().
| std::shared_ptr< SfxItemSet > PropValuesToAutoStyleItemSet | ( | SwDoc & | rDoc, |
| IStyleAccess::SwAutoStyleFamily | eFamily, | ||
| const uno::Sequence< beans::PropertyValue > & | Values, | ||
| SwAttrSet & | aSet | ||
| ) |
Definition at line 3522 of file unostyle.cxx.
References aSwMapProvider, IStyleAccess::AUTO_STYLE_CHAR, IStyleAccess::AUTO_STYLE_PARA, IStyleAccess::AUTO_STYLE_RUBY, IStyleAccess::cacheAutomaticStyle(), SwDoc::CheckForUniqueItemForLineFillNameOrIndex(), eMode, SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SfxItemPropertyMap::getByName(), SwDoc::GetDfltTextFormatColl(), SwDoc::GetIStyleAccess(), SfxItemPool::GetMetric(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), getSvxBrushItemFromSourceSet(), SwDoc::IsInXMLImport(), MID_BITMAP, MID_NAME, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nMoreFlags, nValue, SfxItemPropertyMapEntry::nWID, OWN_ATTR_FILLBMP_MODE, PROPERTY_MAP_CHAR_AUTO_STYLE, PROPERTY_MAP_PARA_AUTO_STYLE, PROPERTY_MAP_RUBY_AUTO_STYLE, SfxItemSet::Put(), XFillBitmapItem::PutValue(), RES_BACKGROUND(), SAL_WARN, SvxShape::SetFillAttribute(), SfxItemSet::SetParent(), SfxItemPropertySet::setPropertyValue(), setSvxBrushItemAsFillAttributesToTargetSet(), SvxUnoConvertFromMM(), uno::Any::Value, Values, XATTR_FILLBITMAP(), XATTR_FILLBMP_SIZEX(), XATTR_FILLBMP_SIZEY(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), and XATTR_FILLHATCH().
Referenced by SwXAutoStyleFamily::insertStyle(), and SwXTextCursor::setPropertyValue().
| const IStyleAccess::SwAutoStyleFamily aAutoStyleByIndex[] |
Definition at line 3382 of file unostyle.cxx.
Referenced by SwXAutoStyles::getByIndex().