LibreOffice Module sw (master) 1
|
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps. More...
#include <paratr.hxx>
Public Member Functions | |
SwFormatDrop () | |
virtual | ~SwFormatDrop () override |
SwFormatDrop (const SwFormatDrop &) | |
virtual bool | operator== (const SfxPoolItem &) const override |
"pure virtual methods" of SfxPoolItem More... | |
virtual SwFormatDrop * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override |
sal_uInt8 | GetLines () const |
sal_uInt8 & | GetLines () |
sal_uInt8 | GetChars () const |
sal_uInt8 & | GetChars () |
bool | GetWholeWord () const |
bool & | GetWholeWord () |
sal_uInt16 | GetDistance () const |
sal_uInt16 & | GetDistance () |
const SwCharFormat * | GetCharFormat () const |
SwCharFormat * | GetCharFormat () |
void | SetCharFormat (SwCharFormat *pNew) |
virtual bool | GetInfo (SfxPoolItem &) const override |
Get information from Client. More... | |
void | ChgDefinedIn (const sw::FormatDropDefiner *pDefiner) |
Get and set Modify pointer. More... | |
Public Member Functions inherited from SfxPoolItem | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
T & | StaticWhichCast (TypedWhichId< T > nId) |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
sal_uInt32 | GetRefCount () const |
SfxItemKind | GetKind () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual boost::property_tree::ptree | dumpAsJSON () const |
virtual bool | IsVoidItem () const |
Public Member Functions inherited from SwClient | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::optional< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
virtual bool | GetInfo (SfxPoolItem &) const |
Public Member Functions inherited from sw::WriterListener | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () const |
Static Public Member Functions | |
static SfxPoolItem * | CreateDefault () |
Private Member Functions | |
SwFormatDrop & | operator= (const SwFormatDrop &)=delete |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
Private Attributes | |
sw::FormatDropDefiner * | m_pDefinedIn |
TextNode or FormatColl that contains the CapDrops. More... | |
sal_uInt16 | m_nDistance |
Distance to beginning of text. More... | |
sal_uInt8 | m_nLines |
Line count. More... | |
sal_uInt8 | m_nChars |
Character count. More... | |
bool | m_bWholeWord |
First word with initials. More... | |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Protected Member Functions inherited from SwClient | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
Protected Member Functions inherited from sw::WriterListener | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint)=0 |
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps.
If it is not a Client, formatting uses the CharFormat of the paragraph. If the CharFormat is modified, this change is propagated to the paragraphs via the Modify of SwFormatDrop.
Definition at line 71 of file paratr.hxx.
SwFormatDrop::SwFormatDrop | ( | ) |
Definition at line 38 of file paratr.cxx.
Referenced by Clone(), and CreateDefault().
|
overridevirtual |
Definition at line 60 of file paratr.cxx.
SwFormatDrop::SwFormatDrop | ( | const SwFormatDrop & | rCpy | ) |
Definition at line 49 of file paratr.cxx.
|
inline |
Get and set Modify pointer.
Definition at line 129 of file paratr.hxx.
Referenced by SwHistorySetAttrSet::SwHistorySetAttrSet(), and SwHistorySetFormat::SwHistorySetFormat().
|
overridevirtual |
|
static |
Definition at line 34 of file paratr.cxx.
References SwFormatDrop().
|
inline |
Definition at line 123 of file paratr.hxx.
|
inline |
Definition at line 122 of file paratr.hxx.
Referenced by WW8AttributeOutput::FormatDrop(), SwHTMLWriter::HasScriptDependentItems(), SwTextFormatter::NewDropPortion(), operator==(), OutCSS1_SwFormatDropAttrs(), OutCSS1DropCapRule(), QueryValue(), and SwDropCapsPage::Reset().
|
inline |
Definition at line 114 of file paratr.hxx.
|
inline |
Definition at line 113 of file paratr.hxx.
Referenced by SwDropCapsPage::FillSet(), SwTextFormatInfo::GetDropFormat(), SwTextNode::GetDropSize(), GetPresentation(), SwHTMLParser::InsertAttrs(), SwWW8AttrIter::IsDropCap(), SwTextFormatter::NewDropPortion(), operator==(), SwWW8ImplReader::ReadText(), SwDropCapsPage::Reset(), SwWW8AttrIter::SearchNext(), and SwCSS1Parser::StyleParsed().
|
inline |
Definition at line 120 of file paratr.hxx.
|
inline |
Definition at line 119 of file paratr.hxx.
Referenced by SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), WW8AttributeOutput::FormatDrop(), SwTextFormatter::NewDropPortion(), operator==(), OutCSS1_SwFormatDropAttrs(), SwWW8ImplReader::ReadText(), and SwDropCapsPage::Reset().
|
overridevirtual |
|
inline |
Definition at line 111 of file paratr.hxx.
|
inline |
Definition at line 110 of file paratr.hxx.
Referenced by SwTextFormatter::CalcOnceMore(), SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), WW8AttributeOutput::FormatDrop(), SwTextFormatInfo::GetDropFormat(), SwTextNode::GetDropSize(), GetPresentation(), SwHTMLParser::InsertAttrs(), SwTextFormatter::NewDropPortion(), operator==(), OutCSS1_SwFormatDropAttrs(), SwWW8ImplReader::ReadText(), SwDropCapsPage::Reset(), and SwCSS1Parser::StyleParsed().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 142 of file attrdesc.cxx.
References GetChars(), GetLines(), and SwResId().
|
inline |
Definition at line 117 of file paratr.hxx.
|
inline |
Definition at line 116 of file paratr.hxx.
Referenced by SwDropCapCache::CalcFontSize(), SwDropCapsPage::FillSet(), SwTextFormatInfo::GetDropFormat(), SwTextNode::GetDropSize(), SwWW8AttrIter::IsDropCap(), SwTextFormatter::NewDropPortion(), operator==(), SwWW8ImplReader::ReadText(), SwDropCapsPage::Reset(), and SwWW8AttrIter::SearchNext().
|
privatedelete |
|
overridevirtual |
"pure virtual methods" of SfxPoolItem
Implements SfxPoolItem.
Definition at line 78 of file paratr.cxx.
References GetCharFormat(), GetChars(), GetDistance(), GetLines(), GetWholeWord(), m_bWholeWord, m_nChars, m_nDistance, m_nLines, and m_pDefinedIn.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 126 of file paratr.cxx.
References CONVERT_TWIPS, m_bWholeWord, m_nChars, m_nDistance, m_nLines, MID_DROPCAP_CHAR_STYLE_NAME, MID_DROPCAP_COUNT, MID_DROPCAP_DISTANCE, MID_DROPCAP_FORMAT, MID_DROPCAP_LINES, MID_DROPCAP_WHOLE_WORD, o3tl::mm100, and o3tl::toTwips().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 94 of file paratr.cxx.
References ChrFmt, CONVERT_TWIPS, convertTwipToMm100(), GetCharFormat(), GetName(), SwStyleNameMapper::GetProgName(), m_bWholeWord, m_nChars, m_nDistance, m_nLines, MID_DROPCAP_CHAR_STYLE_NAME, MID_DROPCAP_COUNT, MID_DROPCAP_DISTANCE, MID_DROPCAP_FORMAT, MID_DROPCAP_LINES, MID_DROPCAP_WHOLE_WORD, and sName.
void SwFormatDrop::SetCharFormat | ( | SwCharFormat * | pNew | ) |
Definition at line 64 of file paratr.cxx.
References SwClient::EndListeningAll(), and SwFormat::IsDefault().
Referenced by SwTextShell::ExecParaAttrArgs(), SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), and SwWW8ImplReader::ReadText().
|
inlineoverrideprivatevirtual |
Reimplemented from SwClient.
Definition at line 90 of file paratr.hxx.
References sw::FormatDropDefiner::FormatDropNotify().
|
private |
First word with initials.
Definition at line 77 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Character count.
Definition at line 76 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Distance to beginning of text.
Definition at line 74 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Line count.
Definition at line 75 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
TextNode or FormatColl that contains the CapDrops.
Definition at line 73 of file paratr.hxx.
Referenced by operator==().