summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/conttree.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/inc/conttree.hxx')
-rw-r--r--sw/source/ui/inc/conttree.hxx244
1 files changed, 122 insertions, 122 deletions
diff --git a/sw/source/ui/inc/conttree.hxx b/sw/source/ui/inc/conttree.hxx
index 877e74799b33..ddfa451d2c5e 100644
--- a/sw/source/ui/inc/conttree.hxx
+++ b/sw/source/ui/inc/conttree.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,62 +45,62 @@ class SwGlblDocContent;
class SfxObjectShell;
-#define EDIT_MODE_EDIT 0
-#define EDIT_MODE_UPD_IDX 1
-#define EDIT_MODE_RMV_IDX 2
-#define EDIT_UNPROTECT_TABLE 3
-#define EDIT_MODE_DELETE 4
-#define EDIT_MODE_RENAME 5
+#define EDIT_MODE_EDIT 0
+#define EDIT_MODE_UPD_IDX 1
+#define EDIT_MODE_RMV_IDX 2
+#define EDIT_UNPROTECT_TABLE 3
+#define EDIT_MODE_DELETE 4
+#define EDIT_MODE_RENAME 5
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
class SwContentTree : public SvTreeListBox
{
- ImageList aEntryImages;
- String sSpace;
- AutoTimer aUpdTimer;
+ ImageList aEntryImages;
+ String sSpace;
+ AutoTimer aUpdTimer;
- SwContentType* aActiveContentArr[CONTENT_TYPE_MAX];
- SwContentType* aHiddenContentArr[CONTENT_TYPE_MAX];
- String aContextStrings[CONTEXT_COUNT + 1];
+ SwContentType* aActiveContentArr[CONTENT_TYPE_MAX];
+ SwContentType* aHiddenContentArr[CONTENT_TYPE_MAX];
+ String aContextStrings[CONTEXT_COUNT + 1];
String sRemoveIdx;
String sUpdateIdx;
String sUnprotTbl;
- String sRename;
- String sReadonlyIdx;
- String sInvisible;
- String sPostItShow;
- String sPostItHide;
- String sPostItDelete;
+ String sRename;
+ String sReadonlyIdx;
+ String sInvisible;
+ String sPostItShow;
+ String sPostItHide;
+ String sPostItDelete;
- SwWrtShell* pHiddenShell; // gedropptes Doc
- SwWrtShell* pActiveShell; // die aktive oder eine konst. offene View
- SwNavigationConfig* pConfig;
+ SwWrtShell* pHiddenShell; // gedropptes Doc
+ SwWrtShell* pActiveShell; // die aktive oder eine konst. offene View
+ SwNavigationConfig* pConfig;
std::map< void*, sal_Bool > mOutLineNodeMap;
sal_Int32 nActiveBlock;
- USHORT nHiddenBlock;
- USHORT nRootType;
- USHORT nLastSelType;
- BYTE nOutlineLevel;
-
- BOOL bIsActive :1;
- BOOL bIsConstant :1;
- BOOL bIsHidden :1;
- BOOL bDocChgdInDragging :1;
- BOOL bIsInternalDrag :1;
- BOOL bIsRoot :1;
- BOOL bIsIdleClear :1;
- BOOL bIsLastReadOnly :1;
- BOOL bIsOutlineMoveable :1;
- BOOL bViewHasChanged :1;
- BOOL bIsImageListInitialized : 1;
-
- static BOOL bIsInDrag;
-
- void FindActiveTypeAndRemoveUserData();
+ USHORT nHiddenBlock;
+ USHORT nRootType;
+ USHORT nLastSelType;
+ BYTE nOutlineLevel;
+
+ BOOL bIsActive :1;
+ BOOL bIsConstant :1;
+ BOOL bIsHidden :1;
+ BOOL bDocChgdInDragging :1;
+ BOOL bIsInternalDrag :1;
+ BOOL bIsRoot :1;
+ BOOL bIsIdleClear :1;
+ BOOL bIsLastReadOnly :1;
+ BOOL bIsOutlineMoveable :1;
+ BOOL bViewHasChanged :1;
+ BOOL bIsImageListInitialized : 1;
+
+ static BOOL bIsInDrag;
+
+ void FindActiveTypeAndRemoveUserData();
using SvLBox::ExecuteDrop;
using SvTreeListBox::EditEntry;
@@ -110,22 +110,22 @@ class SwContentTree : public SvTreeListBox
protected:
// virtual void Command( const CommandEvent& rCEvt );
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&,SvLBoxButtonKind);
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&,SvLBoxButtonKind);
virtual void DataChanged( const DataChangedEvent& rDCEvt );
SwNavigationPI* GetParentWindow(){return
(SwNavigationPI*)Window::GetParent();}
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
- virtual void DragFinished( sal_Int8 );
+ virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
+ virtual void DragFinished( sal_Int8 );
virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
-
+
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
- sal_Bool FillTransferData( TransferDataContainer& rTransfer,
+ sal_Bool FillTransferData( TransferDataContainer& rTransfer,
sal_Int8& rDragMode );
- BOOL HasContentChanged();
+ BOOL HasContentChanged();
virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData,
SvLBoxEntry* );
@@ -143,10 +143,10 @@ protected:
);
virtual void MouseButtonDown( const MouseEvent& rMEvt );
- void EditEntry( SvLBoxEntry* pEntry, BYTE nMode );
-
- void GotoContent(SwContent* pCnt);
- static void SetInDrag(BOOL bSet) {bIsInDrag = bSet;}
+ void EditEntry( SvLBoxEntry* pEntry, BYTE nMode );
+
+ void GotoContent(SwContent* pCnt);
+ static void SetInDrag(BOOL bSet) {bIsInDrag = bSet;}
virtual PopupMenu* CreateContextMenu( void );
virtual void ExcecuteContextMenuAction( USHORT nSelectedPopupEntry );
@@ -155,57 +155,57 @@ public:
SwContentTree(Window* pParent, const ResId& rResId);
~SwContentTree();
- BOOL ToggleToRoot();
- BOOL IsRoot() const {return bIsRoot;}
- USHORT GetRootType() const {return nRootType;}
- void SetRootType(USHORT nType);
- void Display( BOOL bActiveView );
- void Clear();
- void SetHiddenShell(SwWrtShell* pSh);
- void ShowHiddenShell();
- void ShowActualView();
- void SetActiveShell(SwWrtShell* pSh);
- void SetConstantShell(SwWrtShell* pSh);
-
- SwWrtShell* GetWrtShell()
+ BOOL ToggleToRoot();
+ BOOL IsRoot() const {return bIsRoot;}
+ USHORT GetRootType() const {return nRootType;}
+ void SetRootType(USHORT nType);
+ void Display( BOOL bActiveView );
+ void Clear();
+ void SetHiddenShell(SwWrtShell* pSh);
+ void ShowHiddenShell();
+ void ShowActualView();
+ void SetActiveShell(SwWrtShell* pSh);
+ void SetConstantShell(SwWrtShell* pSh);
+
+ SwWrtShell* GetWrtShell()
{return bIsActive||bIsConstant ?
pActiveShell :
pHiddenShell;}
- static BOOL IsInDrag() {return bIsInDrag;}
- BOOL IsInternalDrag() const {return bIsInternalDrag != 0;}
+ static BOOL IsInDrag() {return bIsInDrag;}
+ BOOL IsInternalDrag() const {return bIsInternalDrag != 0;}
sal_Int32 GetActiveBlock() const {return nActiveBlock;}
- BYTE GetOutlineLevel()const {return nOutlineLevel;}
- void SetOutlineLevel(BYTE nSet);
-
- BOOL Expand( SvLBoxEntry* pParent );
-
- BOOL Collapse( SvLBoxEntry* pParent );
-
- void ExecCommand(USHORT nCmd, BOOL bModifier);
-
- void ShowTree();
- void HideTree();
-
- BOOL IsConstantView() {return bIsConstant;}
- BOOL IsActiveView() {return bIsActive;}
- BOOL IsHiddenView() {return bIsHidden;}
-
- const SwWrtShell* GetActiveWrtShell() {return pActiveShell;}
- SwWrtShell* GetHiddenWrtShell() {return pHiddenShell;}
+ BYTE GetOutlineLevel()const {return nOutlineLevel;}
+ void SetOutlineLevel(BYTE nSet);
+
+ BOOL Expand( SvLBoxEntry* pParent );
+
+ BOOL Collapse( SvLBoxEntry* pParent );
+
+ void ExecCommand(USHORT nCmd, BOOL bModifier);
+
+ void ShowTree();
+ void HideTree();
+
+ BOOL IsConstantView() {return bIsConstant;}
+ BOOL IsActiveView() {return bIsActive;}
+ BOOL IsHiddenView() {return bIsHidden;}
+
+ const SwWrtShell* GetActiveWrtShell() {return pActiveShell;}
+ SwWrtShell* GetHiddenWrtShell() {return pHiddenShell;}
DECL_LINK( ContentDoubleClickHdl, SwContentTree * );
// DECL_LINK( PopupHdl, Menu* );
DECL_LINK( TimerUpdate, Timer * );
virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
- virtual void RequestingChilds( SvLBoxEntry* pParent );
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
virtual void GetFocus();
virtual void KeyInput(const KeyEvent& rKEvt);
-
- virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
+
+ virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
};
@@ -232,10 +232,10 @@ namespace sfx2 { class FileDialogHelper; }
class SwGlobalTree : public SvTreeListBox
{
private:
- AutoTimer aUpdateTimer;
- String aContextStrings[GLOBAL_CONTEXT_COUNT];
+ AutoTimer aUpdateTimer;
+ String aContextStrings[GLOBAL_CONTEXT_COUNT];
- ImageList aEntryImages;
+ ImageList aEntryImages;
SwWrtShell* pActiveShell; //
SvLBoxEntry* pEmphasisEntry; // Drag'n Drop-Emphasis
@@ -246,9 +246,9 @@ private:
SwGlblDocContent* pDocContent;
sfx2::DocumentInserter* pDocInserter;
- BOOL bIsInternalDrag :1;
- BOOL bLastEntryEmphasis :1; // Drag'n Drop
- BOOL bIsImageListInitialized : 1;
+ BOOL bIsInternalDrag :1;
+ BOOL bLastEntryEmphasis :1; // Drag'n Drop
+ BOOL bIsImageListInitialized : 1;
static const SfxObjectShell* pShowShell;
@@ -264,12 +264,12 @@ private:
protected:
virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
-
+
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
-
+
virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
virtual BOOL NotifyMoving( SvLBoxEntry* pTarget,
@@ -283,8 +283,8 @@ protected:
ULONG& rNewChildPos
);
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
- virtual void DragFinished( sal_Int8 );
+ virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
+ virtual void DragFinished( sal_Int8 );
virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData,
SvLBoxEntry* );
virtual BOOL NotifyAcceptDrop( SvLBoxEntry* );
@@ -292,26 +292,26 @@ protected:
virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void KeyInput(const KeyEvent& rKEvt);
virtual void GetFocus();
- virtual void SelectHdl();
- virtual void DeselectHdl();
+ virtual void SelectHdl();
+ virtual void DeselectHdl();
virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&,SvLBoxButtonKind);
- void Clear();
+ void Clear();
- DECL_LINK( PopupHdl, Menu* );
- DECL_LINK( Timeout, Timer* );
- DECL_LINK( DoubleClickHdl, SwGlobalTree * );
+ DECL_LINK( PopupHdl, Menu* );
+ DECL_LINK( Timeout, Timer* );
+ DECL_LINK( DoubleClickHdl, SwGlobalTree * );
- BOOL IsInternalDrag() const {return bIsInternalDrag != 0;}
+ BOOL IsInternalDrag() const {return bIsInternalDrag != 0;}
SwNavigationPI* GetParentWindow()
{ return (SwNavigationPI*)Window::GetParent(); }
- void OpenDoc(const SwGlblDocContent*);
- void GotoContent(const SwGlblDocContent*);
- USHORT GetEnableFlags() const;
+ void OpenDoc(const SwGlblDocContent*);
+ void GotoContent(const SwGlblDocContent*);
+ USHORT GetEnableFlags() const;
- static const SfxObjectShell* GetShowShell() {return pShowShell;}
- static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;}
+ static const SfxObjectShell* GetShowShell() {return pShowShell;}
+ static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;}
DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, SwGlobalTree*);
virtual PopupMenu* CreateContextMenu( void );
@@ -321,19 +321,19 @@ public:
SwGlobalTree(Window* pParent, const ResId& rResId);
virtual ~SwGlobalTree();
- void TbxMenuHdl(USHORT nTbxId, ToolBox* pBox);
- void InsertRegion( const SwGlblDocContent* pCont,
+ void TbxMenuHdl(USHORT nTbxId, ToolBox* pBox);
+ void InsertRegion( const SwGlblDocContent* pCont,
const String* pFileName = 0 );
- void EditContent(const SwGlblDocContent* pCont );
-
- void ShowTree();
- void HideTree();
-
- void ExecCommand(USHORT nCmd);
+ void EditContent(const SwGlblDocContent* pCont );
+
+ void ShowTree();
+ void HideTree();
- void Display(BOOL bOnlyUpdateUserData = FALSE);
+ void ExecCommand(USHORT nCmd);
- BOOL Update(BOOL bHard);
+ void Display(BOOL bOnlyUpdateUserData = FALSE);
+
+ BOOL Update(BOOL bHard);
};
#endif