Fix some warnings.
Prepare to package future PDF Writer print driver as OBOS package: openbeos-pdf_writer-cvs... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6154 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
SubDir OBOS_TOP src add-ons print drivers pdf ;
|
SubDir OBOS_TOP src add-ons print drivers pdf ;
|
||||||
|
|
||||||
SubInclude OBOS_TOP src add-ons print drivers pdf source ;
|
SubInclude OBOS_TOP src add-ons print drivers pdf source ;
|
||||||
|
SubInclude OBOS_TOP src add-ons print drivers pdf bookmarks ;
|
||||||
|
SubInclude OBOS_TOP src add-ons print drivers pdf encoding ;
|
||||||
|
SubInclude OBOS_TOP src add-ons print drivers pdf xrefs ;
|
||||||
|
|
||||||
|
Package openbeos-pdf_writer-cvs :
|
||||||
|
README TODO CHANGES ;
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
SubDir OBOS_TOP src add-ons print drivers pdf bookmarks ;
|
||||||
|
|
||||||
|
Package openbeos-pdf_writer-cvs :
|
||||||
|
Sample :
|
||||||
|
boot home config settings PDF_Writer bookmarks ;
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
SubDir OBOS_TOP src add-ons print drivers pdf encoding ;
|
||||||
|
|
||||||
|
Package openbeos-pdf_writer-cvs :
|
||||||
|
t1enc0.enc t1enc1.enc t1enc2.enc t1enc3.enc t1enc4.enc
|
||||||
|
ttenc0.cpg ttenc1.cpg ttenc2.cpg ttenc3.cpg ttenc4.cpg :
|
||||||
|
boot home config settings PDF_Writer encoding ;
|
||||||
@@ -54,7 +54,7 @@ AdvancedSettingsWindow::AdvancedSettingsWindow(BMessage *settings)
|
|||||||
BRect r;
|
BRect r;
|
||||||
BBox *panel;
|
BBox *panel;
|
||||||
BButton *button;
|
BButton *button;
|
||||||
BCheckBox *cb;
|
// BCheckBox *cb;
|
||||||
BMenuField *mf;
|
BMenuField *mf;
|
||||||
float x, y, w, h;
|
float x, y, w, h;
|
||||||
fSettings = settings;
|
fSettings = settings;
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ DocInfoWindow::DocInfoWindow(BMessage *doc_info)
|
|||||||
{
|
{
|
||||||
// ---- Ok, build a default page setup user interface
|
// ---- Ok, build a default page setup user interface
|
||||||
BRect r;
|
BRect r;
|
||||||
BBox *panel;
|
// BBox *panel;
|
||||||
BTabView *tabView;
|
BTabView *tabView;
|
||||||
BString permissions;
|
BString permissions;
|
||||||
fDocInfo = doc_info;
|
fDocInfo = doc_info;
|
||||||
@@ -161,8 +161,8 @@ DocInfoWindow::SetupButtons(BBox* panel) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
DocInfoWindow::SetupDocInfoView(BBox* panel) {
|
DocInfoWindow::SetupDocInfoView(BBox* panel) {
|
||||||
BButton *button;
|
// BButton *button;
|
||||||
float x, y, w, h;
|
// float x, y, w, h;
|
||||||
|
|
||||||
BRect r(panel->Bounds());
|
BRect r(panel->Bounds());
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
SubDir OBOS_TOP src add-ons print drivers pdf source ;
|
SubDir OBOS_TOP src add-ons print drivers pdf source ;
|
||||||
|
|
||||||
AddResources PDF\ Writer :
|
AddResources PDF\ Writer :
|
||||||
# PDFWriter.rsrc
|
|
||||||
PDFWriter.rdef
|
PDFWriter.rdef
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -55,3 +54,8 @@ LinkSharedOSLibs
|
|||||||
;
|
;
|
||||||
|
|
||||||
# /boot/home/config/lib/libpdf.so
|
# /boot/home/config/lib/libpdf.so
|
||||||
|
|
||||||
|
Package openbeos-pdf_writer-cvs :
|
||||||
|
PDF\ Writer :
|
||||||
|
boot home config add-ons Print ;
|
||||||
|
|
||||||
|
|||||||
@@ -1599,11 +1599,10 @@ PDFWriter::GetImages(BRect src, int32 /*width*/, int32 /*height*/, int32 bytesPe
|
|||||||
|
|
||||||
int32 width = src.IntegerWidth() + 1;
|
int32 width = src.IntegerWidth() + 1;
|
||||||
int32 height = src.IntegerHeight() + 1;
|
int32 height = src.IntegerHeight() + 1;
|
||||||
int length;
|
int length = 0;
|
||||||
int bpc;
|
int bpc = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (HasAlphaChannel(pixelFormat)) {
|
if (HasAlphaChannel(pixelFormat)) {
|
||||||
if (NeedsBPC1Mask(pixelFormat) || !SupportsSoftMask()) {
|
if (NeedsBPC1Mask(pixelFormat) || !SupportsSoftMask()) {
|
||||||
int32 w = (width+7)/8;
|
int32 w = (width+7)/8;
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
SubDir OBOS_TOP src add-ons print drivers pdf xrefs ;
|
||||||
|
|
||||||
|
Package openbeos-pdf_writer-cvs :
|
||||||
|
English Deutsch :
|
||||||
|
boot home config settings PDF_Writer xrefs ;
|
||||||
Reference in New Issue
Block a user