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 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::unique_ptr< 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 |
Static Public Member Functions | |
static SfxPoolItem * | CreateDefault () |
Protected Member Functions | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
![]() | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
SwFormatDrop & | operator= (const SwFormatDrop &)=delete |
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... | |
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.
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 121 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 114 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 115 of file paratr.hxx.
References SwClient::GetRegisteredIn().
|
inline |
Definition at line 105 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 106 of file paratr.hxx.
|
inline |
Definition at line 111 of file paratr.hxx.
Referenced by SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), WW8AttributeOutput::FormatDrop(), SwTextFormatter::NewDropPortion(), operator==(), OutCSS1_SwFormatDropAttrs(), and SwWW8ImplReader::ReadText().
|
inline |
Definition at line 112 of file paratr.hxx.
|
overridevirtual |
|
inline |
Definition at line 102 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 103 of file paratr.hxx.
|
overridevirtual |
|
inline |
Definition at line 108 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 109 of file paratr.hxx.
|
privatedelete |
|
overridevirtual |
"pure virtual methods" of SfxPoolItem
Implements SfxPoolItem.
Definition at line 78 of file paratr.cxx.
References assert(), 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, convertMm100ToTwip(), 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, and MID_DROPCAP_WHOLE_WORD.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 94 of file paratr.cxx.
References ChrFmt, CONVERT_TWIPS, convertTwipToMm100(), GetCharFormat(), 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(), assert(), SwClient::EndListeningAll(), and SwFormat::IsDefault().
Referenced by SwCSS1Parser::FillDropCap(), SwDropCapsPage::FillSet(), and SwWW8ImplReader::ReadText().
|
inlineoverrideprotectedvirtual |
Reimplemented from SwClient.
Definition at line 82 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==().