Add ipp: and lpr: as supported uri schemes for the Printer pref, and the ArgsReceived() hook with a TODO to handle them. It should use it to prefill the add printer dialog.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39169 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -57,3 +57,13 @@ PrintersApp::MessageReceived(BMessage* msg)
|
|||||||
BApplication::MessageReceived(msg);
|
BApplication::MessageReceived(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
PrintersApp::ArgvReceived(int32 argc, char** argv)
|
||||||
|
{
|
||||||
|
for (int i; i < argc; i++) {
|
||||||
|
// TODO: show a pre-filled add printer dialog here
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ public:
|
|||||||
PrintersApp();
|
PrintersApp();
|
||||||
void ReadyToRun();
|
void ReadyToRun();
|
||||||
void MessageReceived(BMessage* msg);
|
void MessageReceived(BMessage* msg);
|
||||||
|
void ArgvReceived(int32 argc, char** argv);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PRINTERS_H
|
#endif // _PRINTERS_H
|
||||||
|
|||||||
@@ -18,6 +18,12 @@ resource app_version {
|
|||||||
long_info = "Printers ©2001-2010 Haiku"
|
long_info = "Printers ©2001-2010 Haiku"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
resource(1, "BEOS:FILE_TYPES") message
|
||||||
|
{
|
||||||
|
"types" = "application/x-vnd.Be.URL.ipp",
|
||||||
|
"types" = "application/x-vnd.Be.URL.lpr"
|
||||||
|
};
|
||||||
|
|
||||||
resource vector_icon {
|
resource vector_icon {
|
||||||
$"6E6369660B050002001602B76E71BBF8593D1210B8A7674742A04ABEFB00AEFF"
|
$"6E6369660B050002001602B76E71BBF8593D1210B8A7674742A04ABEFB00AEFF"
|
||||||
$"E1053802001603373333B9333339333337333348E54F4B555400FFBFE5FF9B02"
|
$"E1053802001603373333B9333339333337333348E54F4B555400FFBFE5FF9B02"
|
||||||
|
|||||||
Reference in New Issue
Block a user