LibreOffice Module sw (master) 1
|
#include <SwXDocumentSettings.hxx>
Public Member Functions | |
SwXDocumentSettings (SwXTextDocument *pModel) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Public Member Functions inherited from comphelper::MasterPropertySet | |
MasterPropertySet (comphelper::MasterPropertySetInfo *pInfo, SolarMutex *pMutex) noexcept | |
virtual | ~MasterPropertySet () noexcept |
void | registerSlave (ChainablePropertySet *pNewSet) noexcept |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Private Member Functions | |
virtual void | _preSetValues () override |
virtual void | _setSingleValue (const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue) override |
virtual void | _postSetValues () override |
virtual void | _preGetValues () override |
virtual void | _getSingleValue (const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue) override |
virtual void | _postGetValues () override |
virtual | ~SwXDocumentSettings () noexcept override |
Private Attributes | |
SwXTextDocument * | mpModel |
SwDocShell * | mpDocSh |
SwDoc * | mpDoc |
VclPtr< SfxPrinter > | mpPrinter |
the printer should be set only once; since there are several printer-related properties, remember the last printer and set it in _postSetValues More... | |
bool | mbPreferPrinterPapersize |
Additional Inherited Members | |
virtual void | _preSetValues ()=0 |
virtual void | _setSingleValue (const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue)=0 |
virtual void | _postSetValues ()=0 |
virtual void | _preGetValues ()=0 |
virtual void | _getSingleValue (const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue)=0 |
virtual void | _postGetValues ()=0 |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Definition at line 33 of file SwXDocumentSettings.hxx.
|
overrideprivatevirtualnoexcept |
Definition at line 305 of file SwXDocumentSettings.cxx.
SwXDocumentSettings::SwXDocumentSettings | ( | SwXTextDocument * | pModel | ) |
Definition at line 293 of file SwXDocumentSettings.cxx.
References Document, SwDocShell::GetDoc(), SwXTextDocument::GetDocShell(), mpModel, and comphelper::MasterPropertySet::registerSlave().
|
overrideprivatevirtual |
Implements comphelper::MasterPropertySet.
Definition at line 1144 of file SwXDocumentSettings.cxx.
References ADD_EXT_LEADING, ADD_FLY_OFFSETS, ADD_PARA_LINE_SPACING_TO_TABLE_CELLS, ADD_PARA_SPACING_TO_TABLE_CELLS, ADD_VERTICAL_FLY_OFFSETS, APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING, AUTO_FIRST_LINE_INDENT_DISREGARD_LINE_SPACE, AUTOUPD_FIELD_AND_CHARTS, AUTOUPD_FIELD_ONLY, BACKGROUND_PARA_OVER_DRAWINGS, CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME, CLIPPED_PICTURES, COLLAPSE_EMPTY_CELL_PARA, CONSIDER_WRAP_ON_OBJECT_POSITION, CONTINUOUS_ENDNOTES, DISABLE_OFF_PAGE_POSITIONING, DO_NOT_BREAK_WRAPPED_TABLES, DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE, DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK, DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT, DROP_CAP_PUNCTUATION, EMBED_ASIAN_SCRIPT_FONTS, EMBED_COMPLEX_SCRIPT_FONTS, EMBED_FONTS, EMBED_LATIN_SCRIPT_FONTS, EMBED_SYSTEM_FONTS, EMBED_USED_FONTS, EMPTY_DB_FIELD_HIDES_PARA, FLOATTABLE_NOMARGINS, FOOTNOTE_IN_COLUMN_TO_PAGEEND, FRAME_AUTOWIDTH_WITH_MORE_PARA, IDocumentSettingAccess::get(), IDocumentSettingAccess::getCharacterCompressionType(), SwDoc::GetDBData(), SwDoc::GetDBManager(), SwDBManager::getEmbeddedName(), IDocumentSettingAccess::getFieldUpdateFlags(), SwDoc::getIDocumentDeviceAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentSettingAccess(), IDocumentSettingAccess::getImagePreferredDPI(), IDocumentSettingAccess::getLinkUpdateMode(), SfxObjectShell::GetModifyPasswordInfo(), IDocumentDeviceAccess::getPrinter(), SwXTextDocument::GetPropertyHelper(), IDocumentRedlineAccess::GetRedlinePassword(), SwDoc::getRsid(), SwDoc::getRsidRoot(), GLOBAL_DOCUMENT_SAVE_LINKS, GUTTER_AT_TOP, HEADER_SPACING_BELOW_LAST_PARA, HYPHENATE_URLS, IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION, INVERT_BORDER_SPACING, SfxObjectShell::IsLoadReadonly(), SfxObjectShell::IsQueryLoadTemplate(), SfxObjectShell::IsSaveVersionOnClose(), SfxObjectShell::IsUseThumbnailSave(), SfxObjectShell::IsUseUserData(), KERN_ASIAN_PUNCTUATION, LABEL_DOCUMENT, MATH_BASELINE_ALIGNMENT, comphelper::PropertyInfo::mnHandle, mpDoc, mpDocSh, mpModel, MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY, MS_WORD_COMP_TRAILING_BLANKS, SwDBData::nCommandType, NO_NUMBERING_SHOW_FOLLOWBY, OLD_LINE_SPACING, OLD_NUMBERING, PARA_SPACE_MAX, PARA_SPACE_MAX_AT_PAGES, PROP_LINE_SPACING_SHRINKS_FIRST_LINE, PROTECT_BOOKMARKS, PROTECT_FIELDS, PROTECT_FORM, SvStream::ReadBytes(), SwDBData::sCommand, SwDBData::sDataSource, SvStream::Seek(), SMALL_CAPS_PERCENTAGE_66, SfxObjectShell::Stamp_GetPrintCancelState(), SfxPrinter::Store(), STREAM_SEEK_TO_BEGIN, STYLES_NODEFAULT, SUBTRACT_FLYS, SURROUND_TEXT_WRAP_SMALL, TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST, TAB_COMPAT, TAB_OVER_MARGIN, TAB_OVER_SPACING, TAB_OVERFLOW, TABLE_ROW_KEEP, TABS_RELATIVE_TO_INDENT, SvMemoryStream::TellEnd(), TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK, UNBREAKABLE_NUMBERINGS, UNIX_FORCE_ZERO_EXT_LEADING, USE_FORMER_OBJECT_POS, USE_FORMER_TEXT_WRAPPING, USE_HIRES_VIRTUAL_DEVICE, USE_VARIABLE_WIDTH_NBSP, and USE_VIRTUAL_DEVICE.
|
overrideprivatevirtual |
Implements comphelper::MasterPropertySet.
Definition at line 1664 of file SwXDocumentSettings.cxx.
|
overrideprivatevirtual |
Implements comphelper::MasterPropertySet.
Definition at line 1112 of file SwXDocumentSettings.cxx.
References SwDoc::getIDocumentDeviceAccess(), IDocumentDeviceAccess::getPrintData(), mbPreferPrinterPapersize, mpDoc, mpDocSh, mpPrinter, SfxItemSet::Put(), and IDocumentDeviceAccess::setPrinter().
|
overrideprivatevirtual |
Implements comphelper::MasterPropertySet.
Definition at line 1134 of file SwXDocumentSettings.cxx.
References SwDocShell::GetDoc(), SwXTextDocument::GetDocShell(), mpDoc, mpDocSh, and mpModel.
|
overrideprivatevirtual |
Implements comphelper::MasterPropertySet.
Definition at line 352 of file SwXDocumentSettings.cxx.
References SwDocShell::GetDoc(), SwXTextDocument::GetDocShell(), mpDoc, mpDocSh, and mpModel.
|
overrideprivatevirtual |
Implements comphelper::MasterPropertySet.
Definition at line 363 of file SwXDocumentSettings.cxx.
References SL::aData, ADD_EXT_LEADING, ADD_FLY_OFFSETS, ADD_PARA_LINE_SPACING_TO_TABLE_CELLS, ADD_PARA_SPACING_TO_TABLE_CELLS, ADD_VERTICAL_FLY_OFFSETS, APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING, AUTO_FIRST_LINE_INDENT_DISREGARD_LINE_SPACE, AUTOMATIC, AUTOUPD_FIELD_AND_CHARTS, AUTOUPD_FIELD_ONLY, AUTOUPD_OFF, BACKGROUND_PARA_OVER_DRAWINGS, SwDoc::ChgDBData(), CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME, CLIPPED_PICTURES, SfxItemSet::Clone(), COLLAPSE_EMPTY_CELL_PARA, CONSIDER_WRAP_ON_OBJECT_POSITION, CONTINUOUS_ENDNOTES, SfxPrinter::Create(), DISABLE_OFF_PAGE_POSITIONING, VclPtr< class reference_type >::disposeAndClear(), DO_NOT_BREAK_WRAPPED_TABLES, DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE, DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK, DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT, DROP_CAP_PUNCTUATION, EMBED_ASIAN_SCRIPT_FONTS, EMBED_COMPLEX_SCRIPT_FONTS, EMBED_FONTS, EMBED_LATIN_SCRIPT_FONTS, EMBED_SYSTEM_FONTS, EMBED_USED_FONTS, eMode, EMPTY_DB_FIELD_HIDES_PARA, FLOATTABLE_NOMARGINS, FN_PARAM_ADDPRINTER, FOOTNOTE_IN_COLUMN_TO_PAGEEND, FRAME_AUTOWIDTH_WITH_MORE_PARA, SwDoc::GetAttrPool(), SfxObjectShell::GetCreateMode(), SwDoc::GetDBData(), SwDoc::GetDBManager(), SwDoc::GetEditShell(), IDocumentSettingAccess::getFieldUpdateFlags(), SwDoc::getIDocumentDeviceAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentSettingAccess(), SfxPrinter::GetOptions(), IDocumentDeviceAccess::getPrinter(), IDocumentRedlineAccess::GetRedlineFlags(), GLOBAL_DOCUMENT_SAVE_LINKS, GLOBALSETTING, GUTTER_AT_TOP, HEADER_SPACING_BELOW_LAST_PARA, HYPHENATE_URLS, IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION, INVERT_BORDER_SPACING, KERN_ASIAN_PUNCTUATION, LABEL_DOCUMENT, comphelper::PropertyInfo::maName, MANUAL, MATH_BASELINE_ALIGNMENT, mbPreferPrinterPapersize, comphelper::PropertyInfo::mnAttributes, comphelper::PropertyInfo::mnHandle, mpDoc, mpDocSh, mpPrinter, MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY, MS_WORD_COMP_TRAILING_BLANKS, NEVER, NO_NUMBERING_SHOW_FOLLOWBY, nValue, OLD_LINE_SPACING, OLD_NUMBERING, On, PARA_SPACE_MAX, PARA_SPACE_MAX_AT_PAGES, PROP_LINE_SPACING_SHRINKS_FIRST_LINE, PROTECT_BOOKMARKS, PROTECT_FIELDS, PROTECT_FORM, SAL_WARN_IF, SvStream::Seek(), IDocumentSettingAccess::set(), IDocumentSettingAccess::setCharacterCompressionType(), SwDBManager::setEmbeddedName(), IDocumentSettingAccess::setFieldUpdateFlags(), IDocumentSettingAccess::setImagePreferredDPI(), IDocumentSettingAccess::setLinkUpdateMode(), SfxObjectShell::SetLoadReadonly(), SfxObjectShell::SetModifyPasswordInfo(), SfxObjectShell::SetQueryLoadTemplate(), IDocumentRedlineAccess::SetRedlineFlags(), IDocumentRedlineAccess::SetRedlinePassword(), IDocumentDeviceAccess::setReferenceDeviceType(), SwDoc::setRsid(), SwDoc::setRsidRoot(), SfxObjectShell::SetSaveVersionOnClose(), SfxObjectShell::SetUseThumbnailSave(), SfxObjectShell::SetUseUserData(), SMALL_CAPS_PERCENTAGE_66, SfxObjectShell::Stamp_SetPrintCancelState(), STREAM_SEEK_TO_BEGIN, STYLES_NODEFAULT, SUBTRACT_FLYS, SURROUND_TEXT_WRAP_SMALL, TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST, TAB_COMPAT, TAB_OVER_MARGIN, TAB_OVER_SPACING, TAB_OVERFLOW, TABLE_ROW_KEEP, TABS_RELATIVE_TO_INDENT, TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK, UNBREAKABLE_NUMBERINGS, UNIX_FORCE_ZERO_EXT_LEADING, USE_FORMER_OBJECT_POS, USE_FORMER_TEXT_WRAPPING, and USE_VARIABLE_WIDTH_NBSP.
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 323 of file SwXDocumentSettings.cxx.
|
overridevirtual |
Definition at line 347 of file SwXDocumentSettings.cxx.
|
overridevirtual |
Definition at line 1671 of file SwXDocumentSettings.cxx.
|
overridevirtual |
Definition at line 1681 of file SwXDocumentSettings.cxx.
|
overridevirtual |
Definition at line 334 of file SwXDocumentSettings.cxx.
References aTypes, and cppu::UnoType< typename T >::get().
|
overridevirtual |
Reimplemented from cppu::OWeakObject.
Definition at line 310 of file SwXDocumentSettings.cxx.
References Any, cppu::OWeakObject::OWeakObject(), and XPropertySet.
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 328 of file SwXDocumentSettings.cxx.
|
overridevirtual |
Definition at line 1676 of file SwXDocumentSettings.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 47 of file SwXDocumentSettings.hxx.
Referenced by _postSetValues(), and _setSingleValue().
|
private |
Definition at line 41 of file SwXDocumentSettings.hxx.
Referenced by _getSingleValue(), _postGetValues(), _postSetValues(), _preGetValues(), _preSetValues(), and _setSingleValue().
|
private |
Definition at line 40 of file SwXDocumentSettings.hxx.
Referenced by _getSingleValue(), _postGetValues(), _postSetValues(), _preGetValues(), _preSetValues(), and _setSingleValue().
|
private |
Definition at line 39 of file SwXDocumentSettings.hxx.
Referenced by _getSingleValue(), _preGetValues(), _preSetValues(), and SwXDocumentSettings().
|
private |
the printer should be set only once; since there are several printer-related properties, remember the last printer and set it in _postSetValues
Definition at line 46 of file SwXDocumentSettings.hxx.
Referenced by _postSetValues(), and _setSingleValue().