Commit Graph
100 Commits
Author SHA1 Message Date
Michael Stahl d785fa16fd warning C4701: potentially uninitialized local variable
Change-Id: I05c5eaf4575dc4b8c8d4e3c45d644a51aab84f0a
2013-12-13 17:07:43 +01:00
Michael Stahl 07359c2428 Revert "fix windows build"
This reverts commit 45504f9ba8.

The problem that is apparently fixed here is that link.exe is too dumb
to pick the right entry-point if the WinMain definition does not come
from an object file but a .lib; in that case it apparently defaults to
archaic 8-bit WinMain so tell it to use Unicode one with /ENTRY.

Conflicts:

	desktop/Executable_sbase.mk
	desktop/Executable_scalc.mk
	desktop/Executable_sdraw.mk
	desktop/Executable_simpress.mk
	desktop/Executable_smath.mk
	desktop/Executable_sweb.mk
	desktop/Executable_swriter.mk

Change-Id: Ib6239eb0fd3d64fd4a292a0d42d65ef75475c389
2013-12-12 20:06:27 +01:00
Michael Stahl a8804dfc50 winaccessibility: let's try to remove that IsInMainThread()
... and see what happens.  Hopefully nothing bad since everything should
be thread-safe now.

Change-Id: I333b29bc2066578ccabadb022936a28dafdf7104
2013-12-12 20:06:27 +01:00
Michael Stahl fdd76463b4 winaccessibility: remove some noise from not-implemented methods
Change-Id: I8046ae37cba87f0e5df550de831229345df1c6f8
2013-12-12 20:06:27 +01:00
Michael Stahl 57acb3d068 winaccessibility: out-line those COM methods
Change-Id: I7e9a94898c6bc8142b46a05ffba56fc41eb125c2
2013-12-12 20:06:27 +01:00
Michael Stahl 975e1d293d winaccessibility: clear entires from XHWNDDocList too
... in DeleteAccObj().  Otherwise pointers to deleted documents will be
used.

Change-Id: Ia807dc3a2c782019cf7fc874d264058219956d74
2013-12-12 20:06:27 +01:00
Michael Stahl 506bab8f62 winaccessibility: GetChildInterface may return 0
Change-Id: I950072d22cd315d1898b76a2c345121d31d432c4
2013-12-12 20:06:26 +01:00
Michael Stahl b22e987113 winaccessibility: do not access freed AccObject
The AccObject is stored by value in XIdAccList, so don't call GetResID()
after it has been erased.

Change-Id: I391aad1e3ab71d443cc6e6b92381f74918e0bcfb
2013-12-12 20:06:26 +01:00
Michael Stahl 9e351edccf winaccessibility: fix exception handling in AccEventListener
RemoveMeFromBroadcaster() may catch a DisposedException and then not
call NotifyDestroy.

Change-Id: I2b766541c3e6800c88a83aa482de0093714d39c2
2013-12-12 20:06:26 +01:00
Michael Stahl b6664d0649 winaccessibility: nobody calls get_XInterface
Change-Id: I201fc14a02c47a6c735c65f649c6b9f068d92c71
2013-12-12 20:06:26 +01:00
Michael Stahl d28687d517 winaccessibility: fix locking in UAccCOM
The COM components will (usually? always?) be called on the main thread
via COM, and may also be called on any thread from the UNO event
listeners.  Both ways may access the global AccWinObjectManager.
So the easiest way to lock all that without introducing new deadlocks
seems to be to just use the SolarMutex.

The fact that the main thread is in a COM STA is rather irrelevant here
since we don't currently do the required manual marshalling of the COM
pointers so they can be accessed from UNO event listeners running in
threads other than the main thread anyway.

To get that to build:
- use prewin.h and postwin.h around ATL headers
- link UAccCOM against vcl
- define both UNICODE and _UNICODE to not break on mis-matching TCHAR
  nonsense

Change-Id: I1ccdf7a4a5c2b5f0b9c29ef39d126c4b8a16898a
2013-12-12 20:06:26 +01:00
Michael Stahl f5a54cbf12 prewin.h: remove silly extern "C" nonsense which prevents...
... using prewin.h/postwin.h around ATL headers.  Also remove some other
cruft while at it.

Change-Id: I7d081dae88273dfd214ef078f5844ce266e388fb
2013-12-12 20:06:25 +01:00
Michael Stahl 57f88bb76b winaccessibility: drop icu externals, probably some copypasta
Change-Id: Ife0960b235e24f17640b197f952a9a094b7d654d
2013-12-12 20:06:25 +01:00
Michael Stahl dd7df93417 winaccessibility: remove CheckEnableAccessible.h and assorted noise
Change-Id: I45e1d72b1abf64a965397c50ac3b95b5bbee3206
2013-12-12 20:06:25 +01:00
Michael Stahl cbda6da004 winaccessibility: InlineIsEqualGUID is defined by guiddef.h
Change-Id: Ia469076ec6f815133e77a14940e8afa05e177231
2013-12-12 20:06:25 +01:00
Michael Stahl a5c7ed2158 winaccessibility: use SAL_N_ELEMENTS
Change-Id: I479117e0794375f1ec0c96b78db22b3569b456ec
2013-12-12 20:06:24 +01:00
Michael Stahl 9d71c9a442 winaccessibility: clean up the AGGMAP in CMAccessible
Replace it with a map for the new direct C++ instantiation and move this
implementation detail to the cxx file.

Change-Id: Ia961da03f8eb899481cf02f430c921aa8abd7c5c
2013-12-12 20:06:24 +01:00
Michael Stahl ae5013c566 ure: remove documentation of no longer bundled GCC libraries
Change-Id: I28ca12157fcc918ccb8a87d1d1801908d300eca7
2013-12-11 13:38:52 +01:00
Michael Stahl 741b09c473 ure: remove references to SunStudio C52 filenames
Change-Id: If11655aa56239b9241db43a058244360a8abe1ec
2013-12-11 13:37:52 +01:00
Michael Stahl cfb58670f1 offapi: fdo#69306 tweak multi-paragraph parameter comment
Change-Id: I3d3d7ca09d30f5d9358e48f5a2e030967aa16bc3
2013-12-10 22:26:41 +01:00
Michael Stahl f6f2ee5bdd xmloff: remove unused XMLTimeFieldImportContext::fTimeValue
Change-Id: I0ed6f24d4aae0f62cb63c682322e39e635e49ec8
2013-12-10 21:07:05 +01:00
Michael Stahl cc407e50e8 sax, xmloff: fix ODF import/export of text:time/text:time-value
The value written for an Impress time field is something like
text:time-value="0000-00-00T23:28:07" (in LO 3.5+) or
text:time-value="0-00-00T23:28:07" (in OOo 3.3) which contains an
invalid all-zero date.  Such values are actually rejected by the
ODF import since commit ae3e2f1700.

Actually there was no real support to read the RelaxNG type
timeOrDateTime before.

So fix that by:
- adding convertTimeOrDateTime/parseTimeOrDateTime functions to
  sax::Converter
- recognizing and ignoring the 2 invalid all-zero values written by
  LO 3.5 and historic OOo respectively
- writing a bare "time" in text:time-value if the DateTime struct
  contains zero Date members
  (Older OOo versions and AOO cannot actually read that, but everything
  they _can_ read is invalid ODF...)

Change-Id: I754076caee74a5163ed3f972af0f23796aa14f9f
2013-12-10 15:28:53 +01:00
Michael Stahl 1235e694c2 fdo#70278: editeng: fix Time fields in Impress
Apparenty an uninitialized SvxTimeField is created instead of the
SvxExtTimeField that is needed to preserve the value and format.

(regression from ee5fc5d25f)

Change-Id: I36b16af0c143e8b5451a1925806756492dc2334e
2013-12-10 15:28:53 +01:00
Michael Stahl be3a6f7c4d svl: remove SfxDateTimeItem, which is actually unused
... since 2f44516d6c

Change-Id: I25905a69464a43e12fcbb4770c8b0e171ab3271b
2013-12-10 15:28:53 +01:00
Michael Stahl 7b9c61c7f2 editeng: fix more 32-bit Time breakage
SfxDateTimeItem and SvxExtTimeField need to use 64-bit integer to store
Time as well.  These classes also have binary serialization
Load()/Save() methods but they are unlikely to be used in a persistent
way, just for the clipboard.

The problem is easy to reproduce in Impress: Insert->Field->Time(fixed)

(regression from 9830fd36db)

Change-Id: I5946c5b94dd5a509805b6dc40461bbd910caffc4
2013-12-10 15:28:53 +01:00
Michael Stahl 17dab5bf8e fdo#70198: sw: don't truncate Time values on 32bit platforms
SwDoc::SetFixFields() uses sal_uLong to store Time.GetTime() which needs
64 bits.

Also fix same problem on Time fields in HTML import.

(regression from 9830fd36db)

Change-Id: I5d0388cbc364e1f9dfb60ff9e83c7d2f101c69d8
2013-12-10 15:28:52 +01:00
Michael Stahl 3414013984 sd: PPT export: fix assert on 0-length text portions
Not sure if such are legit, but this should fix the crash.

Change-Id: Idf8a3a67ddae464533d431f1a6a2ebea6d6c2213
2013-12-10 15:28:52 +01:00
Michael Stahl 6692eeca9a svtools: don't dereference invalid iterator
Can be reproduced by opening Data Sources in Writer and closing
document.

Change-Id: I703ceffee3a1896acd06076d8b77085e8785acd3
2013-12-10 15:28:52 +01:00
Michael Stahl cc3341847f sw: fix more cases of SwDrawTextInfo::GetText()/SetText() not restoring
Change-Id: I9625958e4139dd595f269ebac72b9a037118a9f5
2013-12-06 21:20:23 +01:00
Michael Stahl 1050dfbf7d fdo#71714: sw: fix small capitals rendering
So f22006dc6a changed the SwDrawTextInfo
to contain not a pointer but an actual OUString, and then
d908422f57 changes
SwSubFont::DoOnCapitals() thus:

-    const XubString& rOldText = rDo.GetInf().GetText();
+    const OUString& rOldText = rDo.GetInf().GetText();
     rDo.GetInf().SetText( aTxt );

That used to _copy_ the string, but now it just references the
member, and so the SetText(aTxt) below overwrites rOldText.

Change-Id: I06d7ee7084c15d88b3e748ef18877b62e79bdd0e
2013-12-06 21:20:22 +01:00
Michael Stahl 2e7bb8d126 fdo#71866: sw: un-break index updates
SwTOXBaseSection::GenerateText() wants to operate directly on
SwTxtNode::m_Text and accepts no substitutes such as a temporary string
on the stack; this regression shows that developers often
significantly underestimate the craziness of the existing code.

(regression from d6e321f826)

Change-Id: I01b831f35a52bde207a7db8cae9d4aadb826b2d8
2013-12-05 23:25:37 +01:00
Michael Stahl 4580094d2d fdo#71892: sw: fix crash when pasting table in footnote
The code that updates RSIDs assumes that the number of nodes copied is
the same as the number of nodes inserted, which is not true when pasting
a table into a footnote because Writer can't do that, hence all table
nodes are missing.  Count inserted nodes instead.

(regression from 062eaeffe7)

Change-Id: I77b5b7751d1036a6401f708532537d874969502e
2013-12-05 23:25:37 +01:00
Michael Stahl fb9d14f6a6 RTF: use "InsertMode" insead of "IsNewDoc" for consistency
... with other filters.

Change-Id: I563d6f7713d882b834978699c492a43a70e072cd
2013-12-05 13:00:28 +01:00
Michael Stahl c5138cad87 fdo#68724: sw: fix crash on Insert->File with Hybrid PDF
This is an unfortunate combination of 2 special cases:
- the Hybrid PDF has its own XFilter implementation to extract the
  embedded ODF document
- Writer needs to create a SwReader with SwPaM for Insert

Since the PDF XFilter uses a special service in sfx2 to implement
the import, handling this requires a new method in SfxObjectShell
that calls back into Writer to create the properly setup SwReader.

Change-Id: Ie85f3bfa322bfe883c479e1cb198a8bf0cbbac23
2013-12-05 13:00:27 +01:00
Michael Stahl de45a49273 sdext: clean up some pointless #ifdefs
Change-Id: Ic23c0ccc45d7a98b3581feab43fc4c8c8aef9013
2013-12-05 13:00:26 +01:00
Michael Stahl d1539f9181 sfx2: SfxItemPtrMap is used only in shell.cxx
Change-Id: I9f76a114fcdf761ddaaf40666e4330d20ca72b98
2013-12-04 15:39:59 +01:00
Michael Stahl 5e4c26918a SfxDispatcher: move implementation details out of header file
Change-Id: Ia831da45c00554086dc692997130688c0b3e28f5
2013-12-04 15:39:59 +01:00
Michael Stahl 37d9edc4a7 vcl: d'oh /me still to dumb to type
Change-Id: Ie8a5b7493c08a0a63f2791d3cfb00b490609eb7c
2013-12-03 21:20:33 +01:00
Michael Stahl c4d79527ce vcl: fix sal_Int32 GetTextBreak harder
Change-Id: I75181d12ca8b883055e5314504633af38b5e49c7
2013-12-03 21:09:43 +01:00
Michael Stahl af43ae6f85 vcl: try to fix some sal_Int32 GetTextBreak()s
Change-Id: If4aee2b42f0d2e15ca228863754959b7486437ee
2013-12-03 20:30:08 +01:00
Michael Stahl b6785eb595 sax: stop using SAX_DLLIMPLEMENTATION for both sax and fastsax
Change-Id: I243ec20015beec6b98ee0af55eb7c387008f32f1
2013-12-03 13:29:35 +01:00
Michael Stahl 4c9ddd594e SwAccessibleFrameBase::Modify(): avoid accessing deleted mpFrm
In ~SwDoc when a SwFmt is deleted,
SwAccessibleNoTextFrame::GetNoTxtNode() would access the mpFrm which
at that point was already deleted too; avoid that by returning early.

This can be reproduced by closing the bugdoc from fdo#71450.

Change-Id: Ide4d42511ccad116fa0362c23ced299d8430d08a
2013-12-03 13:29:35 +01:00
Michael Stahl c6f3d909f8 sw: valgrind complains about uninitialized mbIsPrepareSelAll
Change-Id: I5405a6818fc63c3e29bb189858fd0abc73f67e43
2013-12-03 13:29:34 +01:00
Michael Stahl 8171e713e7 fdo#71450 fdo#71698: ODF import: fix frame name corner cases
Trying to set a name that is already in use will throw an exception (and
set a different, generated name); if there is actually no name in the
file then there's no point trying to set anything.

(regression from b69d152cfa)

Change-Id: Ie54d4a830cc23e2853a6efeb81f77dcc788192ea
2013-12-02 23:37:12 +01:00
Michael Stahl 790896d9a5 fdo#71749: sw: WW8: don't loop on tables in footnotes
(regression from ee1db992b9)

Change-Id: Id10b6fb8e9e3697b10a1df605cb48d94a55ad207
2013-12-02 23:37:11 +01:00
Michael Stahl b44ed4c408 vcl: check if AT is running before loading the library
... which should result in faster startup if it's disabled.

Change-Id: I39774b0a56f186d08270c2f17b2b20a823f21dc2
2013-12-02 13:18:04 +01:00
Michael Stahl fabca7370e winaccessibility: remove global g_acc_manager
It is possible to retrieve it via the AccTopWindowListener.

Change-Id: I6cc5ab25bc937d0d9f4de54a1bed09a76ce27491
2013-12-02 13:18:03 +01:00
Michael Stahl b54d441ad7 Revert "winaccessibility: let CoCreateInstance calls find the components"
This only works partially: the ClassObjects are only registered on the
main thread; CoCreateInstance on other threads still fails.

This reverts commit 29c6216af8c502f220bb84857d3dda901ddfd234.
2013-12-02 13:18:03 +01:00
Michael Stahl d0e8e6e3cd winaccessibility: fix my stupid mistake in createAggInstance
Change-Id: I7701021befcf1dbad85557c2095fe4bf0b4e0ff1
2013-12-02 13:18:03 +01:00
Michael Stahl db21468405 vcl: fix crashes when retrieving objects for MSAA
The ImplHandleGetObject() function modifies the Application Settings and
must take the SolarMutex for this; otherwise we get crashes when another
thread calls StyleSettings::GetPersonaHeader() during some unoapi test.

Also fix another HWND to long cast; use LRESULT which is Win32 for intptr_t.

Change-Id: I5580f88ed0a8e9955697655ace94584e2307982d
2013-12-02 13:18:03 +01:00
Michael Stahl f0d93fab3e add dummy oglcanvas::SpriteCanvas::copyRect so this compiles...
Change-Id: I5c6986b4c765c8328cacb84ce84cc99eb6871d0a
2013-11-28 22:06:55 +01:00
Michael Stahl 0fb33f60ac winaccessibility: improve GenerateNewResId()
Change-Id: I81f98ca83b97bc2e3e419c7a37ad2a011932553b
2013-11-28 00:59:53 +01:00
Michael Stahl e094d6fab6 winaccessibility: remove GetXAccByAccObj()
It is pointlessly slow and the AccObject has a method for that.

Change-Id: I7ba1cc853255ac3b3b5008657d1cc79efc3a3f4b
2013-11-28 00:59:52 +01:00
Michael Stahl a2afe344c6 winaccessibility: remove AccEventListener::m_isDisposed
It's disposed iff m_xAccessible is 0.

Change-Id: I3f8bc104784adf82be43bcaf43b7573a9897f82a
2013-11-28 00:59:51 +01:00
Michael Stahl 83ccdb0285 winaccessibility: use uno::Reference in AccEventListener
... and clear it in disposing().

Change-Id: I69cfe3cdcf6549a0471453960d1f935d9c3b7a0d
2013-11-28 00:59:51 +01:00
Michael Stahl ef3f28d0ce winaccessibility: use rtl::Reference for listener lifecycle
The manual acquire() call was apparently not coupled with a release()?

Change-Id: I069c969619e9afce2a4b836642cc1675025b11d0
2013-11-28 00:59:50 +01:00
Michael Stahl 576ba8ce82 winaccessibility: actually the member is unused, remove it
Change-Id: I68e5c1785b73520cb59ca54a602ea176f8146f6f
2013-11-28 00:59:49 +01:00
Michael Stahl 887cf7ccc6 winaccessibility: don't store XAccessible* in AccDescendant...Listener
Seems safer to store a Reference

Change-Id: I86ef9d18c03b2a58058d38e2ae43553ecd2c7be6
2013-11-28 00:59:49 +01:00
Michael Stahl b24957e812 clean up some COM initialization
CoInitialize{Ex] always exist in all supported Win32 versions, so just
call them.

Change-Id: I45f227319aae811b6c94a3ac475467a06146b8e9
2013-11-28 00:59:48 +01:00
Michael Stahl 95759ff2c0 winaccessibility: why delayload the dlls?
Perhaps delayloading the URE dlls makes it easier to register the
UAccCOM.dll during installation or something? Well we don't do that any
more.

Change-Id: Ic7c356f5954f869c8752aab2563f059a27ef731f
2013-11-28 00:59:47 +01:00
Michael Stahl 2e243de288 winaccessibility: README already outdated
Change-Id: Id0defc7e4fbe5b700362548559e08163a327399b
2013-11-28 00:59:46 +01:00
Michael Stahl 455c39645e winaccessibility: remove all Registry content/registration code
There is no need to register UAccCOM.

Change-Id: I37f5c4030abefbd18b6686652a348bc20a05a9db
2013-11-28 00:59:46 +01:00
Michael Stahl 5e7b29e642 winaccessibility: remove obsolete act.hxx
... obsoleted by 732ec36edf

Change-Id: I7f7a9becac2430a7ed4d096be741b610462a8a00
2013-11-28 00:52:21 +01:00
Michael Stahl dfe593b30a sc: no such thing as std::vector::find
Change-Id: I11bb688a8e0affda9ed78a61d9aba3d244914f8c
2013-11-27 20:51:49 +01:00
Michael Stahl a74b3e89c9 QueryDeleteDlg_Impl: add GetResult() that was removed in ...
02d4eb7438

Change-Id: I45b5691a3dc4cf2444e0daf8cb2ae0134532f596
2013-11-27 20:47:18 +01:00
Michael Stahl 6aefcb6a6f forms: avoid deadlock when setting FontControlModel properties
Deadlock found in forms_unoapi on Windows, with
OGridControlModel::setFastPropertyValue_NoBroadcast() calling event
handler that tries to lock SolarMutex.

FontControlModel::setFastPropertyValue_NoBroadcast() and its callers in
3 other classes must not send events via firePropertyChange()
because they are called by OPropertySetHelper::setFastPropertyValues()
with its Mutex locked.

It is possible (though sadly quite convoluted) to delay the sending of
the events by calling setDependentFastPropertyValue() instead.

Change-Id: I0c767cfec01fe1bcaeb1236287b5faf81a2e7441
2013-11-27 17:20:31 +01:00
Michael Stahl e521a803c9 FontControlModel::convertFastPropertyValue: fix bad cast of Kerning
Casting sal_Bool to integer lets the comparison always fail.

Change-Id: I33cf9e9b6a65f81166870bdfe32e9a97101501df
2013-11-27 17:14:23 +01:00
Michael Stahl 37d7a59a3b adapt sfx2 UndoManager test to renaming from "click" to "press"
RID_STR_ACC_ACTION_CLICK in efb23f2998

Change-Id: If684816602db38fa87b6272c0491ab2ac910aece
2013-11-26 23:09:32 +01:00
Michael Stahl 38c4e94666 remove executable bits from .java files
Change-Id: Id36b1d56553a413ab9b4d82fe6f65185f4f6fc00
2013-11-26 23:09:32 +01:00
Michael Stahl 6e98b8e35d writerfilter: std::map::erase(const_iterator) is C++11 only
Change-Id: I3959fe8341b053116e8c3d898da02c82f4118203
2013-11-25 22:36:09 +01:00
Michael Stahl 6e4a4af525 filter: un-break the SWF export dialog
The mpResMgr is no longer initialized but still checked.
(regression from 191dc43f97)

Change-Id: I8330a74e9209eaca1fee70e7b8ba332482fa0c1d
2013-11-25 20:37:24 +01:00
Michael Stahl 7ad1c4356b dbaccess: improve exception message when no driver found
Change-Id: I1734034e05324eb0d66fd52444b0521d4143bc12
2013-11-25 15:01:17 +01:00
Michael Stahl 3b86569fcb winaccessibility: replace CoCreateInstance with direct instantiation
This is an alternative (to 732ec36edf)
solution to the "CoCreateInstance does not work" problem:
replace all CoCreateInstance calls with equivalent calls to create
the components directly.

Since the only reason why this COM stuff needs to be registered
at all is that AccObject uses CoCreateInstance() to create its
COM objects, another possible solution appears to be to simply link
the libraries and instantiate the COM objects directly, without COM.

The only difference appears to be that CoCreateInstance would
automatically add proxy objects in case the COM objects reside in a
single-threaded appartment; not sure if that is relevant here.

Change-Id: I8ffb8af501f6084f3145fa4d4f53366a070e1691
Reviewed-on: https://gerrit.libreoffice.org/6792
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2013-11-25 03:21:30 -06:00
Michael Stahl 732ec36edf winaccessibility: let CoCreateInstance calls find the components
The COM services are not found because they are not registered in the
registry via regsvr32 (doing that is unnecessary since the components
are only instantiated by winaccessibility code and undesirable since
that would likely register the IAccessible2 types too, breaking A11y
tools) and the special manifest resource #97 that ActivateActContext()
tries to load does not exist in UAccCOM.dll; this would need to be a
XML manifest, the *.rgs and *.tlb that are already included as
individual resources won't work.

After reading ATL headers for hours it is immediately obvious that the
COM components can simply be registered by a call to
CComModule::RegisterClassObjects() from DllMain; this just requires
actually loading the UAccCOM library from somewhere so the DllMain runs.

Change-Id: Id58b754835cd2f1bcada37e5639a6b6042a42fd5
2013-11-24 01:02:46 +01:00
Michael Stahl d04c970e8f winaccessibility: fix some error handling in CAccTable
Change-Id: I3c8bc6a476a6254a4ddc3a7cb0585544f3f78431
2013-11-24 01:00:53 +01:00
Michael Stahl ccb1e06bdb winaccessibility: don't need 2 global pointers for AccObjectWinManager
Sadly can't use rtl::Static because it needs a ctor parameter...

Change-Id: I98bbfbb4d2ef54f40a5f110527b260c0b5b01eed
2013-11-24 01:00:53 +01:00
Michael Stahl a5e281ff04 winaccessibility: make XAccessibleAction member Reference
Maybe it would be kept alive by AccObject::m_AccActionRef but why not
play it safe.

Change-Id: I03c2be04e97dcde8a177ef8dfd0d75595ab13a53
2013-11-24 01:00:53 +01:00
Michael Stahl 58ab523986 winaccessibility: CMAccessible needs only one XAccessibleContext
Merge aliases pRContextInterface (unused) and pRContext; this is
exacerbated by countless local variables pRContext that shadow the
member...

Change-Id: I6bc71911fb41a2ce2590d614020ecea36d6ab4f8
2013-11-24 01:00:53 +01:00
Michael Stahl fd2877ee09 winaccessibility: CMAccessible needs only one member for XAccessible
Merge aliases pUNOInterface and pRef; also pAchorUNOInterface is never
used.

Change-Id: I1b3841a9aca9d2438b25c66c7f67d09ce13b41f9
2013-11-24 01:00:53 +01:00
Michael Stahl 7ab15103b7 connectivity: use "application/x-dbase" for DBase files
... which is what we already use in calc.desktop; also
"application/dbaes" is not registered at IANA.

Change-Id: Ic2031a53e6620d10874df8882448497564962114
2013-11-23 16:03:11 +01:00
Michael Stahl 75675f1334 helpcontent2: revert accidental reset
Change-Id: Ia33fae872cf52d14a3faa186a4792d1e91b7962d
2013-11-22 12:27:43 +01:00
Michael Stahl 31b91f6f8a --enable-ia2 no longer disables Java access bridge
Just install both; 448727e598 already made
IA2 an experimental feature with fallback to Java access bridge if
experimental mode is disabled.

Change-Id: I4ca64adbc586bd87b4d28087709f5c2e02bf7990
2013-11-21 15:14:43 +01:00
Michael Stahl deb249e1b3 Makefile.in: "make check" should build "all" too
Change-Id: I6b72c3deb1a056149e965b78d12d3c37c6bfd5b9
2013-11-21 13:12:33 +01:00
Michael Stahl d47e869c7e winaccessibility: "typedef sal_Int32 HWND;" - sigh...
Change-Id: I5c51652932537cfb200183c30c5c1d954586f8fa
2013-11-21 00:41:09 +01:00
Michael Stahl a36d446591 winaccessibility: fix even more pointless HWND to long casting
Change-Id: I16a39a0dde27b17f1467a9605a4566b05f53a485
2013-11-21 00:41:09 +01:00
Michael Stahl 77f94ded7a winaccessibility: pass pointers as "hyper" in the COM IDL
Change-Id: I083589fd57540e3b4ec488aeb84bc92dddc02d36
2013-11-21 00:41:09 +01:00
Michael Stahl 8530048bb5 winaccessibility: use sal_Int64 for pointers in AccObjectManagerAgent
Also use bool instead of random integer types.

Change-Id: If4da5f6b7986231312438142c9ea953d761c6745
2013-11-21 00:41:09 +01:00
Michael Stahl c70fd83a91 winaccessibility: clean up global TopLevelWindowListener
Apparently the life-cycle of this global variable is tied to the
MSAAService anyway, so just make it a member of that.
Also it appears that the FreeTopListener function would call release()
but at the place where the global variable is assigned acquire() was
missing.  Using a rtl::Reference should fix this up too.

Change-Id: I6dd305dfd990d7fd4c54b16d971700b88470dc43
2013-11-21 00:41:08 +01:00
Michael Stahl 07d4ae3960 --enable-ia2 disables building java-bridge, so disable packaging it too
Change-Id: I7e3b2d47af9a9b91b22df43fc56cdfd3522de6d8
2013-11-21 00:41:08 +01:00
Michael Stahl 806451556a setup_native: warning C4005: macro redefinition
Change-Id: I34bea8aaedec8df47874c5230c87455aa1ce6883
2013-11-20 16:33:26 +01:00
Michael Stahl 776f48eb97 Revert "fdo#67060 do not package RPM-only install script to DEB packs"
Put back the definition of WITH_RPM: otherwise a build
--with-pkgformat=archive fails since the scripts/install is not built.

Leave in the change to installer that should fix the original DEB bug.

This reverts commit 4f995b395e.

Change-Id: I0cf4ba003237c66dfb7a0677d6a32a69f8203c6b
2013-11-20 15:39:40 +01:00
Michael Stahl fa604beee3 gbuild: TARGETGUI variable must be set on all LinkTargets
... otherwise it will get inherited from Executables to StaticLibraries
and then mt.exe will be unhappy and complain.

Change-Id: Ic9cc32ea3d0fb5d1fe91c1e9efa354fdf30c8264
2013-11-20 15:20:00 +01:00
Michael Stahl 397af236af gbuild: MSVC 2012 does not like /pdb for static libraries
Complains with warning LNK4044 and ignores it.

Change-Id: Ie91369339d121a652ce51e9229c3ef3b1c39d214
2013-11-20 15:20:00 +01:00
Michael Stahl ba1c6c94fc editeng: warning C4805 unsafe mix of type sal_Bool and type bool
Change-Id: I88fc77ea6c0b6a7c02d0b7eff64d8fdd3db6020e
2013-11-20 14:37:10 +01:00
Michael Stahl 4757ed4355 winaccessibility: XMSAAService could only work on 32-bit
... so replace all long with hyper to fit in 64-bit pointers.

Change-Id: Ia5c044e8d7cc8c4e55f1ef8c0fb0f91bb9a69e1c
2013-11-20 01:33:42 +01:00
Michael Stahl 3e1c7d12ee winaccessibility: replace mysterious and inexplicable locking strategy
Do the conservative thing and lock the SolarMutex at every UNO API entry
point.

Change-Id: I51afffada975df7ee3435784aa050a2c19cd0ac8
2013-11-20 01:33:42 +01:00
Michael Stahl ed750424f7 winaccessibility: remove some pointless overrides
Change-Id: I9a215d71bfeec9feed9d7f27fb1a47d36c827ef0
2013-11-20 01:33:42 +01:00
Michael Stahl 2fb80b6d30 winaccessibility: make listener methods a bit more obvious
- disambiguate overloading
- only use SAL_CALL for UNO methods, and non-UNO methods start uppercase
- use SAL_OVERRIDE

Change-Id: Ib57adad65b2b8e8246b103ff77ce162b0b540422
2013-11-20 01:33:42 +01:00
Michael Stahl 18f37ebc69 winaccessibility: remove IsXPOrLater
XP is the baseline already so no need to check for it.

Change-Id: I5737213d647d1aea9b9fa918d87b712d3a920156
2013-11-20 01:33:42 +01:00
Michael Stahl a47b9828f9 winaccessibility: remove pointless default less functors
Change-Id: I5819d733b76c916058698b5e5b8ee338dcf25723
2013-11-20 01:33:41 +01:00