Comments (2)
ITEM 1 - MENU KEYS
fallback.c should now be changed to read:
// "*copy.sensitive: no",
// "*paste.sensitive: no",
"*copy.accelerator: Ctrl<Key>c",
"*paste.accelerator: Ctrl<Key>v",
"*copy.acceleratorText: Ctrl-c",
"*paste.acceleratorText: Ctrl-v",
ITEM 2 - COPYING
Changes needed to be made in CopyCB()
. Use the function decomp()
to obtain a pointer to the formula expressed as a string. The functions XmClipboardStartCopy()
, XmClipboardCopy()
, XmClipboardEndCopy()
and a number of other Motif functions are used to affect the copy to clipboard.
In the line long private_id = 0x01E0;
, 01E0
is a "magic number" identifying oleo. It looks like the word "OLEO".
Most of the code was cribbed from http://www.oreilly.com/openbook/motif/vol6a/Vol6a_html/ch17.html. In a call to XmClipboardStartCopy()
, the parameter CurrentTime
was passed in, as per the afrorementioned webpage. However man XmClipboardStartCopy
says:
A valid timestamp must be supplied; it is not sufficient to use CurrentTime.
There does not appear to be an issue with its use, however.
ITEM 3 - PASTING
XmClipboardRetrieve()
was called to retrieve the contents of the clipboard into a buffer of size 80. Motif has an ability to read in the clipboard in chunks, but I think the simple solution I have adopted is sufficient.
Setting this string - which may actually be a formula - into the cell is straigtforward:
new_value(curow, cucol, buf);
from neoleo.
Closing, as issue has been implemented.
from neoleo.
Related Issues (20)
- Quit using C-q HOT 1
- Copy and paste causes memory leak HOT 1
- Dates HOT 1
- Format dialog box
- Incomplete installation of 7.0.0
- Mem leak: describe-function set-cell-function HOT 1
- shift_spans() needs to do something
- cell.h: set_c_z() problematical HOT 1
- sum() doesn't recalculate HOT 4
- crash upon setting alignment HOT 7
- html documentation and man page HOT 6
- tarball naming conventions HOT 4
- Error while compiling HOT 3
- undefined reference to `std::filesystem::create_directories(std::filesystem::__cxx11::path const&)' HOT 4
- io-utils.cc:1002:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] HOT 3
- Improperly terminated strings give parse error when loaded HOT 1
- I had to change a few lines to get it compiled with clang(++) ... HOT 2
- Arch build patch HOT 1
- Build failure under Arch Linux, GCC 12.1 HOT 11
- example/test.oleo fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neoleo.