Commit graph

307687 commits

Author SHA1 Message Date
Thomas Arnhold
5fcecf9b88 hrc cleanup: Remove unused defines
All of those defines (should) not be used at any point in the code.
False positives may exist, because some macro names are getting
generated by some template/macro foo. This is the version which
compiled fine for me.

Also there are many commented out lines removed.

Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8
2012-06-21 11:54:18 +02:00
Thomas Arnhold
47009fbf51 Remove unused dbexch.hrc
The only part where one definition was used was commented out.

All other definitions in the hrc file were unused.

Change-Id: I257e61b96271685e9321211846a0021059924abe
2012-06-21 11:54:18 +02:00
Ivan Timofeev
db053e48d2 fdo#34093: fix error in calculation of page number of SwRect
StringRangeEnumerator (i.e. user's input) contains page numbers in a different
page range (it excludes empty pages). So:
- first map page numbers to a common range, then compare
- user's input can't contain empty pages, remove this check

Change-Id: I4fce5215272fc90f39c9e05d3f3604734a8aebe3
2012-06-21 11:18:05 +04:00
Ivan Timofeev
5f690158d1 convert array to std::vector
Change-Id: I5e5bcebeb804256d0ad8cf6afafc392b2853b88f
2012-06-21 11:18:04 +04:00
Ivan Timofeev
df59e1d5bd no need to be a class member
Change-Id: I230e8972340b409c6da70a4c988ac1d531a9f3b5
2012-06-21 11:18:04 +04:00
Ivan Timofeev
1b7e9855d9 remove misterious NextToolbox functionality
Change-Id: Ic64d2cae56787884ff107b78c3b6567ab5d38785
2012-06-21 11:18:04 +04:00
Ivan Timofeev
5e0acb9022 so many code to just add a minimal border in the gallery
Change-Id: Id7349d1ff6547afe0f46404340b20132b97ce854
2012-06-21 11:18:03 +04:00
Andras Timar
c66efa24eb fdo#51270 fix RemoveExtensions custom action
FINDPRODUCT property was not available to this deferred custom action.
Not to mention that registry keys are also deleted at his stage of uninstallation.
The proper solution is to set the installation directory with a type 51 custom action,
and pass it to RemoveExtensions custom action via CustomActionData property.

Change-Id: I0ac18b3a0b19ff1a87bcf580fad9c7fdadb26f76
2012-06-21 09:15:24 +02:00
Michael Stahl
d3fe01de1e fix problems in 1015cd4ff7:
- inverted check in SwDoc::RemoveInvisibleContent
- various too short end positions in DeleteAndDestroy calls in
  SwDoc::~SwDoc and SwDoc::ClearDoc
- std::copy to begin() of empty vector in SwReader::Read replaced
  with std::back_inserter; the vector is used as a set here so the
  end position should work just as well

Change-Id: Ib2ddd788fade4ee1a8beb702d5321c503985fba4
2012-06-21 00:20:03 +02:00
Michael Stahl
38ebb2f94f don't link CppunitTest_sw_swdoc_test against sw
This test uses gb_CppunitTest_use_library_objects, and MSVC won't link
it now. Seems this was added in 1015cd4ff7,
but why?

Change-Id: I206132cf2b0c4075334ee7a692a12c54da9ac953
2012-06-20 22:41:47 +02:00
Noel Power
6ea4e42eaa gah :/ some cleanup for 7fff9872 that I applied to wrong source tree.
Change-Id: I91d84a7a8d8f18883798541e6a171ea91f135edb
2012-06-20 21:18:29 +01:00
Noel Power
7fff98724b big formula performance improvement for xlsx import (bnc#763168 & bnc#765942)
we get a large performance win by evaluating the formulas at the end of import where we can set up the ScAutoNameCache cache.

Change-Id: Id3763afb805eb9bfa9a6a55e1de3923f02e621ae
2012-06-20 21:01:13 +01:00
Michael Stahl
0e73f3cbe1 move ScNamedEntryArr_Impl out of header to make MSVC happy
Change-Id: Ia521752c4c71cc7df2bb7fc4659fcf6ec528e5bc
2012-06-20 21:33:42 +02:00
Michael Stahl
7092fc0300 adapt DBG_UTIL code to previous commit
Change-Id: I021b4d70a02de7a66e0af82a859ae89e1a7d1231
2012-06-20 19:46:40 +02:00
Noel Grandin
d69fdd1ed6 Convert SV_DECL_PTRARR_DEL(SwTableLines) to std::vector
Along the way, simplify a lot of the ForEach callback methods.

Change-Id: I54bc87c1060f1d73470ca8b7fd645ffa23059606
2012-06-20 19:46:40 +02:00
Noel Grandin
05d46a4a5a Convert SV_DECL_PTRARR(SwTOXMarks) to std::vector
Change-Id: Idffc8a90fcd4ada856339fc0be3e4a11478db6cc
2012-06-20 19:46:40 +02:00
Noel Grandin
36387c8c79 Convert SV_DECL_PTRARR(SwSttNdPtrs) to std::vector
Change-Id: If85e2bc65a99e4854d92454b3bfd40e436df2aa1
2012-06-20 19:46:39 +02:00
Noel Grandin
5baef2f4d8 Convert SV_DECL_PTRARR(SfxObjectShellArr_Impl) to std::vector
Change-Id: I9f26d380526c63a8b86b42a5b0b74a7cfff71249
2012-06-20 19:46:39 +02:00
Noel Grandin
af50c7d9ce Convert SV_DECL_PTRARR(SfxViewFrameArr_Impl) to std::vector
Change-Id: I3b6f41b97d1fc375985465ea9e5c0cca9e05ba10
2012-06-20 19:46:39 +02:00
Noel Grandin
20aa56cc71 Convert SV_DECL_PTRARR(SfxViewShellArr_Impl) to std::vector
Change-Id: I91c33be902e20f72623c3d9642057db5eb6e30ba
2012-06-20 19:46:39 +02:00
Noel Grandin
59713265ec Convert SV_DECL_PTRARR_DEL(SfxTbxCtrlFactArr_Impl) to std::vector
Change-Id: I2e80e17ed79e156bcfe379ddc5b11fd2cb2804d2
2012-06-20 19:46:39 +02:00
Noel Grandin
eb1204ef44 Convert SV_DECL_PTRARR_DEL(SfxStbCtrlFactArr_Impl) to std::vector
Change-Id: Id2f35eba75628ed1bc1080e9671378e461e84233
2012-06-20 19:46:38 +02:00
Noel Grandin
a1cedf2b1e Convert SV_DECL_PTRARR_DEL(SfxMenuCtrlFactArr_Impl) to std::vector
Change-Id: I65b6f6e1f615c8f6e778b10945c60a28875d88ba
2012-06-20 19:46:38 +02:00
Noel Grandin
0b784bd641 Convert SV_DECL_PTRARR(SfxModuleArr_Impl) to std::vector
Change-Id: I905d17fbbda11199065237b396c52bacc481e414
2012-06-20 19:46:38 +02:00
Noel Grandin
7f91d56e07 Convert SV_DECL_PTRARR_DEL( SfxChildWinFactArr_Impl) to std::vector
I couldn't use ptr_vector because some of the code deletes
entries without deallocating them.

Change-Id: Iafbb19dc8ca9f8337169e116d47dcf0ccf78ed0e
2012-06-20 19:46:38 +02:00
Noel Grandin
1eb38e26bf Remove dead DECL_PTRARRAY(SfxFilterArr_Impl) declaration and member
Change-Id: I49cefb7e4b8df0f9b95b7a3ef2beaf2d8c0c98e7
2012-06-20 19:46:38 +02:00
Noel Grandin
33f5324ff6 Convert SV_DECL_PTRARR(SfxFrameArr_Impl) to std::vector
Change-Id: I29d7b6f55f227f11abbf7e41fba3ffd7af85f268
2012-06-20 19:46:38 +02:00
Noel Grandin
0a2392450b Convert SV_DECL_PTRARR(SfxUnoControllerArr_Impl) to std::vector
Change-Id: I15f7449c8bf0b1d93c7185687d833136d6fbc26f
2012-06-20 19:46:37 +02:00
Noel Grandin
a0d3a91149 Convert SV_DECL_PTRARR_DEL(ScNamedEntryArr_Impl) to boost::ptr_vector
Change-Id: I92492e051d859537b140ccebe279e09ba4eed566
2012-06-20 19:46:37 +02:00
Noel Grandin
a01789ec7c Convert SV_DECL_PTRARR_DEL(BibToolBarListenerArr) to boost::ptr_vector
Change-Id: I851a3ef2bda7f427f6562ed946c7889c97ad83a0
2012-06-20 19:46:37 +02:00
Noel Grandin
c513264f19 Convert SV_DECL_PTRARR_DEL(BibStatusDispatchArr) to boost::ptr_vector
Change-Id: I3a09158ee1d864d3185b015d344391a60a926b65
2012-06-20 19:46:37 +02:00
Noel Grandin
b5f66b2d09 Convert SV_DECL_PTRARR_DEL(MappingArray) to boost::ptr_vector
Change-Id: I12762582ccf871828e27900f643fcbe4b59dbbf3
2012-06-20 19:46:37 +02:00
Noel Grandin
01f3121748 Convert SV_DECL_PTRARR_DEL(XResultListenerArr_Impl) to ptr_vector
Change-Id: Id557b0116ec2574ef3e11a0664fb408ecc850e6e
2012-06-20 19:46:36 +02:00
Stephan Bergmann
b64c730520 Adapt DBG_UTIL code to 1015cd4ff7
Change-Id: I196f7a6211a3c11d976a95d592af4205476fe81f
2012-06-20 18:18:43 +02:00
Stephan Bergmann
104567a534 Show backing window instead of empty writer upon an "empty session"
...(i.e., after logging out of a session with soffice still running, but only
with the backing window still open).  The key issue was that bSessionDataExists
would always be true if /org.openoffice.Office.Recovery/RecoveryInfo/SessionData
is true, even if /org.openoffice.Office.Recovery/RecoveryList is empty.  Always
calling doRestore (unless bExistsRecoveryData, but even if !bExistsSessionData)
is there to ensure that /org.openoffice.Office.Recovery/RecoveryInfo/SessionData
is eventually reset (whether or not that is really necessary).

Change-Id: I9c3fff23f8019069f36e1dd5ded634ea1917bbd4
2012-06-20 18:06:38 +02:00
Stephan Bergmann
796d273925 Clarify SIGHUP behavior
The combination of marking it as ACT_IGNORE and osl_Signal_Terminate was
strange, as osl_Signal_Terminate caused SalMainPipeExchangeSignal_impl
(desktop/source/app/officeipcthread.cxx) to call DisableOfficeIPCThread, but
ACT_IGNORE (instead of ACT_EXIT, like other signals marked osl_Signal_Terminate)
caused the process to continue running.  The net effect was that calling an
additional soffice instance after a SIGHUP would no longer connect to the first
instance, but instead would lead to two soffice instances running simultaneously
on the same UserInstallation.

Marking SIGHUP as ACT_HIDE most closely resembles the old behavior (of having
~no effect).  Other options would be to mark it as ACT_IGNORE and
osl_Signal_System or as ACT_EXIT and osl_Signal_Terminate, which would both
result in instant termination.  I do not know if that wouldn't actually be
better.

Change-Id: Id1ee7c1108765301e6010e0e05d6c1ff5894a414
2012-06-20 18:06:38 +02:00
Takeshi Abe
bf729a27bd removed useless InsertFunctions.hxx
Change-Id: If3a6dcd2216cbac63b43fb393af37206e8730a20
2012-06-21 00:05:07 +09:00
Noel Grandin
1015cd4ff7 Convert SV_DECL_PTRARR_DEL of Sw*Fmts to std::vector
- I had to convert SwFrmFmts, SwSpzFrmFmts, SwCharFmts, SwSectionsFmts,
  SwTextFormatColl, SwGrfFmtColl all together because of the code that wants
  to work with any of them.
- Introduce a pure virtual base class SwFmtsBase, since there are a handful
  of methods that want to work with any of the std::vector<Sw*Fmt> types.
- the class SwSpzFrmFmts was dropped, and the code changed to use SwFrmFmts
  instead, since the 2 types are identical.

Change-Id: I8c4056b5aedd574a33666e2d649a8b849958441c

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-20 16:48:03 +02:00
Philipp Weissenbacher
ccfc7bd12d Translate German comments, fix some ws
Change-Id: Ic8f3885965a46cc7cea891472f7d902254004543
2012-06-20 16:08:49 +02:00
Miklos Vajna
f3ed8b8b15 oox: mso-wrap-style is about wrapping mode for text in shapes
This commit partially reverts 9e8957de20
(as it interpreted mso-wrap-style as the wrap type of the textbox
itself, not the wrap type of the contained text) and also extends the
effect of commit 0016757efe to the
SimpleShape class as well.

Change-Id: If2bded6ad94f2866e8ea398ff0f2792e8c8e86b0
2012-06-20 15:46:17 +02:00
Christophe Christophe Marion
c4a3adc99c Remove some useless memset(0) 2012-06-20 14:32:15 +01:00
Eike Rathke
209f1cdc93 adapt callers of getCurrFormatsImpl() to changes
06e2005ed8 changed String to OUString and
initialized some variables with -1 instead of STRING_NOTFOUND, which was
unsigned 0xffff so var1<var2 was true if var1 had a value other than
default and var2 was default. After the change the comparison had logic
reversed and the result was a default negative currency format with
parentheses for all locales.

Change-Id: I3fe49fed7c1047618dc653fce992eb01582c398d
2012-06-20 14:53:37 +02:00
Stephan Bergmann
bd91d9319e Avoid deadlock when signal handler joins thread
...as the signal can potentially be delivered to the to-be-joined thread.  (It
is unclear to me whether the SalMainPipeExchangeSingal_impl handler is really
needed anyway, as there are various other places that should ensure that
DisableOfficeIPCThread is called during shutdown.  At least in theory, no longer
joining here can cause the thread to incur crashes etc. when it it still running
during shutdown.)

Change-Id: I677a2e31e1a58d2b8d91634c2eb5274d63ac15f4
2012-06-20 14:44:05 +02:00
Stephan Bergmann
97beabccb7 Work around false valgrind warning about optimized strlen implementation
...that reads in word sized chunks and thus can read past the nominal end of
a memory buffer.  Also, the return type of rtl_str_getLength (sal_Int32) fits
better with the type of SmPropValue.length (int) than the return type of
strlen (size_t).

Change-Id: I7ff91408b4c6d8c9913cede516586f42b8349ed3
2012-06-20 14:44:05 +02:00
Stephan Bergmann
c0823c29a0 pOldStyleSaveFrame is never set anyway
...so rip out all the corresponding, apparently obsolete, functionality.

Change-Id: Ie1ca3fcf7f729464e4c11070caafc90a34da2d68
2012-06-20 14:44:05 +02:00
Stephan Bergmann
5c9872de88 Move IceSalSession declaration to sm.cxx
Change-Id: I532e27b873e011aacebc1dd405de6d2e182ca3d4
2012-06-20 14:44:05 +02:00
Stephan Bergmann
34a3f6e8b7 Move pOneInstance to SessionManagerClient::m_pSession
Change-Id: I264d978fe3db9ab7eedf79351f70cee194ef792c
2012-06-20 14:44:04 +02:00
Stephan Bergmann
c83a393ffe Clean up how nStateVal is smuggled in
Change-Id: Ib27bce3d6d20dd8ea81dc51f1501774cd313b5da
2012-06-20 14:44:04 +02:00
Stephan Bergmann
43a8d203d8 Mutex lifecycle must encompass WeakComponentImplHelper base
Change-Id: I98a9a22ce1e937b20bcd3b59b4e6677a5a60f762
2012-06-20 14:44:04 +02:00
Stephan Bergmann
e100891fec Some clean up
Change-Id: Ib8ed8c866eece8a57a5532a65d1229e5dd92a422
2012-06-20 14:44:03 +02:00