Commit Graph

448 Commits

Author SHA1 Message Date
724b48d877 extent .ui loading to SfxFloatingWindows
Change-Id: I3e16ef8455b35faf14838509f315cb2f70e7cb9a
2014-09-02 12:14:43 +01:00
024f334c48 Revert "fdo#44081 don't remove 'edit' pop-up menu entry from form in design mode"
This reverts commit 15cea073e7ed4970e60967fe036fc492e2052203. I
overlooked the fact during review that this introduces an svx <-> sfx2
circular dependency.
2014-09-01 10:42:12 +02:00
15cea073e7 fdo#44081 don't remove 'edit' pop-up menu entry from form in design mode
Change-Id: I9700d0d729a8f2d1255fcd03a07e05799e21f8d0
Reviewed-on: https://gerrit.libreoffice.org/11152
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-09-01 03:20:52 -05:00
c6270de939 fdo#80538 Show an infobar when document is in read-only mode
and remove the Edit icon from the toolbar

Change-Id: I27d9506bd0fb76b3f1ad056a9866f7744674a3e2
Reviewed-on: https://gerrit.libreoffice.org/11182
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2014-08-29 03:42:38 -05:00
6a39fdf81f callcatcher: update unused code
Change-Id: I6cb74836f98d7507359f39e1fd03a1462b2e0c31
2014-08-28 09:50:33 +01:00
53617c8651 callcatcher: update unused code
Change-Id: Idaed255e4f004ad555ccbd6ba9dc29bf522d3c5f
2014-08-27 10:18:31 +01:00
088b22cdf4 Remove some unused macros
Change-Id: Ic8395cc31845e510b6ef5fb2a1d5f66534295012
2014-08-26 23:21:06 +03:00
fe7d0ea643 convert sw use of template manager to new manager
this completes the conversion of resource hosted
dialogs and tabpages to .ui gtkbuilder format

Change-Id: Ic1b49d5560bfa47f287e04918c01daeebba28163
2014-08-26 15:36:52 +01:00
ed4142f19a turn method documentation into doxygen comments
Change-Id: I38a10833b1d0b17c70298b6ed7a850cb9b728813
2014-08-26 13:34:04 +02:00
fe9f8144c7 move method documentation to the header file
Change-Id: I7d4f77c50a8b6b2b0d7c0868c73b0cb13f952421
2014-08-26 13:34:03 +02:00
7b87415cdb remove whitespace and put documentation before method/class
Change-Id: Ib88648d9ec049932520501ec997e2e82a55f63f3
2014-08-26 13:34:03 +02:00
702b981d9a QueryBox MSG_QUERY_OPENASTEMPLATE -> MessageDialog + string
Change-Id: I031a145ca62e3bf7e74b9d447ff8bb041974daa6
2014-08-25 12:27:52 +01:00
7e2b9fa213 Remove some useless tools/debug.hxx includes
Also remove the tools/solar.h included from tools/debug.hxx. The include of solar.h
header was necessary in some cases because of a macro or a typedef that was needed.

Change-Id: Ia6e15d5c2571c58c9e9138b0d0a7f08ae88053c9
Reviewed-on: https://gerrit.libreoffice.org/11075
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-08-22 16:33:18 -05:00
8b62a475f7 QueryBox RID_SFXQB_SET_LANGUAGE -> MessageDialog + string
Change-Id: Ic1b5233563ff9ce3e3453b47fe86138ae2497a18
2014-08-21 14:07:55 +01:00
b5a0b00d49 callcatcher: another round of resource ctor removals
Change-Id: Ic554fa7c1e549a0f39296836868b22ccf4c859d3
2014-08-18 09:34:55 +01:00
3352a88c8c remove dead ToolBox RID_HELPBAR
Change-Id: Ide31f67c346f9a82bf6aa8282caa7cfcee65d9fd
2014-08-18 05:22:54 +02:00
eacc9e6bad Customproperties: Correctly size Date
Old behavior:

1) Add a property of type "Date". DateField inside Value column uses
   the full width.
2) Increase the width of the dialog. Now the size of DateField in
   the Value column only uses the half width.

Solution:

Set a flag if the current type is of Date. So we can correct the size
after a dialog resize action.

Change-Id: I915a553b2f69aac1aea0ac5b24536db5709abfae
2014-08-17 20:48:39 +02:00
61aaf3814c Customproperties: Position DateTime correctly
No need to store the position of DateField and TimeField, because this
will not change if we choose another type. The only thing what changes
is the size of the DateField, because both "DateTime" and "Date" use
this field. And for this size we just rely on the size of m_aTimeField,
because it's the same as m_aDateField (for type DateTime).

Change-Id: Ic590c62d82d8f90576479e10be9d422326032d28
2014-08-17 20:48:38 +02:00
2b4c54aa13 warning C4800: forcing value to bool 'true' or 'false'
Change-Id: I0bea774cd903f93721de6ffd8ed4ff9f5a15ef81
2014-08-17 05:15:28 +02:00
fe3b29126e warning C4800: 'unsigned long' : forcing value to bool 'true' or 'false'
Change-Id: Iea71e791a760b38448a89294ab4136f815b8932c
2014-08-17 05:15:22 +02:00
a470c10d88 ErrorBox RID_ERRBOX_MODULENOTINSTALLED to String
And move to sfx2 to stop this ResMgr mangling

Change-Id: I4633766fdcc53189cdb508f9eddaa6b2e8448858
2014-08-15 23:30:23 +02:00
5df98e8bc5 last two args to Init_Impl are now always NULL
so follow through on the logical consequnces of that

Change-Id: I97981acecdcee03e4c1f32d1f4ec8ad623299042
2014-08-15 13:52:57 +01:00
a247b8257a fdo#75757: remove inheritance to std::vector
... by replacing the following 3 classes with typedefs of std::vector:
 SfxObjectShellArr_Impl / SfxViewFrameArr_Impl / SfxViewShellArr_Impl
and the following 4 with typedefs of boost::ptr_vector:
 SfxChildWinFactArr_Impl / SfxMenuCtrlFactArr_Impl /
 SfxStbCtrlFactArr_Impl / SfxTbxCtrlFactArr_Impl

Change-Id: I1754bd19ec418a3e7ba5c47fb6d8568e8fca9b29
Reviewed-on: https://gerrit.libreoffice.org/10891
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2014-08-13 08:53:48 -05:00
d24df3fc66 callcatcher: another round of ResId removals
Change-Id: Ia3acdb3501b7735820258cb090e731f5814bc07f
2014-08-12 09:02:03 +01:00
43e41eee0a remove unused resource definitions
Change-Id: Ie982ad04c084841f04215b3f58705bb9d9544a71
2014-08-09 18:12:10 +02:00
987d933c58 remove now unused tabpage.hrc
as TP_WIDTH and TP_HEIGHT are unused now

Change-Id: I06ec7af8c2b3386d76e36284eb56ea1ab6b9ec5d
2014-08-09 18:12:06 +02:00
2568a0bb72 hidpi, startcenter: Don't set fixed font heigt in the startcenter.
Change-Id: I68efbd08d21b514ab1659cd6bddfc2c4788c4a74
2014-08-01 15:25:02 +02:00
85118169a5 ASPECT_ALL is unused
Also add comment about the three sets of names for the same constants that
must match.

Change-Id: Id626b6f1cdaa4c2a8c391ae4f020186997ccb4d9
2014-07-30 19:18:40 +03:00
666f8651b1 simplify "no delete" logic in SvRefBase
by converting the bit munging to use bitfields.
Remove unused return values.
Add asserts to check that AddRef() is not called after the object
is deleted.
Fix the code in SfxObjectShell to not call AddRef() after
SfxObjectShell is deleted.

Change-Id: I3a3565a0bc45fc9d1d086222265ab8b8175818a7
2014-07-29 17:56:51 +02:00
551f76f410 Drop unnecessary SfxApplication::CreateResManager wrapper
Change-Id: I2b8662ec85b8f710aa17a2c6f59c4b35af7685f3
2014-07-29 14:27:43 +02:00
7e018afaf7 simplify return argument of SfxPoolItem::GetPresentation
since all two of the actual call-sites only care about whether
it is a valid presentation or not, not what kind of presentation it is.

Change-Id: I75717c88878d37b2897741b0c833ff283b3fee59
2014-07-29 11:04:01 +02:00
2295697df9 convert the weak reference macro in tools into a template
which required making SfxFrame subclass SvCompatWeakBase,
but that makes the relationships clearer anyhow.

Change-Id: I209d05359d50111eacac72c971bb46ccf569ba49
Reviewed-on: https://gerrit.libreoffice.org/10285
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-25 08:13:39 +00:00
e904562af5 Related: fdo#81641 create new styles with an initial name
instead of creating with a blank name and changing it later

this way undo of a style creation is initialized with its name and so create a
style followed by deleting a style and undoing all those steps doesn't crash

Change-Id: Ida7a34410d5d7b05edcb86950aabb3c672b82c8f
2014-07-24 12:46:57 +01:00
d5fb4b7319 Typos
Change-Id: I0c17f40b3e593ae3771fa751a817f84bf2f2323d
2014-07-23 22:23:52 +02:00
aff263c8b8 Related: fdo#81457 quadratic time required when setting a11y name
when calling SetAccessibleName GetAccessibleName is called
in order to send a name changed a11y event. Getting an Accessible
Name is very slow in a non-layout aware widget because it scans
for a "nearby" label and there is none in this widget, but it
has a huge pile of other widgets to iterate over.

call add_mnemonic_label before hand to cut off that entire
branch.

While we're at it, only call InitControl to adjust to a new
width if the new width is different from the old width

Change-Id: Ie4ba1276127226e49442278e46447b84bbeb1cde
2014-07-22 14:37:39 +01:00
c1dd91a93c callcatcher: update unused code
Change-Id: I1dd1b40d807c7c9d9b145aca9f69a67d786ec5ff
2014-07-22 09:54:38 +01:00
490d302817 rename the Weak stuff in tools/ref.hxx to WeakRef
.. which more accurately reflects it's purpose

Change-Id: Ibb87a47a3d1f3e35ac2820f14c71adf3b227c961
Reviewed-on: https://gerrit.libreoffice.org/10283
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-07-17 11:56:14 +00:00
6a873638fa Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xx
- Remove includes from files where they are not needed.
- Update pch files

Change-Id: I0188e3934ef429008c1ef495ab1d5b27f38664d5
Reviewed-on: https://gerrit.libreoffice.org/10342
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-07-17 08:47:58 +00:00
6d2178b8c8 inline tools::SvRefBaseRef typedef
..it is only used in two places

Change-Id: If333936b26592ed44d3525f2eb3c21aafde7dddc
2014-07-14 13:30:55 +02:00
4554043206 SfxModelessDialog ResId ctor bites the dust
Change-Id: Ia1bc255de0f38c058a3ab622d87af8b346a2075f
2014-07-13 20:10:50 +01:00
bfdacadec9 Convert DLG_TEMPLATE_INFORMATION to .ui
Change-Id: I66469c17a46c1157b8e3801c0dc2b252c569a4bd
Reviewed-on: https://gerrit.libreoffice.org/10213
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-11 15:05:36 +00:00
d8f53bbe2b provide a route to get the default document targets
Change-Id: Ia163d2a69b33c18e18f81f0f82855d1caa4c2c1a
2014-07-09 10:55:23 +01:00
eb9b890bc9 DBG_ASSERT->assert when followed by dereference
Change-Id: I9390228721df1b713d8cf2e719854b74d6b639c8
2014-07-06 21:06:06 +01:00
6f92b58987 error: reference cannot be bound to dereferenced null pointer
Change-Id: Ica39bcce389fc5d03a3902d9f703a0efa284ec92
2014-07-03 23:16:15 +02:00
8583bccaac Dead declarations
Change-Id: I5fe417a6f3682764f8ff1844cc418e95d68c6c38
2014-07-03 18:20:39 +02:00
430484932e Typo: beeing->being
Change-Id: I34937e400ac8576154d33e1e11b80690222f532c
2014-06-29 13:15:51 +02:00
01a882039e fdo#69036 do not try to create a sfxApplication when we are tearing-down
This was triggered by connectivity calc driver, which on shutdown
was trying to 'dispose()' it's connection
which in turn would, if the shutdown of calc was already done
try to re-create an sfxApplication instance, just to delete
illusory inexistant documents...

Change-Id: Ic166367ca399d613743f379ebbfbffb5813701c0
2014-06-27 17:08:04 +02:00
d92aa2f445 remove SFX_APP() macro that was a mer wrapper for SfxGetApp()
Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
2014-06-27 17:08:04 +02:00
749bd87e90 drop the functional parts
appears to work without it as far as I can see

Change-Id: Ibe19addeeb38f853a515aef36d6bc83d338e1c0b
2014-06-26 16:29:16 +01:00
2f7b92c5bb Resolves: #i124914# reset certain language dependent pool defaults...
before importing a document via <SfxObjectShell::ImportFrom(..)> (used for
OOXML *.docx import)

(cherry picked from commit 920bf1164fe0c3d232dc0f7d476eec1660f4690e)

Conflicts:
	sfx2/inc/sfx2/objsh.hxx
	sw/inc/docsh.hxx
	sw/source/ui/app/docsh.cxx
	sw/source/ui/app/docsh2.cxx
	sw/source/ui/app/docshini.cxx
	sw/source/ui/app/docst.cxx
	sw/source/ui/app/docstyle.cxx

Change-Id: Id32bd6a8ef081dd4af4d832aa42317de7f64184f
2014-06-26 16:29:16 +01:00