summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorgt <gt@openoffice.org>2002-07-26 11:58:27 +0000
committergt <gt@openoffice.org>2002-07-26 11:58:27 +0000
commit530b7af35655eb6660c5fc4f38e45f6db4183095 (patch)
treec7a780d23daf75fe3c28d5710bed9cb4522197c8 /sfx2/inc
parent2445632bc1b962b5f94ccabb268de0ddfabb77c4 (diff)
#101060# class SfxOrganizeListBox_Impl support of HC bitmaps
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/docvor.hxx33
1 files changed, 20 insertions, 13 deletions
diff --git a/sfx2/inc/docvor.hxx b/sfx2/inc/docvor.hxx
index 028b6a8838d0..7c765f28e008 100644
--- a/sfx2/inc/docvor.hxx
+++ b/sfx2/inc/docvor.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docvor.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: pb $ $Date: 2002-06-07 07:07:44 $
+ * last change: $Author: gt $ $Date: 2002-07-26 12:58:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -85,15 +85,23 @@ class SfxOrganizeDlg_Impl;
class SfxOrganizeListBox_Impl: public SvTreeListBox
{
+ enum BMPTYPE { BMPTYPE_FOLDER, BMPTYPE_DOC };
+
friend class SfxOrganizeDlg_Impl;
- SfxOrganizeMgr* pMgr;
- SfxOrganizeDlg_Impl* pDlg;
Image aOpenedFolderBmp;
Image aClosedFolderBmp;
Image aOpenedDocBmp;
Image aClosedDocBmp;
+ Image aOpenedFolderBmpHC;
+ Image aClosedFolderBmpHC;
+ Image aOpenedDocBmpHC;
+ Image aClosedDocBmpHC;
+
+ SfxOrganizeMgr* pMgr;
+ SfxOrganizeDlg_Impl* pDlg;
+
static BOOL bDropMoveOk;
DECL_LINK( OnAsyncExecuteDrop, ExecuteDropEvent* );
@@ -127,15 +135,9 @@ public:
void SetMgr(SfxOrganizeMgr *pM) { pMgr = pM; }
void Reset();
- void SetBitmaps(const Image &rOFolderBitmap,
- const Image &rCFolderBitmap,
- const Image &rODocBitmap,
- const Image &rCDocBitmap) {
- aOpenedFolderBmp = rOFolderBitmap;
- aClosedFolderBmp = rCFolderBitmap;
- aOpenedDocBmp = rODocBitmap;
- aClosedDocBmp = rCDocBitmap;
- }
+ inline void SetBitmaps(
+ const Image &rOFolderBmp, const Image &rCFolderBmp, const Image &rODocBmp, const Image &rCDocBmp,
+ const Image &rOFolderBmpHC, const Image &rCFolderBmpHC, const Image &rODocBmpHC, const Image &rCDocBmpHC );
const Image &GetClosedBmp(USHORT nLevel) const;
const Image &GetOpenedBmp(USHORT nLevel) const;
@@ -160,6 +162,10 @@ private:
BOOL IsUniqName_Impl( const String &rText,
SvLBoxEntry* pParent, SvLBoxEntry* pEntry = 0 ) const;
USHORT GetLevelCount_Impl( SvLBoxEntry* pParent ) const;
+
+ SvLBoxEntry* InsertEntry( const XubString& rText, BMPTYPE eBmpType,
+ SvLBoxEntry* pParent = NULL, BOOL bChildsOnDemand = FALSE,
+ ULONG nPos = LIST_APPEND, void* pUserData = NULL );
};
#endif // _SFX_HXX
@@ -172,6 +178,7 @@ friend class SfxOrganizeListBox_Impl;
class SfxOrganizeDlg_Impl *pImp;
+// virtual void DataChanged( const DataChangedEvent& rDCEvt );
public:
SfxTemplateOrganizeDlg(Window * pParent, SfxDocumentTemplates* = 0);
~SfxTemplateOrganizeDlg();