diff options
author | Maxime de Roucy <mderoucy@linagora.com> | 2012-03-14 15:39:31 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-03-15 16:57:45 +0100 |
commit | c8620de6dc24f79c1d290f1b94665edfbcf5c000 (patch) | |
tree | 2629671f3a3b44ba8d4b71f9e4fa9fa8c4ccdc98 /sw/source | |
parent | cc8047941dc93d686568541391af56209df53f0a (diff) |
Add comments in formatclipboard.hxx
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/inc/formatclipboard.hxx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sw/source/ui/inc/formatclipboard.hxx b/sw/source/ui/inc/formatclipboard.hxx index 07891a0b5874..4cca4e7f2288 100644 --- a/sw/source/ui/inc/formatclipboard.hxx +++ b/sw/source/ui/inc/formatclipboard.hxx @@ -46,24 +46,54 @@ public: SwFormatClipboard(); ~SwFormatClipboard(); + /** + * Test if the object contains text or paragraph attribute + */ bool HasContent() const; bool HasContentForThisType( int nSelectionType ) const; bool CanCopyThisType( int nSelectionType ) const; + /** + * Store/Backup the text and paragraph attribute of the current selection. + * + * @param bPersistentCopy + * input parameter - specify if the Paste function will erase the current object. + */ void Copy( SwWrtShell& rWrtShell, SfxItemPool& rPool, bool bPersistentCopy=false ); + + /** + * Paste the stored text and paragraph attributes on the current selection and current paragraph. + * + * @param bNoCharacterFormats + * Do not paste the character formats. + * + * @param bNoParagraphFormats + * Do not paste the paragraph formats. + */ void Paste( SwWrtShell& rWrtShell, SfxStyleSheetBasePool* pPool , bool bNoCharacterFormats=false, bool bNoParagraphFormats=false ); + + /** + * Clear the currently stored text and paragraph attributes. + */ void Erase(); private: int m_nSelectionType; + + /** automatic/named character and paragraph attribute set */ SfxItemSet* m_pItemSet; + + /** table attribute set */ SfxItemSet* m_pTableItemSet; + /** name of the character format (if it exist) */ String m_aCharStyle; + /** name of the paragraph format (if it exist) */ String m_aParaStyle; //no frame style because it contains position information + /** specify if the Paste function have to clear the current object */ bool m_bPersistentCopy; }; |