newCmdDefResult e = newCmdDef(name, def);
switch (e) {
newCmdDefResult e = newCmdDef(name, def);
switch (e) {
- case CmdDefNameEmpty:
- lexrc.printError("BN_DEFINE: Command name is empty");
- error = true;
- break;
- case CmdDefExists:
- lexrc.printError("BN_DEFINE: Command `" + name + "' already defined");
- error = true;
- break;
- case CmdDefInvalid:
- lexrc.printError("BN_DEFINE: Command definition for `" + name + "' is not valid");
- error = true;
+ case CmdDefNameEmpty:
+ lexrc.printError("BN_DEFINE: Command name is empty");
+ error = true;
+ break;
+ case CmdDefExists:
+ lexrc.printError("BN_DEFINE: Command `" + name + "' already defined");
+ error = true;
+ break;
+ case CmdDefInvalid:
+ lexrc.printError("BN_DEFINE: Command definition for `" + name + "' is not valid");
+ error = true;
+ break;
+ case CmdDefOk:
+ break;
pasteFromStack(cur, bv->buffer().errorList("Paste"),
convert<unsigned int>(arg));
} else {
pasteFromStack(cur, bv->buffer().errorList("Paste"),
convert<unsigned int>(arg));
} else {
- Clipboard::GraphicsType type;
+ Clipboard::GraphicsType type = Clipboard::AnyGraphicsType;
if (arg == "pdf")
type = Clipboard::PdfGraphicsType;
else if (arg == "png")
if (arg == "pdf")
type = Clipboard::PdfGraphicsType;
else if (arg == "png")
// extracts the toolbars from the backend
ToolbarBackend::Toolbars::iterator cit = toolbarbackend.begin();
ToolbarBackend::Toolbars::iterator end = toolbarbackend.end();
// extracts the toolbars from the backend
ToolbarBackend::Toolbars::iterator cit = toolbarbackend.begin();
ToolbarBackend::Toolbars::iterator end = toolbarbackend.end();
for (; cit != end; ++cit) {
for (; cit != end; ++cit) {
}
std::vector<int> const & ids = guiApp->viewIds();
}
std::vector<int> const & ids = guiApp->viewIds();
- for (int i = 0; i != ids.size(); ++i) {
+ for (size_type i = 0; i != ids.size(); ++i) {
if (id_ == ids[i])
continue;
if (guiApp->view(ids[i]).workArea(*b)) {
if (id_ == ids[i])
continue;
if (guiApp->view(ids[i]).workArea(*b)) {