colormgr.cpp File Reference

(r1785/r1777)

#include "camtypes.h"
#include "ccolbar.h"
#include "colcomp.h"
#include "colcontx.h"
#include "coldlog.h"
#include "colormgr.h"
#include "lineattr.h"
#include "newcol.h"
#include "nodeblnd.h"
#include "objchge.h"
#include "opimgset.h"
#include "fillramp.h"
#include "colmsg.h"
#include "ophist.h"

Go to the source code of this file.

Functions

 CC_IMPLEMENT_DYNAMIC (ColourChangingMsg, Msg) CC_IMPLEMENT_DYNAMIC(ColourManager
MessageHandler CC_IMPLEMENT_DYNCREATE (OpHideColours, UndoableOperation) CC_IMPLEMENT_DYNCREATE(ActionHideColours
MessageHandler Action CC_IMPLEMENT_DYNCREATE (OpColourChange, UndoableOperation) CC_IMPLEMENT_DYNCREATE(ActionColourChange
DocumentSetCurrentDoc (void)
 The ColourBar works exclusively on the SELECTED Doc. Thus, on entry to any of its routines which call routines outside this file (ccolbar.cpp), it must ensure that CurrentDoc is equal to SelectedDoc. This local macro inline does this, and returns the old setting of CurrentDoc so that the caller can restore the previous CurrentDoc on exit.
void RestoreCurrentDoc (Document *OldCurrentDoc)
 The ColourBar works exclusively on the SELECTED Doc. After calling SetCurrentDoc on entry to a routine, you should call RestoreCurrentDoc on exit to restore the old current document./.


Function Documentation

CC_IMPLEMENT_DYNAMIC ColourChangingMsg  ,
Msg 
 

MessageHandler Action CC_IMPLEMENT_DYNCREATE OpColourChange  ,
UndoableOperation 
 

MessageHandler CC_IMPLEMENT_DYNCREATE OpHideColours  ,
UndoableOperation 
 

void RestoreCurrentDoc Document OldCurrentDoc  )  [inline]
 

The ColourBar works exclusively on the SELECTED Doc. After calling SetCurrentDoc on entry to a routine, you should call RestoreCurrentDoc on exit to restore the old current document./.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/7/94 (Copied from ccolbar.cpp, 25/11/94)
Parameters:
The old current document to restore [INPUTS]
- [OUTPUTS]
Returns:
-
Scope: private (to kernel.cpp)
See also:
SetCurrentDoc

Definition at line 690 of file colormgr.cpp.

00691 {
00692     if (OldCurrentDoc != NULL)
00693         OldCurrentDoc->SetCurrent();
00694 }

Document* SetCurrentDoc void   )  [inline]
 

The ColourBar works exclusively on the SELECTED Doc. Thus, on entry to any of its routines which call routines outside this file (ccolbar.cpp), it must ensure that CurrentDoc is equal to SelectedDoc. This local macro inline does this, and returns the old setting of CurrentDoc so that the caller can restore the previous CurrentDoc on exit.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/7/94 (Copied from ccolbar.cpp, 25/11/94)
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
The old Current Document
Scope: private (to kernel.cpp)
See also:
RestoreCurrentDoc

Definition at line 658 of file colormgr.cpp.

00659 {
00660     Document *OldCurrentDoc = Document::GetCurrent();
00661     Document *NewCurrentDoc = Document::GetSelected();
00662 
00663     if (NewCurrentDoc != NULL && NewCurrentDoc != OldCurrentDoc)
00664         NewCurrentDoc->SetCurrent();
00665 
00666     return(OldCurrentDoc);
00667 }


Generated on Sat Nov 10 03:49:06 2007 for Camelot by  doxygen 1.4.4