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... | |
![]() | |
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 |
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 void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
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 |
![]() | |
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 &) |
![]() | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () 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 | |
![]() | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
![]() | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
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 62 of file paratr.hxx.
SwFormatDrop::SwFormatDrop | ( | ) |
Definition at line 38 of file paratr.cxx.
References false.
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 120 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 113 of file paratr.hxx.
References SwClient::GetRegisteredIn().
Referenced by WW8AttributeOutput::FormatDrop(), SwHTMLWriter::HasScriptDependentItems(), SwTextFormatter::NewDropPortion(), operator==(), OutCSS1_SwFormatDropAttrs(), OutCSS1DropCapRule(), and QueryValue().
|
inline |
Definition at line 114 of file paratr.hxx.
References SwClient::GetRegisteredIn().
|
inline |
Definition at line 104 of file paratr.hxx.
Referenced by SwDropCapsPage::FillSet(), SwTextFormatInfo::GetDropFormat(), SwTextNode::GetDropSize(), SwHTMLParser::InsertAttrs(), SwWW8AttrIter::IsDropCap(), SwTextFormatter::NewDropPortion(), operator==(), SwWW8ImplReader::ReadText(), SwWW8AttrIter::SearchNext(), and SwCSS1Parser::StyleParsed().
|
inline |
Definition at line 105 of file paratr.hxx.
|
inline |
Definition at line 110 of file paratr.hxx.
Referenced by SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), WW8AttributeOutput::FormatDrop(), SwTextFormatter::NewDropPortion(), operator==(), OutCSS1_SwFormatDropAttrs(), and SwWW8ImplReader::ReadText().
|
inline |
Definition at line 111 of file paratr.hxx.
|
overridevirtual |
|
inline |
Definition at line 101 of file paratr.hxx.
Referenced by SwTextFormatter::CalcOnceMore(), SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), WW8AttributeOutput::FormatDrop(), SwTextFormatInfo::GetDropFormat(), SwTextNode::GetDropSize(), SwHTMLParser::InsertAttrs(), SwTextFormatter::NewDropPortion(), operator==(), OutCSS1_SwFormatDropAttrs(), and SwWW8ImplReader::ReadText().
|
inline |
Definition at line 102 of file paratr.hxx.
|
overridevirtual |
|
inline |
Definition at line 107 of file paratr.hxx.
Referenced by SwDropCapsPage::FillSet(), SwTextFormatInfo::GetDropFormat(), SwTextNode::GetDropSize(), SwWW8AttrIter::IsDropCap(), SwTextFormatter::NewDropPortion(), operator==(), SwWW8ImplReader::ReadText(), and SwWW8AttrIter::SearchNext().
|
inline |
Definition at line 108 of file paratr.hxx.
|
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, cppu::UnoType< class >::get(), 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 SwModify::Add(), SwClient::EndListeningAll(), and SwFormat::IsDefault().
Referenced by SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), and SwWW8ImplReader::ReadText().
|
inlineoverrideprivatevirtual |
Reimplemented from SwClient.
Definition at line 81 of file paratr.hxx.
References sw::FormatDropDefiner::FormatDropNotify().
|
private |
First word with initials.
Definition at line 68 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Character count.
Definition at line 67 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Distance to beginning of text.
Definition at line 65 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Line count.
Definition at line 66 of file paratr.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
TextNode or FormatColl that contains the CapDrops.
Definition at line 64 of file paratr.hxx.
Referenced by operator==().