Making the host call a "Format plug-in module" back with 'formatSelectorReadLayerStart'
Hi all,
I have some problems reading layers in the Photoshop SDK, and I would be glad if someone could give me hand with them. The thing is:
To date, I have managed to write a Photoshop "Format" module plug-in that is able to open files on my own graphic format. So far, so good. The problem is, this graphic format includes additional layers that I would like to open in Photoshop as well. The CS4 SDK documentation defines for this task:
- Three module selectors called 'formatSelectorReadLayerStart', 'formatSelectorReadLayerContinue' and 'formatSelectorReadLayerFinish'
- Since version 10.0, a member of the 'FormatRecord' struct called 'layerData' that reads: "Set by plugin in Start to tell host how many layers are in the document"
Well, I have set layerData to a value different than zero during the 'formatSelectorReadStart' but, still, Photoshop does not call my plugin with the selector 'formatSelectorReadLayerStart'. What can I be missing here? is there something else I have to set to force Photoshop to read the additional layers? maybe an undocumented PiPl property that tells PS that the plugin is able to read such layers?
Any help would be greatly appreciated!
Thanks in advance,
- Oscar
/*****************************************************************************/static void DoReadFinish (void)
/* Test the ability to create the file inside a smart object */
/* This flag also tells you which menu item was selected */
// if openAsSmartObject is already true then you cannot turn it off
gFormatRecord->openAsSmartObject = gData->openAsSmartObject;
// every other time we open as smart, that should be confusing enough for a user!
gData->openAsSmartObject = !gData->openAsSmartObject;
/* Dispose of the image resource data if it exists. */
DisposeImageResources ();
WriteScriptParamsOnRead (); // should be different for read/write
AddComment (); // write a history comment
Found the problem: the routine DoReadFinish() in SimpleFormat.cpp ( sample file format plug-in in SDK for CS4) has the routine DoReadFinish() as shown above. I just needed to delete the 2 lines related to smart object. Everything works fine after that. I had overlooked that routine a bit I suppose but those 2 lines do not add much to the undestanding othe plug-in mechanism and they should be deleted from the example IMHO.
Similar Messages
-
Photos upgrade a disaster. No images appear in Photos. Able to re-establish all images in iPhoto only to have the app crash after uploading new photos from iPhone. Impossible to reload photo library as it needs 161 GB of space. The non functioning Photos library is 107 GB and the original iPhotos library from which it was created is 118 GB. I only have 146 GB available on this 1 TB drive but I am reluctant to trash Photos library in case iPhotos is truly damaged.
And your question is?
-
Call BAPI_PO_CHANGE from ME22N and go back with F3
Hello,
could anybody confirm to me if it is technically possible the following process:
- execute ME22N
- call the BAPI_PO_CHANGE from transaction ME22N (through one added button in program SAPLXM06 and screen 0101)
- call BAPI_TRANSACTION_COMMIT
- go back to ME22N (F3)
Thanks !Hi Nuria,
Yes, it is possible technically.
What are you trying to do? Please explain more in detail.
Regards,
Ferry Lianto -
while using firefox 3.6 i downloaded and played pacman which i activated by clicking on 'tools' and then 'pacman'. after upgrading to firefox 4 i was unable to activate pacman although clicking on 'addons' showed it to installed. so i'm back with 3.6 -- and pacman. any ideas?
This one works in FF 4 and beyond:
https://addons.mozilla.org/en-us/firefox/addon/pacman/ -
Making a VoIP call with the Cisco 837 ADSL router
I would greatly appreciate if could please provide some technical assistance to my questions below:
Is it possible to make a VoIP call between two 837 ADSL Cisco routers over a 1Mbps ADSL broadband connection?
If so, can I configure this VoIP connection using either a PPPoE or ATM WAN link?
Is it possible to make a VoIP call using a Cisco 837 Router while simultaneously surfing the Internet? In other words do I need two public IP addresses i.e. one for accessing the internet and one for making the VoIP call or is one static IP address obtained from my ISP sufficent.
It is possible to configure QoS parameters (e.g. RSVP, Voice precedence, Voice codec selection) on this 837 router using PPoE or can it only be done using an ATM WAN interface?
Does the Cisco 837 router support both the H.323 and SIP communication protocols? Do I need to purchase a certain IOS operating system version for VoIP calling?
Does the VoIP dial peers need to be configured with both a POTS and VoIP phone numbers or is only one number required?
Do I need to obtain a special VoIP number from my VoIP service provider? or can I use existing POTS numbers or made up numbers within the dial peers as this situation involves making a private VoIP call between two branch offices using 837 ADSL routers and not via a VoIP service provider.
Finally, can I use POTS ordinary telephones with the Cisco 837 for making VoIP calls or do I strictly need to purchase VoIP phones?
My apologies for the number of questions asked here but I currently need to know the technical ability of the Cisco ADSL 837 as I am thinking of employing these routers in my company organisation.
I await your feedback in due course.
Thanks,
Martin HealyHi,
I give you a sample config of my router.
class-map voice
match access-group 101
policy-map mypolicy
class voice
priority 128
class class-default
fair-queue 16
ip subnet-zero
gateway
interface Ethernet0
ip address 20.20.20.20 255.255.255.0
no ip directed-broadcast (default)
ip route-cache policy
ip policy route-map data
interface ATM0
ip address 10.10.10.20 255.255.255.0
no ip directed-broadcast (default)
no atm ilmi-keepalive (default)
pvc 1/40
service-policy output mypolicy
protocol ip 10.10.10.36 broadcast
vbr-nrt 640 600 4
! 640 is the maximum upstream rate of ADSL
encapsulation aal5snap
bundle-enable
h323-gateway voip interface
h323-gateway voip id gk-twister ipaddr 172.17.1.1 1719
h323-gateway voip h323-id gw-820
h323-gateway voip tech-prefix 1#
router eigrp 100
network 10.0.0.0
network 20.0.0.0
ip classless (default)
no ip http server
access-list 101 permit ip any any precedence critical
route-map data permit 10
set ip precedence routine
line con 0
exec-timeout 0 0
transport input none
stopbits 1
line vty 0 4
login
voice-port 1
local-alerting
timeouts call-disconnect 0
voice-port 2
local-alerting
timeouts call-disconnect 0
voice-port 3
local-alerting
timeouts call-disconnect 0
voice-port 4
local-alerting
timeouts call-disconnect 0
dial-peer voice 10 voip
destination-pattern ........
ip precedence 5
session target ras
dial-peer voice 1 pots
destination-pattern 5258111
port 1
dial-peer voice 2 pots
destination-pattern 5258222
port 2
dial-peer voice 3 pots
destination-pattern 5258333
port 3
dial-peer voice 4 pots
destination-pattern 5258444
port 4
end -
Writing Import and FIle Format Plug-Ins for Photoshop CS1
Hi All,
I have written two plug-ins (Import and File Format) which work fine using CS2. Unfortunately we need to be able to have them work in CS1 too. I downed the "Adobe Photoshop CS SDK" but when when I looked at the API document ("Photoshop API Guide.pdf"), chapters 6 and 9 are missing and there is no sample code for these plug-in types.
Could anyone explain why this is?
How do I write these types of plug-in's for CS1?
Thanks for your Help
All the Best
DaveI have published
GPL source code to many plugins all of which are compatible with Photoshop 3.0 through CS2, on Windows and Mac. Unless you are using CS2 specific features, the your Import and Format DLLs should already work with CS on Windows.
On the Mac, the executable format changed between CS and CS2, and you would need to build a PEF plugin for CS. MPW and CodeWarrior can do that; Xcode cannot. -
Call an Startup-Plug from another WDA
Hello.
How can I call a Startup-Plug from another WDApplication with a table-Parameters.
I get the URL from the Method cl_wd_utilities=>constuct_wd_url.
thanks for helping
Edited by: Marcus Ventur on Dec 2, 2008 11:33 AMHi,
Try to start your secondary application with a URL Parameter,
then fire any plug you want by checking the parameter,
hope it helps,
regards -
Get Resource Plan data without making a PSI call
I've found that retrieving project resource plan data (for all resources on the project team) takes around one minute when calling ReadResourcePlan via the PSI. We'd like a way to retrieve that data without the overhead of the PSI call. We've
tried querying the Reporting database, and have found some differences. For instance, ReadResourcePlan returns plan data, even if the resource plan is checked out / in a non-published state. Is there a way to retrieve the same resource plan data
returned by the PSI without making the ReadResourcePlan call?Hi TYRichardson--
Before diging into it, have you read this excellent
post from Brian about the resource plan and PSI? Take alos a look to the comments which talk about the check-out.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
TS3406 Problem with iPhone 5 making/receiving random calls ("butt dials")
My wife and I have iPhone 5's. Since last Friday, my phone has made and received random phone calls ("butt dials") including FaceTime calls. My wife's phone has even called itself. The only common denominator is that the person making the random call has an iPhone.
My phone and my wife's phone have the latest software (7.1.2) and we had the batteries changed under warranty through Apple last Friday. Any ideas?Hi becausewemust,
It sounds like you have sound issues with your iPhone only when using it as a phone, not at other times, is that correct? And you have already tried resetting the phone by turning it off and on. A very frustrating situation to be sure. Let’s see if we can get you up and running.
At this point I would suggest restoring the iPhone as a new device. See the steps in this article -
iOS: How to back up your data and set up your device as a new device
http://support.apple.com/kb/HT4137
Thanks for using Apple Support Communities.
Best,
Brett L -
I am trying to restore my iphone 4 ios 6 to acheive unlock. hit restore and it unloads software, confirms with apple then displays the 3194 error. I have turned off my virus scanner, unplugged all usb except for iphone, edited the hosts file and run diagnostics which showes communication with apple is fine. What do I need to do to get my ipone to restore?
There is nothing wrong with the OS update.
Delete ALL your email accounts.
Restart Playbook
Put the accounts back and ensure they are all set with PUSH ON. Manual (push off) will burn battery.
Similarly delete your wifi connections and add back when required.
Turn off wifi is not connected to wifi.
Any "hunting for connection" in email or wifi will burn up battery. -
What has happened to making the customer happy?
I have 5 months left on my contract (November 2014) and yesterday I dropped my phone and it is completely dead. I carry insurance on the phone so it can be replaced. I would prefer to upgrade at this time to a new phone (Samsung Galaxy). I went into the Verizon store and was told that unless I paid retail I would not be able to get a new phone as I was under contract. Really? Can I not extend my contract by another 2 years and get the phone I want now instead of waiting until November? I told the employee that I would be going to T-Mobile since they are paying EFT's and offering the Galaxy for $0 down. The monthly payment would be the same as I would get at Verizon. He said "then that's what you should do". Again, Really???? I have been with Verizon for more than 10 years! I would consider myself a good and loyal customer. What has happened to making the customer happy? I was more than okay with extending my contract for an additional two years and completing the 5 months I have left. All I wanted was to purchase a phone at a "customer rate" not a retail rate. I am now shopping other carriers and plans. Not the way to do business Verizon!
You agreed to complete a 24 month contract, you are only 20 months into that contract. The Samsung you're referring to or any phone with T-Mobile won't be free, you will end up paying the full retail price of that phone like you said you did not want to do with Verizon. If you have insurance use it to get your phone replaced and then wait for your upgrade date.
-
I've lost the menu bar and want to get it back
I used the task bar to remove the menu bar and now it is gone and I can't use the menu to get it back. I've lost the web address bar everything so can't use the webpage. I would uninstall but it doesn't come up in my list of programs. I tried deleting the program and reintroducing it but it came back with the same lack of task bars. I was only trying to tidy all the gumpf fro the top of the page, not remove the functionality of the thing.
* In Firefox 3.6 versions on Windows and Firefox 4 on Windows and Linux it's possible to hide the "Menu Bar" via "View > Toolbars" or via the right-click context menu of a toolbar.
* Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
* Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
See also:
* [[Menu bar is missing]]
* http://kb.mozillazine.org/Toolbar_customization -
Any ideas why the second HOST call does not work???
Hi Folks.
I have written the following code which works fine in all but one respect.
The code creates a zip file on a server (Accessed over a network) hence the full windows network path name.
The call to host on the server works in terms of running the zipinvoices.bat file and the zip file is generated on the server in the correct location.
The prigram unit also generates the correctly formatted mailinvoices.bat file. However, the second call to HOST does not run/execute the mailinvoices.bat file. If I go to the server and run the mailinvoices.bat file directly, it runs perfectly and emails the file to me, no problemo.
Why does the second call to HOST from the client machine not run?
Any clues anyone???
Cheers
Simon Gadd
PROCEDURE send_email_invoices_pu_p (p_organisation IN VARCHAR2) IS
v_processing_cycle CHAR(4);
v_alert_but NUMBER;
v_error_num NUMBER;
v_sent_status NUMBER(1);
v_stage NUMBER(1);
v_year VARCHAR2(4);
v_month VARCHAR2(9);
v_folder_name VARCHAR2(25); -- Name of the file which holds the 'Printed' invoices in the receivables folder. v_organisation VARCHAR2(50);
v_password VARCHAR2(25);
v_organisation VARCHAR2(25);
v_host_command VARCHAR2(100);
v_from_name VARCHAR2(100);
v_to_name VARCHAR2(100);
v_subject VARCHAR2(100);
v_error_txt VARCHAR2(200);
v_file VARCHAR2(200);
v_message VARCHAR2(500);
v_line_buffer VARCHAR2(5000);
v_working BOOLEAN := TRUE;
v_zipinvoices_bat TEXT_IO.FILE_TYPE;
v_mailinvoices_bat TEXT_IO.FILE_TYPE;
CURSOR c_sent_status IS
SELECT sent
FROM INVOICE_EMAIL
WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
CURSOR c_select_folder IS
SELECT folder
FROM INVOICE_EMAIL
WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
CURSOR c_select_email_elements IS
SELECT send_to,
send_from
FROM INVOICE_EMAIL
WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
BEGIN
v_organisation := p_organisation;
-- Check to see if the invoices have already been e-mailed for this Procssing Cycle. If they have,
-- then warn the user of this and get them to confirm that they wish to proceed and e-mail them again.
-- The batch e-mail process will re-zip the invoices (ignoring a pre existing .zip file) and overwrite
-- the existing zip file if it exists or generate it if it does not exist.
OPEN c_sent_status;
FETCH c_sent_status INTO v_sent_status;
CLOSE c_sent_status;
IF v_sent_status = 1 THEN
v_alert_but := SHOW_ALERT('SEND_AGAIN_ALRT');
IF v_alert_but = ALERT_BUTTON2 THEN RAISE FORM_TRIGGER_FAILURE;
ELSE NULL;
END IF;
END IF;
:CONTROL.WORKING := 'Started Zipping invoices for '||INITCAP(v_organisation)||'.'||CHR(10)||'Please wait..';
SYNCHRONIZE;
-- The following code opens the zipinvoices.bat file which resides in the root folder \\Ebony\c$\FCSS\DB_SCRIPTS\ and modifies it ready to
-- zip up the invoices in the relevant organisation's invoice folder for the current processing cycle.
v_processing_cycle := GET_CURRENT_TRAFFIC_PERIOD;
v_month := RTRIM(INITCAP(TO_CHAR(TO_DATE(v_processing_cycle, 'MMYY'), 'MONTH')));
v_year := (TO_CHAR(TO_DATE(v_processing_cycle, 'MMYY'), 'YYYY'));
OPEN c_select_folder;
FETCH c_select_folder INTO v_folder_name;
CLOSE c_select_folder;
KILL_OLD_ZIP_PU_P('del \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\invoices.zip');
SELECT zip_password
INTO v_password
FROM INVOICE_EMAIL
WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
v_zipinvoices_bat := TEXT_IO.FOPEN('\\Ebony\c$\FCSS\DB_SCRIPTS\zipinvoices.bat', 'w');
v_line_buffer := 'cd..';
TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
v_line_buffer := 'cd..';
TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
v_line_buffer := 'wzzip -s'||v_password||' -x*.zip -ybc \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\invoices \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\*.*';
TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
v_line_buffer := 'exit';
TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
TEXT_IO.FCLOSE (v_zipinvoices_bat);
-- The following code executes the freshly edited \\Ebony\c$\FCSS\DB_SCRIPTS\zipinvoices.bat file to produce the zipped invoices file
-- ready to be e-mailed out to the address specified in the INVOICE_EMAIL table for the relevant organisation.
v_host_command := '\\Ebony\c$\FCSS\DB_SCRIPTS\zipinvoices.bat';
v_stage := 1;
HOST (v_host_command, NO_SCREEN);
IF NOT Form_Success THEN
IF v_stage = 1 THEN
:CONTROL.WORKING := 'Error -- The .zip file for '||INITCAP(v_organisation)||' was not produced.';
SYNCHRONIZE;
ELSIF v_STAGE = 2 THEN
:CONTROL.WORKING := 'Error -- The zipped invoices file for '||INITCAP(v_organisation)||' was not emailed.';
SYNCHRONIZE;
END IF;
ELSE NULL;
END IF;
:CONTROL.WORKING := 'All invoices for '||INITCAP(v_organisation)||' successfully zipped.'||CHR(10)||'Attempting to send via e-mail.'||CHR(10)||'Please wait..';
SYNCHRONIZE;
-- The following code e-mails the freshly created .zip file for the relevant organisation and e-mails it to the
-- recipient specified in the relevant row in the INVOICE_EMAIL programme along with from address, subject and
-- message if specified.
OPEN c_select_email_elements;
FETCH c_select_email_elements INTO
v_to_name,
v_from_name;
CLOSE c_select_email_elements;
v_stage := 2;
v_mailinvoices_bat := TEXT_IO.FOPEN('\\Ebony\c$\FCSS\DB_SCRIPTS\mailinvoices.bat', 'w');
v_line_buffer := 'cd..';
TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
v_line_buffer := 'cd..';
TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
v_line_buffer := 'clemail -quiet -smtpserver mailhost.0800dial.com -smtpport 25 -to '||v_to_name||' -from '||v_from_name||' -subject "'||v_month||' '||v_year||' Roaming Traffic Invoices from United Clearing Ltd" -bodyfile \\Ebony\c$\FCSS\DB_SCRIPTS\invoice_body.txt -attach \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\invoices.zip';
TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
v_line_buffer := 'exit';
TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
TEXT_IO.FCLOSE (v_mailinvoices_bat);
v_host_command := '\\Ebony\c$\FCSS\DB_SCRIPTS\mailinvoices.bat';
HOST (v_host_command, NO_SCREEN);
IF NOT Form_Success THEN
IF v_stage = 1 THEN
:CONTROL.WORKING := 'Error -- The .zip file for '||INITCAP(v_organisation)||' was not produced.';
SYNCHRONIZE;
ELSIF v_STAGE = 2 THEN
:CONTROL.WORKING := 'Error -- The zipped invoices file for '||INITCAP(v_organisation)||' was not emailed.';
SYNCHRONIZE;
END IF;
ELSE NULL;
END IF;
UPDATE INVOICE_EMAIL
SET sent = 1
WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
COMMIT;
GO_BLOCK ('INVOICE_EMAIL');
EXECUTE_QUERY;
:CONTROL.WORKING := 'Please press a button on the left to e-mail invoices to the organisations listed.';
SYNCHRONIZE;
EXCEPTION
WHEN OTHERS THEN
v_error_num := SQLCODE;
v_error_txt := SUBSTR(SQLERRM, 1, 200);
MESSAGE('The error was: '||v_error_txt||' and the code was: '||v_error_num);
RAISE FORM_TRIGGER_FAILURE;
END;As a suggestion I'd put the Text_io segments into their own begin - exception - end sub-blocks within the main code. This way if Text_io does raise an exception you can catch it earlier as it may be able to recover - That is if it is a text_io exception.
Other than that you;ll have to step through in Debug. -
My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.
Hello SamSax
Check out the assist page below for troubleshooting call connectivity.
Calls and connection issues
http://www.apple.com/support/iphone/assistant/calls/
Thanks for using Apple Support Communities.
Regards,
-Norm G. -
Can you change the legth of time (or number of rings) it takes for on iphone 4 to time out making an outgonig call?
Mostly it's to call in for radio contests. The Iphone is really good at making a quick call, but it seems to timeout after 15-20 rings. I realise this is a small thing, but free tickets is free tickets.
Most commenst I see is abotu incoling calls, not outging.
Thanks.No. You can't do this with any phone.
Maybe you are looking for
-
How do I use Firefox sync on my Android device with both Aurora and Release?
I have both Aurora and Release installed on my Android phone. I have set up a New Sync account on my desktop. I can log in to it with Release, and it syncs great. However, my Aurora build keeps popping a "could not sign in" notification. If I touch t
-
Has Adobe Acrobat 8.0 Standard Edition Reached It's End-Of-Life for Updates?
I am trying to reinstall Adobe Acrobat 8.0 and can't seem to get updates online? Am I doing something wrong or has the product reached it's End-of-Life?
-
Shuffle wont update on windows
Hi i just bought my shuffle today...i can connect it to my computer fine but as soon as i try to move data onto it i get an unknown error saying that i cant write to or get data from the ipod. I have uninstalled itunes 7.0.2, reinstalled it, rebooted
-
In iTunes, my movie is not showing up.
I got the Hunger Games movie on disk and when I put it in the disk drive and pulled up iTunes, the computer recognized it, but iTunes didn't even acknowledge it. It is a Windows computer, but that shouldn't really make a difference. Its a brand new m
-
Setting Up Enterprise User Security
Hi All, Oracle Database Assistant always crashes when I try to modify or delete a database. It always crashes with java receiving a SIGSEGV (segmentation fault) in libjava.so. I'm using the jre shipped with the Oracle package. It does not crashes whe