Adobe.com
Contents Suites Classes Class Index Member Index

AIAutoCoordinateSystem.h

Go to the documentation of this file.
00001 /*
00002 * Name: AIAutoCoordinateSystem.h
00003 * Author: Started by Pushp
00004 * Date: January, 2009
00005 * Purpose: Adobe Illustrator AutoCoordinateSystem Auto object
00006 *
00007 * ADOBE SYSTEMS INCORPORATED
00008 * Copyright 2008 Adobe Systems Incorporated.
00009 * All rights reserved.
00010 *
00011 * NOTICE:  Adobe permits you to use, modify, and distribute this file
00012 * in accordance with the terms of the Adobe license agreement
00013 * accompanying it. If you have received this file from a source other
00014 * than Adobe, then your use, modification, or distribution of it
00015 * requires the prior written permission of Adobe.
00016 *
00017 */
00018 #pragma once
00019 
00020 #ifndef _AIAutoCoordinateSystem_H_
00021 #define _AIAutoCoordinateSystem_H_
00022 
00023 #include "AIHardSoft.h"
00024 
00025 #ifdef _AI_AUTO_COORDINATE_SYSTEM_INCLUDE_H_
00026 #include _AI_AUTO_COORDINATE_SYSTEM_INCLUDE_H_
00027 #else
00028 #ifndef _AI_AUTO_COORDINATE_SYSTEM_USE_C_LINKAGE_
00029 #define _AI_AUTO_COORDINATE_SYSTEM_USE_C_LINKAGE_ 1
00030 #endif
00031 #if _AI_AUTO_COORDINATE_SYSTEM_USE_C_LINKAGE_
00032 extern "C"
00033 {
00034 #endif
00035 
00039         extern AIHardSoftSuite* sAIHardSoft;
00040 
00041 #if _AI_AUTO_COORDINATE_SYSTEM_USE_C_LINKAGE_
00042 }
00043 #endif // _AI_AUTO_COORDINATE_SYSTEM_USE_C_LINKAGE_
00044 
00045 #endif
00046 
00047 namespace ai
00048 {
00055         class AutoCoordinateSystem
00056         {
00057         public:
00067                 AutoCoordinateSystem(AICoordinateSystem coordinateSystem= kAICurrentCoordinateSystem)
00068                 {
00069                         sAIHardSoft->GetCoordinateSystem(fCoordinateSystem);
00070                         sAIHardSoft->SetCoordinateSystem(coordinateSystem);
00071                 }
00076                 ~AutoCoordinateSystem()
00077                 {
00078                         sAIHardSoft->SetCoordinateSystem(fCoordinateSystem);
00079                 }
00080         private:
00081                 ai::int32 fCoordinateSystem;
00082         };
00083 }
00084 
00085 #endif


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks