Kaydet (Commit) c8620de6 authored tarafından Maxime de Roucy's avatar Maxime de Roucy Kaydeden (comit) Cédric Bosdonnat

Add comments in formatclipboard.hxx

üst cc804794
...@@ -46,24 +46,54 @@ public: ...@@ -46,24 +46,54 @@ public:
SwFormatClipboard(); SwFormatClipboard();
~SwFormatClipboard(); ~SwFormatClipboard();
/**
* Test if the object contains text or paragraph attribute
*/
bool HasContent() const; bool HasContent() const;
bool HasContentForThisType( int nSelectionType ) const; bool HasContentForThisType( int nSelectionType ) const;
bool CanCopyThisType( 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 ); 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 void Paste( SwWrtShell& rWrtShell, SfxStyleSheetBasePool* pPool
, bool bNoCharacterFormats=false, bool bNoParagraphFormats=false ); , bool bNoCharacterFormats=false, bool bNoParagraphFormats=false );
/**
* Clear the currently stored text and paragraph attributes.
*/
void Erase(); void Erase();
private: private:
int m_nSelectionType; int m_nSelectionType;
/** automatic/named character and paragraph attribute set */
SfxItemSet* m_pItemSet; SfxItemSet* m_pItemSet;
/** table attribute set */
SfxItemSet* m_pTableItemSet; SfxItemSet* m_pTableItemSet;
/** name of the character format (if it exist) */
String m_aCharStyle; String m_aCharStyle;
/** name of the paragraph format (if it exist) */
String m_aParaStyle; String m_aParaStyle;
//no frame style because it contains position information //no frame style because it contains position information
/** specify if the Paste function have to clear the current object */
bool m_bPersistentCopy; bool m_bPersistentCopy;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment