Re: Looking for help for clipboard in Math

2015-06-06 Thread Regina Henschel

Hi Michael,

thank-you for looking at my problems.

Michael Stahl schrieb:

On 05.06.2015 01:44, Regina Henschel wrote:

Hi all,

I struggle with the clipboard. My goal is to import MathML in module
Math from clipboard, similar as it is imported from file. But I'm stuck.
Therefore some questions:

[skipped a lot of text]


include/sot/formats.hxx: enum class SotClipboardFormatId

there is no MathML in there, but various STARMATH_* ones.

 // the point at which we start allocating runtime format IDs
 USER_END  = STARWRITERGLOB_8_TEMPLATE

so what you probably have as ID is user-defined, which means we can't
do anything with it really.

it looks like there needs to be some mapping from the OS-specific
clipboard to these office-internal IDs - if there's no ID for MathML it
can't be mapped.

there is a big array in sot/source/base/exchange.cxx, you probably need
to add an entry for MathML there.

the array is ordered and indexed by the SotClipboardFormatId.

/* 48 SotClipboardFormatId::STARMATH_50*/{
application/x-openoffice-starmath-50;windows_formatname=\StarMath
5.0\, StarMath 5.0, cppu::UnoTypeSequencesal_Int8::get() },

that's the mime-type and human-readable name.

i was wondering how this would work on Windows, given that the Win32
clipboard presumably does not use mime-types; apparently the
;windows_formatname=\...\ appendix to the mime-type here covers that.


Helpful comments. Looking around I think, the connection to the OS is 
done in /main/dtrans/source/win32/


I have found the table m_TranslTable, which refers the SOT_FORMATSTR_IDs 
from exchange.cxx. I'll try what happens, when I add the MathML format 
there too. I had already added it in exchange.cxx, but that was not 
enough to be recognized. [I need some time for that. I will report back, 
when I have finished.]






(5)
I try to use SmViewShell::InsertFrom(SfxMedium rMedium). It seems to
work, but when the process arrives at SmXMLImport::endDocument(void),
the node tree is empty.  Any tips, what I might have missed?


how do you prepare the SfxMedium?  i'm not sure if it requires an actual
file, or if it can read from an input stream (XInputStream); it probably
can't read from a Sequencesal_Int8 buffer directly...

there is a SfxMedium::setStreamToLoadFrom() which looks promising.


I have used:

TransferableDataHelper aDataHelper( 
TransferableDataHelper::CreateFromSystemClipboard(GetEditWindow()) );

uno::Reference  io::XInputStream  xStrm;
aDataHelper.GetInputStream( nId, xStrm );
SfxMedium* pClipboardMedium = new SfxMedium();
SfxMedium aClipboardMedium = *pClipboardMedium;
aClipboardMedium.setStreamToLoadFrom( xStrm, sal_True /*bIsReadOnly*/ );
InsertFrom(aClipboardMedium);


When I then proof it with

SvStream* pStream = aClipboardMedium.GetInStream();
...
sal_uLong nBytesRead = pStream-Read( aBuffer, nBufferSize );
printf(%s \n, aBuffer);

I can see, that the stream contains the expected MathML-source in case 
the clipboard viewer lists the clipboard format application/mathml+xml.


In addition I have set the filter by

const SfxFilter* pMathFilter = SfxFilter::GetFilterByName( 
String::CreateFromAscii(MATHML_XML) );

aClipboardMedium.SetFilter(pMathFilter);

so that

if ( rFltName.EqualsAscii(MATHML_XML) )

in InsertFrom becomes true


I'm still a novice in coding and it might be, that I do basic things wrong.




you can create an input stream from the buffer via SvMemoryStream and
then wrap that in utl::OInputStreamWrapper.


You mean, it will be possible to use the Unicode-Text? That would 
help, when copying from Websites. But first I need to solve the problem, 
that I get no node-tree, and the problem to detect the clipboard correctly.


Kind regards
Regina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Buildbot: buildslave aoo_mac-mini was lost

2015-06-06 Thread buildbot
The Buildbot working for 'ASF Buildbot'
has noticed that the buildslave named aoo_mac-mini went away

It last disconnected at Sat Jun  6 20:47:08 2015 (buildmaster-local time)

The admin on record (as reported by BUILDSLAVE:info/admin)
was 'Apache OpenOffice dev@openoffice.apache.org
'.

Sincerely,
 The Buildbot
 http://ci.apache.org/

http://ci.apache.org/buildslaves/aoo_mac-mini

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Apache@ OSCON 2015 - Booth Goodies

2015-06-06 Thread jan i
On Saturday, June 6, 2015, Dennis E. Hamilton dennis.hamil...@acm.org
wrote:

 OSCON 2015 is near upon us.

 I am offering to do booth duty again this year.  I had a great time and am
 happy to do it again.

 I have one request.

 Can we have bigger Apache OpenOffice buttons?  The little ones are nice,
 but I find they are difficult to put one.

 The design need not change, but it would be good to have bigger ones.  Is
 that easy to accomplish?

It is a good idea and we have the budget to make it happen. All we need is
someone doing it.

rgds
jan i



  - Dennis

 -Original Message-
 From: Melissa Warnkin [mailto:missywarn...@yahoo.com.INVALID
 javascript:;]
 Sent: Friday, June 20, 2014 08:29
 To: d...@community.apache.org javascript:;; ksch...@apache.org
 javascript:;
 Subject: Re: Apache@ OSCON question

 Hi Kay,

 What kind of project giveaways are you thinking of? Let me know - I'll be
 more than happy to accommodate this if I can.  Please be sure to contact
 brand management if approval is needed!!!

 As Ross mentioned, I'm the primary booth staffer, but there are always a
 handful of volunteers that help at the booth (staffing during breaks/lunch
 and help with the setup/teardown).  Shane will be my sidekick at the booth
 this year.  If you or others from your project will be attending OSCON and
 would like to be present at the booth at a specific time to talk to the
 attendees, just let me know.  We could always send out a broadcast via
 social media about stop by the ASF's booth at XXX to speak with the reps
 from Project XXX.  That goes for the other projects as well!!

 It's always great to have someone from the community at the booth to
 answer technical questions!!

 Please let me know if you have any further questions.

 Have a great day - speak soon,

 ~Melissa



 
  From: Ross Gardler rgard...@opendirective.com javascript:;
 To: d...@community.apache.org javascript:;; ksch...@apache.org
 javascript:;
 Sent: Thursday, June 19, 2014 11:07 PM
 Subject: Re: Apache@ OSCON question


 We have foundation giveaways but generally not specific projects (the table
 isn't big enough;-)

 Usually we just have Melissa staff it and answer general questions about
 the ASF. Wherever possible she connects people asking about specific
 projects to attendees at the conference.

 In theory we could be more organized giving specific projects a time slot
 for example. But we would someone to help Melissa manage this.

 If there is something you would like to do let us know.










 On 19 June 2014 17:08, k...@apache.org javascript:; ksch...@apache.org
 javascript:; wrote:

  I just saw in the May Board minutes that Apache has applied for a booth
  at OSCON.
 
  Can we get a small update on this? Should projects provide give-aways of
  some sort if we have them? What's typically handled at the Apache booth
  at OSCON.
 


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 javascript:;
 For additional commands, e-mail: dev-h...@openoffice.apache.org
 javascript:;



-- 
Sent from My iPad, sorry for any misspellings.


RE: Apache@ OSCON 2015 - Booth Goodies

2015-06-06 Thread Dennis E. Hamilton
Um, 1.5 diameter, as asked.  Silly keyboard.  Bad keyboard.  Bad.

-Original Message-
From: Dennis E. Hamilton [mailto:dennis.hamil...@acm.org] 
Sent: Saturday, June 6, 2015 15:34
To: dev@openoffice.apache.org
Subject: RE: Apache@ OSCON 2015 - Booth Goodies

Kay, 1.4 diameter for the AOO seagull buttons would be superb!

 - Dennis

-Original Message-
From: Kay Schenk [mailto:kay.sch...@gmail.com] 
Sent: Saturday, June 6, 2015 14:54
To: dev@openoffice.apache.org
Subject: Re: Apache@ OSCON 2015 - Booth Goodies

On Jun 5, 2015 11:06 PM, jan i j...@apache.org wrote:

 On Saturday, June 6, 2015, Dennis E. Hamilton dennis.hamil...@acm.org
 wrote:

  OSCON 2015 is near upon us.
 
  I am offering to do booth duty again this year.  I had a great time and
am
  happy to do it again.
 
  I have one request.
 
  Can we have bigger Apache OpenOffice buttons?  The little ones are nice,
  but I find they are difficult to put one.
 
  The design need not change, but it would be good to have bigger ones.
Is
  that easy to accomplish?

 It is a good idea and we have the budget to make it happen. All we need is
 someone doing it.

 rgds
 jan i


I'll be happy to check on this. Would 1 1/2 be better?

[ ... ]


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Apache@ OSCON 2015 - Booth Goodies

2015-06-06 Thread Kay Schenk
On Jun 5, 2015 11:06 PM, jan i j...@apache.org wrote:

 On Saturday, June 6, 2015, Dennis E. Hamilton dennis.hamil...@acm.org
 wrote:

  OSCON 2015 is near upon us.
 
  I am offering to do booth duty again this year.  I had a great time and
am
  happy to do it again.
 
  I have one request.
 
  Can we have bigger Apache OpenOffice buttons?  The little ones are nice,
  but I find they are difficult to put one.
 
  The design need not change, but it would be good to have bigger ones.
Is
  that easy to accomplish?

 It is a good idea and we have the budget to make it happen. All we need is
 someone doing it.

 rgds
 jan i


I'll be happy to check on this. Would 1 1/2 be better?


 
   - Dennis
 
  -Original Message-
  From: Melissa Warnkin [mailto:missywarn...@yahoo.com.INVALID
  javascript:;]
  Sent: Friday, June 20, 2014 08:29
  To: d...@community.apache.org javascript:;; ksch...@apache.org
  javascript:;
  Subject: Re: Apache@ OSCON question
 
  Hi Kay,
 
  What kind of project giveaways are you thinking of? Let me know - I'll
be
  more than happy to accommodate this if I can.  Please be sure to contact
  brand management if approval is needed!!!
 
  As Ross mentioned, I'm the primary booth staffer, but there are always a
  handful of volunteers that help at the booth (staffing during
breaks/lunch
  and help with the setup/teardown).  Shane will be my sidekick at the
booth
  this year.  If you or others from your project will be attending OSCON
and
  would like to be present at the booth at a specific time to talk to the
  attendees, just let me know.  We could always send out a broadcast via
  social media about stop by the ASF's booth at XXX to speak with the
reps
  from Project XXX.  That goes for the other projects as well!!
 
  It's always great to have someone from the community at the booth to
  answer technical questions!!
 
  Please let me know if you have any further questions.
 
  Have a great day - speak soon,
 
  ~Melissa
 
 
 
  
   From: Ross Gardler rgard...@opendirective.com javascript:;
  To: d...@community.apache.org javascript:;; ksch...@apache.org
  javascript:;
  Sent: Thursday, June 19, 2014 11:07 PM
  Subject: Re: Apache@ OSCON question
 
 
  We have foundation giveaways but generally not specific projects (the
table
  isn't big enough;-)
 
  Usually we just have Melissa staff it and answer general questions about
  the ASF. Wherever possible she connects people asking about specific
  projects to attendees at the conference.
 
  In theory we could be more organized giving specific projects a time
slot
  for example. But we would someone to help Melissa manage this.
 
  If there is something you would like to do let us know.
 
 
 
 
 
 
 
 
 
 
  On 19 June 2014 17:08, k...@apache.org javascript:; ksch...@apache.org
  javascript:; wrote:
 
   I just saw in the May Board minutes that Apache has applied for a
booth
   at OSCON.
  
   Can we get a small update on this? Should projects provide give-aways
of
   some sort if we have them? What's typically handled at the Apache
booth
   at OSCON.
  
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  javascript:;
  For additional commands, e-mail: dev-h...@openoffice.apache.org
  javascript:;
 
 

 --
 Sent from My iPad, sorry for any misspellings.


RE: Apache@ OSCON 2015 - Booth Goodies

2015-06-06 Thread Dennis E. Hamilton
Kay, 1.4 diameter for the AOO seagull buttons would be superb!

 - Dennis

-Original Message-
From: Kay Schenk [mailto:kay.sch...@gmail.com] 
Sent: Saturday, June 6, 2015 14:54
To: dev@openoffice.apache.org
Subject: Re: Apache@ OSCON 2015 - Booth Goodies

On Jun 5, 2015 11:06 PM, jan i j...@apache.org wrote:

 On Saturday, June 6, 2015, Dennis E. Hamilton dennis.hamil...@acm.org
 wrote:

  OSCON 2015 is near upon us.
 
  I am offering to do booth duty again this year.  I had a great time and
am
  happy to do it again.
 
  I have one request.
 
  Can we have bigger Apache OpenOffice buttons?  The little ones are nice,
  but I find they are difficult to put one.
 
  The design need not change, but it would be good to have bigger ones.
Is
  that easy to accomplish?

 It is a good idea and we have the budget to make it happen. All we need is
 someone doing it.

 rgds
 jan i


I'll be happy to check on this. Would 1 1/2 be better?

[ ... ]


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Buildbot: buildslave aoo_mac-mini was lost

2015-06-06 Thread buildbot
The Buildbot working for 'ASF Buildbot'
has noticed that the buildslave named aoo_mac-mini went away

It last disconnected at Sun Jun  7 03:11:40 2015 (buildmaster-local time)

The admin on record (as reported by BUILDSLAVE:info/admin)
was 'Apache OpenOffice dev@openoffice.apache.org
'.

Sincerely,
 The Buildbot
 http://ci.apache.org/

http://ci.apache.org/buildslaves/aoo_mac-mini

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Buildbot: buildslave aoo_mac-mini was lost

2015-06-06 Thread buildbot
The Buildbot working for 'ASF Buildbot'
has noticed that the buildslave named aoo_mac-mini went away

It last disconnected at Sat Jun  6 18:46:10 2015 (buildmaster-local time)

The admin on record (as reported by BUILDSLAVE:info/admin)
was 'Apache OpenOffice dev@openoffice.apache.org
'.

Sincerely,
 The Buildbot
 http://ci.apache.org/

http://ci.apache.org/buildslaves/aoo_mac-mini

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org