summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc/sdtreelb.hxx
diff options
context:
space:
mode:
authorSteve Yin <steve_y@apache.org>2013-11-28 12:09:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-28 13:32:30 +0000
commitcc5518ca61b209408a9d5262bbdcc39efccdd72d (patch)
tree23f4be456f58a52ad53a3aaab82894b91a4f797d /sd/source/ui/inc/sdtreelb.hxx
parent0a05120e1a08c29b3495878d2a3b5fb30d344c6c (diff)
Integrate branch of IAccessible2
Change-Id: Ibf3be46e8619c2dce9636e8a90a6703f3e28ba33
Diffstat (limited to 'sd/source/ui/inc/sdtreelb.hxx')
-rw-r--r--sd/source/ui/inc/sdtreelb.hxx29
1 files changed, 25 insertions, 4 deletions
diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx
index 252a40384144..4200282d9aca 100644
--- a/sd/source/ui/inc/sdtreelb.hxx
+++ b/sd/source/ui/inc/sdtreelb.hxx
@@ -29,6 +29,8 @@
#include <svl/urlbmk.hxx>
#include <tools/ref.hxx>
#include "sdxfer.hxx"
+#include <vector>
+using namespace std;
#include <boost/scoped_ptr.hpp>
#include <boost/function.hpp>
@@ -60,6 +62,8 @@ private:
static sal_Bool SAL_DLLPRIVATE bIsInDrag; ///< static, in the case the navigator is deleted in ExecuteDrag
+ // set contenttree in SdNavigatorWin
+ sal_Bool bisInSdNavigatorWin;
public:
// nested class to implement the TransferableHelper
@@ -132,6 +136,9 @@ protected:
::sd::DrawDocShell* mpDropDocSh;
SdNavigatorWin* mpDropNavWin;
SfxViewFrame* mpFrame;
+ vector<OUString> maTreeItem;
+ sal_Bool mbSaveTreeItemState;
+ OUString maSelectionEntryText;
// DragSourceHelper
virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
@@ -176,6 +183,7 @@ protected:
using Window::GetDropTarget;
virtual SvTreeListEntry* GetDropTarget (const Point& rLocation);
+ virtual void InitEntry(SvTreeListEntry*, const OUString&, const Image&, const Image&,SvLBoxButtonKind);
public:
@@ -183,6 +191,10 @@ public:
SdPageObjsTLB( Window* pParent, WinBits nStyle );
~SdPageObjsTLB();
+ // helper function for GetEntryAltText and GetEntryLongDescription
+ OUString getAltLongDescText( SvTreeListEntry* pEntry , sal_Bool isAltText) const;
+ OUString GetEntryAltText( SvTreeListEntry* pEntry ) const;
+ OUString GetEntryLongDescription( SvTreeListEntry* pEntry ) const;
virtual void SelectHdl();
virtual void KeyInput( const KeyEvent& rKEvt );
@@ -193,11 +205,20 @@ public:
void Fill( const SdDrawDocument*, SfxMedium* pSfxMedium, const OUString& rDocName );
void SetShowAllShapes (const bool bShowAllShapes, const bool bFill);
bool GetShowAllShapes (void) const;
- sal_Bool IsEqualToDoc( const SdDrawDocument* pInDoc = NULL );
- sal_Bool HasSelectedChildren( const OUString& rName );
- sal_Bool SelectEntry( const OUString& rName );
+ sal_Bool IsEqualToDoc( const SdDrawDocument* pInDoc = NULL );
+ sal_Bool HasSelectedChildren( const OUString& rName );
+ sal_Bool SelectEntry( const OUString& rName );
OUString GetSelectEntry();
+ //Mark Current Entry
+ void MarkCurEntry( const OUString& rName );
+ void SetSdNavigatorWinFlag(sal_Bool isInSdNavigatorWin){bisInSdNavigatorWin =isInSdNavigatorWin;};
+ void FreshCurEntry();
+
+ void Clear();
+ void SetSaveTreeItemStateFlag(sal_Bool bState){mbSaveTreeItemState = bState;}
+ void SaveExpandedTreeItemState(SvTreeListEntry* pEntry, vector<OUString>& vectTreeItem);
+
/** return selected entries
nDepth == 0 -> pages
nDepth == 1 -> objects */
@@ -205,7 +226,7 @@ public:
std::vector<OUString> GetSelectEntryList (const sal_uInt16 nDepth) const;
SdDrawDocument* GetBookmarkDoc(SfxMedium* pMedium = NULL);
- ::sd::DrawDocShell* GetDropDocSh() { return(mpDropDocSh); }
+ ::sd::DrawDocShell* GetDropDocSh() { return(mpDropDocSh); }
sal_Bool IsLinkableSelected() const { return mbLinkableSelected; }