diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-07-26 22:38:28 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-07-27 00:45:20 +0200 |
commit | 197010643e7e1b8c973013efa9034ffc9bdb56c0 (patch) | |
tree | d52fcf30d53b846f61fe5a7b7264ad8518df3d03 /sfx2 | |
parent | 1ed9d506f8b0cc246c952673a2fff11e8314ba46 (diff) |
remove some more SfxObjectShell methods that only call each other
Change-Id: I71807adff43ce2cfb748764edcc5880cdbba746f
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objcont.cxx | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index dbac74bce8da..49f9745f4f96 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -303,119 +303,6 @@ SfxStyleSheetBasePool* SfxObjectShell::GetStyleSheetPool() return 0; } -void SfxObjectShell::SetOrganizerSearchMask( - SfxStyleSheetBasePool* pStylePool) const -{ - pStylePool->SetSearchMask( - SFX_STYLE_FAMILY_ALL, - SFXSTYLEBIT_USERDEF | SFXSTYLEBIT_USED); -} - -//-------------------------------------------------------------------- - -sal_Bool SfxObjectShell::CanHaveChildren(sal_uInt16 nIdx1, sal_uInt16 nIdx2) -{ - switch(nIdx1) - { - case INDEX_IGNORE: - return true; - case CONTENT_STYLE: - return INDEX_IGNORE == nIdx2 || !GetStyleSheetPool() ? false : true; - case CONTENT_MACRO: - return false; - } - return false; -} - -//-------------------------------------------------------------------- - -void SfxObjectShell::GetContent(String &rText, - Bitmap &rClosedBitmap, - Bitmap &rOpenedBitmap, - sal_Bool &bCanDel, - sal_uInt16 i, - sal_uInt16 nIdx -) -{ - bCanDel=true; - - switch(nIdx) - { - case INDEX_IGNORE: - { - sal_uInt16 nTextResId = 0; - sal_uInt16 nClosedBitmapResId = 0; // evtl. sp"ater mal unterschiedliche - sal_uInt16 nOpenedBitmapResId = 0; // " " " " - switch(i) - { - case CONTENT_STYLE: - nTextResId = STR_STYLES; - nClosedBitmapResId= BMP_STYLES_CLOSED; - nOpenedBitmapResId= BMP_STYLES_OPENED; - break; - case CONTENT_MACRO: - nTextResId = STR_MACROS; - nClosedBitmapResId= BMP_STYLES_CLOSED; - nOpenedBitmapResId= BMP_STYLES_OPENED; - break; - } - - if ( nTextResId ) - { - rText = SfxResId(nTextResId).toString(); - rClosedBitmap = Bitmap(SfxResId(nClosedBitmapResId)); - rOpenedBitmap = Bitmap(SfxResId(nOpenedBitmapResId)); - } - break; - } - - case CONTENT_STYLE: - { - SfxStyleSheetBasePool *pStylePool = GetStyleSheetPool(); - SetOrganizerSearchMask(pStylePool); - SfxStyleSheetBase *pStyle = (*pStylePool)[i]; - rText = pStyle->GetName(); - bCanDel=((pStyle->GetMask() & SFXSTYLEBIT_USERDEF) - == SFXSTYLEBIT_USERDEF); - rClosedBitmap = rOpenedBitmap = - GetStyleFamilyBitmap(pStyle->GetFamily()); - } - break; - case CONTENT_MACRO: - break; - } -} - -//-------------------------------------------------------------------- - -Bitmap SfxObjectShell::GetStyleFamilyBitmap(SfxStyleFamily eFamily) -{ - sal_uInt16 nResId = 0; - switch(eFamily) - { - case SFX_STYLE_FAMILY_CHAR: - nResId = BMP_STYLES_FAMILY1; - break; - case SFX_STYLE_FAMILY_PARA: - nResId = BMP_STYLES_FAMILY2; - break; - case SFX_STYLE_FAMILY_FRAME: - nResId = BMP_STYLES_FAMILY3; - break; - case SFX_STYLE_FAMILY_PAGE : - nResId = BMP_STYLES_FAMILY4; - break; - case SFX_STYLE_FAMILY_PSEUDO: - case SFX_STYLE_FAMILY_ALL: - break; - } - - if ( nResId ) - return Bitmap(SfxResId(nResId)); - else - return Bitmap(); -} - void SfxObjectShell::LoadStyles ( SfxObjectShell &rSource /* the document template from which |