Ticket #5169: case-print-drivers.diff

File case-print-drivers.diff, 7.0 KB (added by humdinger, 14 years ago)

for print drivers that appear to publish strings used in the GUI

  • src/add-ons/print/drivers/preview/PageSetupWindow.cpp

     
    11/*
    2  * Copyright 2003-2008, Haiku. All rights reserved.
     2 * Copyright 2003-2009, Haiku, Inc. All rights reserved.
    33 * Distributed under the terms of the MIT License.
    44 *
    55 * Authors:
     
    9090
    9191
    9292PageSetupWindow::PageSetupWindow(BMessage *msg, const char *printerName)
    93     :   BlockingWindow(BRect(0,0,400,220), "Page Setup", B_TITLED_WINDOW_LOOK,
     93    :   BlockingWindow(BRect(0,0,400,220), "Page setup", B_TITLED_WINDOW_LOOK,
    9494            B_MODAL_APP_WINDOW_FEEL, B_NOT_RESIZABLE | B_NOT_MINIMIZABLE |
    9595            B_NOT_ZOOMABLE),
    9696    fSetupMsg(msg),
    9797    fPrinterDirName(printerName)
    9898{
    9999    if (printerName)
    100         SetTitle(BString(printerName).Append(" Page Setup").String());
     100        SetTitle(BString(printerName).Append(" Page setup").String());
    101101
    102102    // load orientation
    103103    if (fSetupMsg->FindInt32("orientation", &fCurrentOrientation) != B_OK)
     
    147147    panel->AddChild(fMarginView);
    148148    fMarginView->SetResizingMode(B_FOLLOW_NONE);
    149149
    150     BPopUpMenu* m = new BPopUpMenu("Page Size");
     150    BPopUpMenu* m = new BPopUpMenu("Page size");
    151151    m->SetRadioMode(true);
    152152
    153153    bounds.OffsetBy(bounds.Width() + 10.0, 5.0);
    154154    float divider = be_plain_font->StringWidth("Orientation: ");
    155     fPageSizeMenu = new BMenuField(bounds, "page_size", "Page Size:", m);
     155    fPageSizeMenu = new BMenuField(bounds, "page_size", "Page size:", m);
    156156    panel->AddChild(fPageSizeMenu);
    157157    fPageSizeMenu->ResizeToPreferred();
    158158    fPageSizeMenu->SetDivider(divider);
  • src/add-ons/print/drivers/pcl5/PCL5Entry.cpp

     
    11/*
    22 * PCL5Entry.cpp
    33 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
    4  * Copyright 2003 Michael Pfeiffer.
     4 * Copyright 2003-2009 Michael Pfeiffer.
    55 */
    66
    77#include "PCL5.h"
     
    2020   
    2121    const char* GetDriverName() const
    2222    {
    23         return "PCL5 Compatible";
     23        return "PCL5 compatible";
    2424    }
    2525   
    2626    const char* GetVersion() const   
  • src/add-ons/print/drivers/pcl6/PCL6Entry.cpp

     
    11/*
    22 * PCL6Entry.cpp
    33 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
    4  * Copyright 2003 Michael Pfeiffer.
     4 * Copyright 2003-2009 Michael Pfeiffer.
    55 */
    66
    77#include "PCL6.h"
     
    2020   
    2121    const char* GetDriverName() const
    2222    {
    23         return "PCL6 Compatible";
     23        return "PCL6 compatible";
    2424    }
    2525   
    2626    const char* GetVersion() const   
  • src/add-ons/print/drivers/canon_lips/lips3/Lips3Entry.cpp

     
    11/*
    22 * Lips3Entry.cpp
    33 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
     4 * Copyright 2009, Haiku, Inc. All rights reserved.
    45 */
    56
    67#include "Lips3.h"
     
    1920   
    2021    const char* GetDriverName() const
    2122    {
    22         return "Canon LIPS3 Compatible";
     23        return "Canon LIPS3 compatible";
    2324    }
    2425   
    2526    const char* GetVersion() const   
  • src/add-ons/print/drivers/canon_lips/lips4/Lips4Entry.cpp

     
    11/*
    22 * Lips4Entry.cpp
    33 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
     4 * Copyright 2009, Haiku, Inc. All rights reserved.
    45 */
    56
    67#include "Lips4.h"
     
    1920   
    2021    const char* GetDriverName() const
    2122    {
    22         return "Canon LIPS4 Compatible";
     23        return "Canon LIPS4 compatible";
    2324    }
    2425   
    2526    const char* GetVersion() const   
  • src/add-ons/print/drivers/pdf/source/PageSetupWindow.cpp

     
    44
    55Version: 12.19.2000
    66
    7 Copyright (c) 2001 OpenBeOS.
     7Copyright (c) 2001, OpenBeOS.
     8Copyright (c) 2009, Haiku, Inc. All rights reserved.
    89
    910Authors:
    1011    Philippe Houdoin
     
    9293
    9394
    9495PageSetupWindow::PageSetupWindow(BMessage *msg, const char *printerName)
    95     : HWindow(BRect(0,0,400,220), "Page Setup", B_TITLED_WINDOW_LOOK,
     96    : HWindow(BRect(0,0,400,220), "Page setup", B_TITLED_WINDOW_LOOK,
    9697        B_MODAL_APP_WINDOW_FEEL, B_NOT_RESIZABLE | B_NOT_MINIMIZABLE |
    9798        B_NOT_ZOOMABLE),
    9899     fResult(B_ERROR),
     
    103104    fExitSem    = create_sem(0, "PageSetup");
    104105
    105106    if (printerName)
    106         SetTitle(BString(printerName).Append(" Page Setup").String());
     107        SetTitle(BString(printerName).Append(" Page setup").String());
    107108
    108109    if (fSetupMsg->FindInt32("orientation", &fCurrentOrientation) != B_OK)
    109110        fCurrentOrientation = PrinterDriver::PORTRAIT_ORIENTATION;
     
    165166    panel->AddChild(fMarginView);
    166167    fMarginView->SetResizingMode(B_FOLLOW_NONE);
    167168
    168     BPopUpMenu* m = new BPopUpMenu("Page Size");
     169    BPopUpMenu* m = new BPopUpMenu("Page size");
    169170    m->SetRadioMode(true);
    170171
    171172    bounds.OffsetBy(bounds.Width() + 10.0, 5.0);
    172     float divider = be_plain_font->StringWidth("PDF Compatibility: ");
    173     fPageSizeMenu = new BMenuField(bounds, "page_size", "Page Size:", m);
     173    float divider = be_plain_font->StringWidth("PDF compatibility: ");
     174    fPageSizeMenu = new BMenuField(bounds, "page_size", "Page size:", m);
    174175    panel->AddChild(fPageSizeMenu);
    175176    fPageSizeMenu->ResizeToPreferred();
    176177    fPageSizeMenu->SetDivider(divider);
     
    207208            item->SetMarked(true);
    208209    }
    209210
    210     m = new BPopUpMenu("PDF Compatibility");
     211    m = new BPopUpMenu("PDF compatibility");
    211212    m->SetRadioMode(true);
    212213
    213214    bounds.OffsetBy(0.0, fOrientationMenu->Bounds().Height() + 10.0);
    214215    fPDFCompatibilityMenu = new BMenuField(bounds, "pdf_compatibility",
    215         "PDF Compatibility:", m);
     216        "PDF compatibility:", m);
    216217    panel->AddChild(fPDFCompatibilityMenu);
    217218    fPDFCompatibilityMenu->ResizeToPreferred();
    218219    fPDFCompatibilityMenu->SetDivider(divider);
  • src/add-ons/print/drivers/postscript/PSEntry.cpp

     
    11/*
    22 * PSEntry.cpp
    33 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
    4  * Copyright 2003 Michael Pfeiffer.
     4 * Copyright 2003-2009 Michael Pfeiffer.
    55 */
    66
    77#include "PS.h"
     
    2020   
    2121    const char* GetDriverName() const
    2222    {
    23         return "PS Compatible";
     23        return "PS compatible";
    2424    }
    2525   
    2626    const char* GetVersion() const